Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dcore.rs217 let parent_inode: Arc<dyn IndexNode> = in do_mkdir() localVariable
221 parent_inode.create(filename, FileType::Dir, 0o777)?; in do_mkdir()
250 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_remove_dir() localVariable
252 if parent_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir()
256 let target_inode: Arc<dyn IndexNode> = parent_inode.find(filename)?; in do_remove_dir()
262 parent_inode.rmdir(filename)?; in do_remove_dir()
290 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_unlink_at() localVariable
292 if parent_inode.metadata()?.file_type != FileType::Dir { in do_unlink_at()
297 parent_inode.unlink(filename)?; in do_unlink_at()
DVFS.h139 …long (*create)(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dest_dEntry, int mod…
146 …struct vfs_dir_entry_t *(*lookup)(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *d…
Dsyscall.rs147 let parent_inode: Arc<dyn IndexNode> = in open() localVariable
151 parent_inode.create(filename, FileType::File, 0o777)?; in open()