new: rootfs

This commit is contained in:
fslongjin
2022-09-14 23:48:19 +08:00
parent c80f572db7
commit 72f9c430c5
12 changed files with 322 additions and 43 deletions

View File

@ -47,7 +47,7 @@ struct vfs_dir_entry_operations_t;
struct vfs_dir_entry_t
{
char *name;
int name_length;
int name_length; // 名字的长度(不包含字符串末尾的'\0'
uint32_t d_flags; // dentry标志位
struct List child_node_list;
struct List subdirs_list;
@ -266,4 +266,4 @@ int64_t vfs_mkdir(const char *path, mode_t mode, bool from_userland);
* @param from_userland 请求是否来自用户态
* @return int64_t 错误码
*/
int64_t vfs_rmdir(const char *path, bool from_userland);
int64_t vfs_rmdir(const char *path, bool from_userland);