From 1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 12 Jul 2021 18:14:44 +0200 Subject: Renamed files to match presentation --- src/loader/disk.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/loader/disk.c (limited to 'src/loader/disk.c') diff --git a/src/loader/disk.c b/src/loader/disk.c new file mode 100644 index 0000000..42ec772 --- /dev/null +++ b/src/loader/disk.c @@ -0,0 +1,20 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#include +#include +#include +#include +#include + +void disk_detect(struct dev *dev) +{ + assert(dev->type == DEVICE_DISK); + + if (mbr_detect(dev)) + return; + + if (ext2_detect(dev)) + return; + + log("[DSK] Couldn't detect type of disk %s\n", dev->name); +} -- cgit v1.2.3