Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/filesystem/vfs/
Dcore.rs204 let parent_inode: Arc<dyn IndexNode> = in do_open() localVariable
207 let inode: Arc<dyn IndexNode> = parent_inode.create(filename, FileType::File, 0o777)?; in do_open()
308 let parent_inode: Arc<dyn IndexNode> = in do_mkdir() localVariable
312 parent_inode.create(filename, FileType::Dir, 0o777)?; in do_mkdir()
341 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_remove_dir() localVariable
343 if parent_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir()
347 let target_inode: Arc<dyn IndexNode> = parent_inode.find(filename)?; in do_remove_dir()
353 parent_inode.rmdir(filename)?; in do_remove_dir()
381 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_unlink_at() localVariable
383 if parent_inode.metadata()?.file_type != FileType::Dir { in do_unlink_at()
[all …]
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…