Searched refs:Dir (Results 1 – 9 of 9) sorted by relevance
/DragonOS-0.1.5/kernel/src/filesystem/ramfs/ |
D | mod.rs | 94 file_type: FileType::Dir, in new() 133 if inode.metadata.file_type == FileType::Dir { in read_at() 166 if inode.metadata.file_type == FileType::Dir { in write_at() 187 if inode.metadata.file_type == FileType::Dir { in poll() 244 if inode.metadata.file_type != FileType::Dir { in create_with_data() 294 if inode.metadata.file_type != FileType::Dir { in link() 299 if other_locked.metadata.file_type == FileType::Dir { in link() 320 if inode.metadata.file_type != FileType::Dir { in unlink() 330 if to_delete.0.lock().metadata.file_type == FileType::Dir { in unlink() 343 if inode.metadata.file_type != FileType::Dir { in rmdir() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | core.rs | 60 .create("proc", FileType::Dir, 0o777) in vfs_init() 63 .create("dev", FileType::Dir, 0o777) in vfs_init() 106 .create(mountpoint_name, FileType::Dir, 0o777) in do_migrate() 219 if mode.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in do_open() 312 parent_inode.create(filename, FileType::Dir, 0o777)?; in do_mkdir() 343 if parent_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 348 if target_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 375 if inode.unwrap().metadata()?.file_type == FileType::Dir { in do_unlink_at() 383 if parent_inode.metadata()?.file_type != FileType::Dir { in do_unlink_at()
|
D | mod.rs | 32 Dir, enumerator 68 FileType::Dir => DT_DIR, in get_file_type_num() 365 if self.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink() 382 if result.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink()
|
D | mount.rs | 330 if metadata.file_type != FileType::Dir { in mount()
|
D | syscall.rs | 211 if let FileType::Dir = i.file_type { in sys_chdir()
|
/DragonOS-0.1.5/kernel/src/filesystem/procfs/ |
D | mod.rs | 252 file_type: FileType::Dir, in new() 285 let _pf: Arc<dyn IndexNode> = proc.create(&pid.to_string(), FileType::Dir, 0o777)?; in register_pid() 327 if let FileType::Dir = inode.metadata.file_type { in open() 348 if let FileType::Dir = guard.metadata.file_type { in close() 377 if inode.metadata.file_type == FileType::Dir { in read_at() 425 if inode.metadata.file_type == FileType::Dir { in poll() 481 if inode.metadata.file_type != FileType::Dir { in create_with_data() 536 if inode.metadata.file_type != FileType::Dir { in link() 541 if other_locked.metadata.file_type == FileType::Dir { in link() 562 if inode.metadata.file_type != FileType::Dir { in unlink() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/devfs/ |
D | mod.rs | 54 DevFSInode::new(FileType::Dir, 0o755 as u32, 0), in new() 103 dev_root_inode.create("char", FileType::Dir, 0o755)?; in register_device() 117 dev_root_inode.create("block", FileType::Dir, 0o755)?; in register_device() 240 match self.do_create_with_data(guard, name, FileType::Dir, 0o755 as u32, 0) { in add_dir() 277 if guard.metadata.file_type != FileType::Dir { in do_create_with_data() 349 if inode.metadata.file_type != FileType::Dir { in find() 373 if inode.metadata.file_type != FileType::Dir { in get_entry_name() 409 if info.file_type != FileType::Dir { in list() 442 if inode.metadata.file_type == FileType::Dir { in poll()
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 115 FATDirEntry::Dir(d) => { in update_metadata() 127 FATDirEntry::Dir(d) => { in find() 167 let file_type = if let FATDirEntry::Dir(_) = inode_type { in new() 168 FileType::Dir in new() 304 file_type: FileType::Dir, in new() 323 root_guard.inode_type = FATDirEntry::Dir(result.root_dir()); in new() 1363 FATDirEntry::Dir(_) => { in read_at() 1389 FATDirEntry::Dir(_) => { in write_at() 1404 if inode.metadata.file_type == FileType::Dir { in poll() 1428 FATDirEntry::Dir(d) => match file_type { in create() [all …]
|
D | entry.rs | 48 Dir(FATDir), enumerator 829 return Ok(FATDirEntry::Dir(self.clone())); in get_dir_entry() 1214 return FATDirEntry::Dir(dir); in to_dir_entry() 1255 return FATDirEntry::Dir(dir); in to_dir_entry_with_long_name() 1608 FATDirEntry::Dir(d) => match d.short_dir_entry { in short_name() 1626 FATDirEntry::Dir(d) => { in short_dir_entry() 1642 FATDirEntry::Dir(d) => { in first_cluster() 1658 FATDirEntry::Dir(d) => d.loc, in get_dir_range() 1670 FATDirEntry::Dir(d) => match d.short_dir_entry { 1699 FATDirEntry::Dir(d) => { in name() [all …]
|