BarryServer : Git

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

// Related

Nucleus

Barry Device file system 88d672a (3 years, 3 months ago)
diff --git a/vfs/vfs.c b/vfs/vfs.c
index 2f53c99..bbd61db 100644
--- a/vfs/vfs.c
+++ b/vfs/vfs.c
@@ -5,19 +5,21 @@
  * IPC and device management.
  */
 
+#include <sys/stat.h>
 #include <nucleus/object.h>
 #include <nucleus/vfs.h>
 
-#include <nucleus/task.h>
-#include "namespace.h"
-
 Inode *tmpfs_mount(FSType *type, int flags, const char *dev, void *data);
+Inode *devfs_mount(FSType *type, int flags, const char *dev, void *data);
 
 /* Initialise the Virtual File System */
 void
 init_vfs(void)
 {
 	register_fstype("tmpfs", tmpfs_mount);
+	register_fstype("devfs", devfs_mount);
 
 	mount("tmpfs", NULL, "tmpfs", 0, NULL);
+	mkdir("dev", 0);
+	mount("devfs", "/dev", "devfs", 0, NULL);
 }