Home
last modified time | relevance | path

Searched refs:new_dentry (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.2/kernel/src/filesystem/VFS/
Dmount.c26 int do_mount(struct vfs_dir_entry_t *old_dentry, struct vfs_dir_entry_t *new_dentry) in do_mount() argument
34 strncpy(new_dentry->name, old_dentry->name, old_dentry->name_length); in do_mount()
35 …kdebug("new_dentry->name=%s, old_dentry->name=%s, old_dentry->name_length=%d", new_dentry->name, o… in do_mount()
37 new_dentry->d_flags |= VFS_DF_MOUNTED; // 标记新的dentry是一个挂载点 in do_mount()
39 list_init(&new_dentry->child_node_list); in do_mount()
40 list_init(&new_dentry->subdirs_list); in do_mount()
41 new_dentry->parent = old_dentry->parent; in do_mount()
44 list_replace(&old_dentry->child_node_list, &new_dentry->child_node_list); in do_mount()
Dmount.h29 int do_mount(struct vfs_dir_entry_t *old_dentry, struct vfs_dir_entry_t *new_dentry);
DVFS.c54 struct vfs_dir_entry_t *new_dentry = sb->root; in vfs_mount_fs() local
56 new_dentry->name = kzalloc(target_dentry->name_length + 1, 0); in vfs_mount_fs()
57 new_dentry->name_length = target_dentry->name_length; in vfs_mount_fs()
59 do_mount(target_dentry, new_dentry); in vfs_mount_fs()