/DragonOS/user/apps/user-manage/src/parser/ |
H A D | cmd.rs | 15 Dir, enumerator 42 "-d" => CmdOption::Dir, in from() 61 CmdOption::Dir => "-d", in from()
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 89 file_type: FileType::Dir, in new() 177 if inode.metadata.file_type == FileType::Dir { in truncate() 214 if inode.metadata.file_type == FileType::Dir { in read_at() 247 if inode.metadata.file_type == FileType::Dir { in write_at() 312 if inode.metadata.file_type != FileType::Dir { in create_with_data() 365 if inode.metadata.file_type != FileType::Dir { in link() 370 if other_locked.metadata.file_type == FileType::Dir { in link() 391 if inode.metadata.file_type != FileType::Dir { in unlink() 402 if to_delete.0.lock().metadata.file_type == FileType::Dir { in unlink() 416 if inode.metadata.file_type != FileType::Dir { in rmdir() [all …]
|
/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 99 file_type: FileType::Dir, in create_root_inode() 116 inode_type: KernInodeType::Dir, in create_root_inode() 229 if unlikely(self.inode_type != KernInodeType::Dir) { in find() 258 if self.inode_type != KernInodeType::Dir { in get_entry_name() 303 if info.file_type != FileType::Dir { in list() 455 if unlikely(self.inode_type != KernInodeType::Dir) { in add_dir() 459 return self.inner_create(name, KernInodeType::Dir, mode, 0, private_data, callback); in add_dir() 487 if unlikely(self.inode_type != KernInodeType::Dir) { in add_file() 512 KernInodeType::Dir | KernInodeType::SymLink => { in inner_create() 563 if unlikely(self.inode_type != KernInodeType::Dir) { in remove() [all …]
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | mod.rs | 339 file_type: FileType::Dir, in new() 409 FileType::Dir, in register_pid() 461 if let FileType::Dir = inode.metadata.file_type { in open() 483 if let FileType::Dir = guard.metadata.file_type { in close() 506 if inode.metadata.file_type == FileType::Dir { in read_at() 602 if inode.metadata.file_type != FileType::Dir { in create_with_data() 659 if inode.metadata.file_type != FileType::Dir { in link() 664 if other_locked.metadata.file_type == FileType::Dir { in link() 685 if inode.metadata.file_type != FileType::Dir { in unlink() 718 if inode.metadata.file_type != FileType::Dir { in find() [all …]
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | core.rs | 203 if parent_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 209 if target_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 236 if inode.unwrap().metadata()?.file_type == FileType::Dir { in do_unlink_at() 245 if parent_inode.metadata()?.file_type != FileType::Dir { in do_unlink_at() 280 if new_parent.metadata()?.file_type != FileType::Dir { in do_symlinkat()
|
H A D | mod.rs | 47 Dir, enumerator 106 FileType::Dir => DT_DIR, in get_file_type_num() 522 if inode.metadata()?.file_type == FileType::Dir { in mkdir() 528 Err(SystemError::ENOENT) => self.create(name, FileType::Dir, mode), in mkdir() 639 if self.metadata()?.file_type != FileType::Dir { in do_lookup_follow_symlink() 656 if result.metadata()?.file_type != FileType::Dir { in do_lookup_follow_symlink()
|
H A D | mount.rs | 208 if self.metadata()?.file_type != FileType::Dir { in do_umount() 436 if metadata.file_type != FileType::Dir { in mount() 464 if from.metadata()?.file_type != FileType::Dir || metadata.file_type != FileType::Dir { in mount_from()
|
H A D | utils.rs | 61 if file.file_type() != FileType::Dir { in user_path_at()
|
H A D | open.rs | 210 if how.o_flags.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in do_sys_openat2()
|
H A D | syscall.rs | 735 if metadata.file_type == FileType::Dir { in chdir() 872 if old_inode.metadata().unwrap().file_type == FileType::Dir { in do_linkat() 1320 FileType::Dir => kstat.mode.insert(ModeType::S_IFDIR), in do_fstat() 1491 FileType::Dir => tmp.stx_mode.insert(ModeType::S_IFDIR), in do_statx()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | mod.rs | 75 DevFSInode::new(FileType::Dir, ModeType::from_bits_truncate(0o755), 0), in new() 134 FileType::Dir, in register_device() 161 FileType::Dir, in register_device() 306 FileType::Dir, in add_dir() 350 if guard.metadata.file_type != FileType::Dir { in do_create_with_data() 426 if inode.metadata.file_type != FileType::Dir { in find() 454 if inode.metadata.file_type != FileType::Dir { in get_entry_name() 500 if info.file_type != FileType::Dir { in list()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 139 FATDirEntry::Dir(d) => { in update_metadata() 151 FATDirEntry::Dir(d) => { in find() 193 let file_type = if let FATDirEntry::Dir(_) = inode_type { in new() 194 FileType::Dir in new() 368 file_type: FileType::Dir, in new() 390 root_guard.inode_type = FATDirEntry::Dir(result.root_dir()); in new() 1407 FATDirEntry::Dir(_) => { in read_at() 1433 FATDirEntry::Dir(_) => { in write_at() 1457 FATDirEntry::Dir(d) => match file_type { in create() 1462 FileType::Dir => { in create() [all …]
|
H A D | entry.rs | 44 Dir(FATDir), enumerator 841 return Ok(FATDirEntry::Dir(self.clone())); in get_dir_entry() 1277 return FATDirEntry::Dir(dir); in convert_to_dir_entry() 1318 return FATDirEntry::Dir(dir); in convert_to_dir_entry_with_long_name() 1679 FATDirEntry::Dir(d) => match d.short_dir_entry { in short_name() 1697 FATDirEntry::Dir(d) => { in short_dir_entry() 1713 FATDirEntry::Dir(d) => { in first_cluster() 1729 FATDirEntry::Dir(d) => d.loc, in get_dir_range() 1741 FATDirEntry::Dir(d) => match d.short_dir_entry { 1770 FATDirEntry::Dir(d) => { in name() [all …]
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | dir.rs | 65 let sysfs_dir_priv = SysFSKernPrivateData::Dir(SysKernDirPriv::new(kobj.clone())); in create_dir()
|
H A D | mod.rs | 63 Dir(SysKernDirPriv), enumerator
|
H A D | group.rs | 77 let private_data = KernInodePrivateData::SysFS(SysFSKernPrivateData::Dir( in do_create_group()
|
H A D | file.rs | 123 if let Some(KernInodePrivateData::SysFS(SysFSKernPrivateData::Dir(dt))) = x.as_ref() { in add_file_with_mode() 241 if let Some(KernInodePrivateData::SysFS(SysFSKernPrivateData::Dir(dt))) = x.as_ref() { in add_bin_file_with_mode()
|
/DragonOS/kernel/src/filesystem/devpts/ |
H A D | mod.rs | 112 file_type: FileType::Dir, in new() 196 if info.file_type != FileType::Dir { in list()
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | mod.rs | 110 file_type: FileType::Dir, in new() 211 if self.file_type == FileType::File || self.file_type == FileType::Dir { in ovl_lower_redirect()
|
/DragonOS/user/apps/user-manage/src/check/ |
H A D | check.rs | 46 CmdOption::Dir => { in check() 321 CmdOption::Dir => { in parse_options()
|