new:支持dev目录下的readdir

This commit is contained in:
fslongjin
2022-09-07 23:25:39 +08:00
parent d7423f36be
commit ee9658b5d5
3 changed files with 43 additions and 6 deletions

View File

@ -157,9 +157,9 @@ struct vfs_dir_entry_t *vfs_path_walk(const char *path, uint64_t flags)
{
char bk = *(tmp_path + tmp_path_len);
*(tmp_path + tmp_path_len) = '\0';
kdebug("to search:%s", tmp_path);
// kdebug("to search:%s", tmp_path);
dentry = vfs_search_dentry_list(parent, tmp_path);
kdebug("search done, dentry=%#018lx", dentry);
// kdebug("search done, dentry=%#018lx", dentry);
*(tmp_path + tmp_path_len) = bk;
}