BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 648c56b1573240b17ce0a6ab62746ab30e41e126 / vfs / vfs.c

// Related

Nucleus

Barry Read-only Ext2 file system driver 648c56b (3 years, 2 months ago)
diff --git a/vfs/vfs.c b/vfs/vfs.c
index 303f9c7..cb80052 100644
--- a/vfs/vfs.c
+++ b/vfs/vfs.c
@@ -13,6 +13,7 @@ extern FileOps tmpfsFileOps;
 
 Inode *tmpfs_mount(FSType *type, int flags, const char *dev, void *data);
 Inode *devfs_mount(FSType *type, int flags, const char *dev, void *data);
+Inode *ext2fs_mount(FSType *type, int flags, const char *dev, void *data);
 
 /* Initialise the Virtual File System */
 void
@@ -20,6 +21,7 @@ init_vfs(void)
 {
 	register_fstype("tmpfs", tmpfs_mount);
 	register_fstype("devfs", devfs_mount);
+	register_fstype("ext2fs", ext2fs_mount);
 
 	mount("tmpfs", NULL, "tmpfs", 0, NULL);
 	mkdir("dev", 0);