Lines Matching refs:parent_inode
204 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()
388 parent_inode.unlink(filename)?; in do_unlink_at()