Home
last modified time | relevance | path

Searched refs:Dir (Results 1 – 20 of 20) sorted by relevance

/DragonOS/user/apps/user-manage/src/parser/
H A Dcmd.rs15 Dir, enumerator
42 "-d" => CmdOption::Dir, in from()
61 CmdOption::Dir => "-d", in from()
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs89 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 Dmod.rs99 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 Dmod.rs339 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 Dcore.rs203 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 Dmod.rs47 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 Dmount.rs208 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 Dutils.rs61 if file.file_type() != FileType::Dir { in user_path_at()
H A Dopen.rs210 if how.o_flags.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in do_sys_openat2()
H A Dsyscall.rs735 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 Dmod.rs75 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 Dfs.rs139 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()
369 file_type: FileType::Dir, in new()
391 root_guard.inode_type = FATDirEntry::Dir(result.root_dir()); in new()
1405 FATDirEntry::Dir(_) => { in read_at()
1431 FATDirEntry::Dir(_) => { in write_at()
1455 FATDirEntry::Dir(d) => match file_type { in create()
1460 FileType::Dir => { in create()
[all …]
H A Dentry.rs44 Dir(FATDir), enumerator
843 return Ok(FATDirEntry::Dir(self.clone())); in get_dir_entry()
1279 return FATDirEntry::Dir(dir); in convert_to_dir_entry()
1320 return FATDirEntry::Dir(dir); in convert_to_dir_entry_with_long_name()
1681 FATDirEntry::Dir(d) => match d.short_dir_entry { in short_name()
1699 FATDirEntry::Dir(d) => { in short_dir_entry()
1715 FATDirEntry::Dir(d) => { in first_cluster()
1731 FATDirEntry::Dir(d) => d.loc, in get_dir_range()
1743 FATDirEntry::Dir(d) => match d.short_dir_entry {
1772 FATDirEntry::Dir(d) => { in name()
[all …]
/DragonOS/kernel/src/filesystem/sysfs/
H A Ddir.rs65 let sysfs_dir_priv = SysFSKernPrivateData::Dir(SysKernDirPriv::new(kobj.clone())); in create_dir()
H A Dmod.rs63 Dir(SysKernDirPriv), enumerator
H A Dgroup.rs77 let private_data = KernInodePrivateData::SysFS(SysFSKernPrivateData::Dir( in do_create_group()
H A Dfile.rs123 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 Dmod.rs112 file_type: FileType::Dir, in new()
196 if info.file_type != FileType::Dir { in list()
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs109 file_type: FileType::Dir, in new()
210 if self.file_type == FileType::File || self.file_type == FileType::Dir { in ovl_lower_redirect()
/DragonOS/user/apps/user-manage/src/check/
H A Dcheck.rs46 CmdOption::Dir => { in check()
321 CmdOption::Dir => { in parse_options()