vfs: Add filo like vfs layer
Signed-off-by: Thomas Heijligen <src@posteo.de>
diff --git a/src/main.c b/src/main.c
index d1939ee..ee3095c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,18 +3,7 @@
#include <getopt.h>
#include "blockdev.h"
-
-struct fsys_entry {
- char *name;
- int (*mount_func) (void);
- int (*read_func) (char *buf, int len); // read from open file
- int (*dir_func) (char *dirname); // open file
- int (*close_func) (void);
-} fsys_table[] = {
- { "dummy", NULL, NULL, NULL, NULL},
-};
-
-static const size_t fsys_table_length = sizeof(fsys_table) / sizeof(struct fsys_entry);
+#include "vfs.h"
struct program_options {
char *devname;