feat: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[lunaix-os.git] / lunaix-os / kernel / fs / ramfs / ramfs.c
index fece9b3ba503a369445896c781b13d58d1ae1414..e7ac05c7b93c991a5bceb39cb145aa040aa81255 100644 (file)
@@ -65,9 +65,7 @@ __ramfs_mknod(struct v_dnode* dnode, struct v_inode** nod_out, u32_t flags)
     rinode->flags = flags;
     inode->data = rinode;
 
     rinode->flags = flags;
     inode->data = rinode;
 
-    if ((flags & RAMF_DIR)) {
-        inode->itype = VFS_IFDIR;
-    } else {
+    if (!(flags & RAMF_DIR)) {
         inode->itype = VFS_IFFILE;
     }
 
         inode->itype = VFS_IFFILE;
     }
 
@@ -146,6 +144,7 @@ ramfs_init()
 
     fsm_register(ramfs);
 }
 
     fsm_register(ramfs);
 }
+EXPORT_FILE_SYSTEM(ramfs, ramfs_init);
 
 int
 ramfs_mksymlink(struct v_inode* this, const char* target)
 
 int
 ramfs_mksymlink(struct v_inode* this, const char* target)