diff options
author | Marvin Borner | 2021-07-05 18:00:17 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-05 18:00:17 +0200 |
commit | 4e5b18fb3284705904a2f15f790b8c15b5767fd0 (patch) | |
tree | 0034c491e0e95f0f7472ce86a0a0ff7725e816ef /src/loader/dsk.c | |
parent | 46ce42e9b13ce209c8c971084cfc849a83848270 (diff) |
Ext2 and fixes
Diffstat (limited to 'src/loader/dsk.c')
-rw-r--r-- | src/loader/dsk.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/loader/dsk.c b/src/loader/dsk.c new file mode 100644 index 0000000..338c985 --- /dev/null +++ b/src/loader/dsk.c @@ -0,0 +1,17 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#include <dsk.h> +#include <fs/ext2.h> +#include <log.h> +#include <mbr.h> + +void dsk_detect(struct dev *dev) +{ + if (mbr_detect(dev)) + return; + + if (ext2_detect(dev)) + return; + + log("[DSK] Couldn't detect type of disk %s\n", dev->name); +} |