feat: fstat now handle symbolic link
[lunaix-os.git] / lunaix-os / kernel / process / taskfs.c
index 6ecdc8f5d1db17e95bf6d3899a4b9ef984cca22a..36ed5ee28d52aef1f8a6f84e627a278bbb3a2575 100644 (file)
@@ -129,7 +129,7 @@ taskfs_dirlookup(struct v_inode* this, struct v_dnode* dnode)
         return ENOENT;
     }
 
-    return taskfs_mknod(dnode, pid, 0, VFS_IFDIR);
+    return taskfs_mknod(dnode, pid, 0, F_FILE);
 }
 
 static struct v_file_ops taskfs_file_ops = { .close = default_file_close,
@@ -226,4 +226,5 @@ taskfs_init()
     attr_export_table = vcalloc(ATTR_TABLE_LEN, sizeof(struct hbucket));
 
     export_task_attr();
-}
\ No newline at end of file
+}
+EXPORT_FILE_SYSTEM(taskfs, taskfs_init);
\ No newline at end of file