Lines Matching refs:IndexNode
26 use super::{file::FileMode, utils::rsplit_path, IndexNode, InodeId};
38 static mut __ROOT_INODE: *mut Arc<dyn IndexNode> = null_mut();
43 pub fn ROOT_INODE() -> Arc<dyn IndexNode> { in ROOT_INODE()
114 new_root_inode: Arc<dyn IndexNode>, in do_migrate() argument
157 let old_root_inode: Box<Arc<dyn IndexNode>> = Box::from_raw(__ROOT_INODE); in migrate_virtual_filesystem()
211 let inode: Result<Arc<dyn IndexNode>, SystemError> = ROOT_INODE().lookup(path); in do_open()
213 let inode: Arc<dyn IndexNode> = if inode.is_err() { in do_open()
222 let parent_inode: Arc<dyn IndexNode> = in do_open()
225 let inode: Arc<dyn IndexNode> = parent_inode.create(filename, FileType::File, 0o777)?; in do_open()
318 let inode: Result<Arc<dyn IndexNode>, SystemError> = ROOT_INODE().lookup(path); in do_mkdir()
326 let parent_inode: Arc<dyn IndexNode> = in do_mkdir()
329 let _create_inode: Arc<dyn IndexNode> = in do_mkdir()
347 let inode: Result<Arc<dyn IndexNode>, SystemError> = ROOT_INODE().lookup(path); in do_remove_dir()
359 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_remove_dir()
365 let target_inode: Arc<dyn IndexNode> = parent_inode.find(filename)?; in do_remove_dir()
383 let inode: Result<Arc<dyn IndexNode>, SystemError> = ROOT_INODE().lookup(path); in do_unlink_at()
399 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_unlink_at()