Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs92 file_type: FileType::Dir, in new()
131 if inode.metadata.file_type == FileType::Dir { in read_at()
164 if inode.metadata.file_type == FileType::Dir { in write_at()
185 if inode.metadata.file_type == FileType::Dir { in poll()
240 if inode.metadata.file_type != FileType::Dir { in create_with_data()
290 if inode.metadata.file_type != FileType::Dir { in link()
295 if other_locked.metadata.file_type == FileType::Dir { in link()
316 if inode.metadata.file_type != FileType::Dir { in unlink()
326 if to_delete.0.lock().metadata.file_type == FileType::Dir { in unlink()
339 if inode.metadata.file_type != FileType::Dir { in rmdir()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dcore.rs60 .create("proc", FileType::Dir, 0o777) in vfs_init()
63 .create("dev", FileType::Dir, 0o777) in vfs_init()
66 .create("sys", FileType::Dir, 0o777) in vfs_init()
119 .create(mountpoint_name, FileType::Dir, 0o777) in do_migrate()
221 parent_inode.create(filename, FileType::Dir, 0o777)?; in do_mkdir()
252 if parent_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir()
257 if target_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir()
284 if inode.unwrap().metadata()?.file_type == FileType::Dir { in do_unlink_at()
292 if parent_inode.metadata()?.file_type != FileType::Dir { in do_unlink_at()
Dmod.rs31 Dir, enumerator
69 FileType::Dir => DT_DIR, in get_file_type_num()
378 if self.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink()
395 if result.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink()
Dsyscall.rs163 if mode.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in open()
291 if let FileType::Dir = i.file_type { in chdir()
602 FileType::Dir => kstat.mode.insert(ModeType::S_IFDIR), in do_fstat()
Dmount.rs325 if metadata.file_type != FileType::Dir { in mount()
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs254 file_type: FileType::Dir, in new()
287 let _pf: Arc<dyn IndexNode> = proc.create(&pid.to_string(), FileType::Dir, 0o777)?; in register_pid()
329 if let FileType::Dir = inode.metadata.file_type { in open()
350 if let FileType::Dir = guard.metadata.file_type { in close()
379 if inode.metadata.file_type == FileType::Dir { in read_at()
427 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.8/kernel/src/filesystem/devfs/
Dmod.rs55 DevFSInode::new(FileType::Dir, 0o755 as u32, 0), in new()
109 dev_root_inode.create("char", FileType::Dir, 0o755)?; in register_device()
128 dev_root_inode.create("block", FileType::Dir, 0o755)?; in register_device()
255 match self.do_create_with_data(guard, name, FileType::Dir, 0o755 as u32, 0) { in add_dir()
296 if guard.metadata.file_type != FileType::Dir { in do_create_with_data()
371 if inode.metadata.file_type != FileType::Dir { in find()
395 if inode.metadata.file_type != FileType::Dir { in get_entry_name()
431 if info.file_type != FileType::Dir { in list()
464 if inode.metadata.file_type == FileType::Dir { in poll()
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs97 SysFSInode::new(FileType::Dir, 0o755 as u32, 0), in new()
193 if inode.metadata.file_type == FileType::Dir { in poll()
210 if inode.metadata.file_type != FileType::Dir { in get_entry_name()
243 if inode.metadata.file_type != FileType::Dir { in find()
271 if info.file_type != FileType::Dir { in list()
293 if guard.metadata.file_type != FileType::Dir { in do_create_with_data()
346 match self.do_create_with_data(guard, name, FileType::Dir, 0o755 as u32, 0) { in add_dir()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs114 FATDirEntry::Dir(d) => { in update_metadata()
126 FATDirEntry::Dir(d) => { in find()
166 let file_type = if let FATDirEntry::Dir(_) = inode_type { in new()
167 FileType::Dir in new()
310 file_type: FileType::Dir, in new()
329 root_guard.inode_type = FATDirEntry::Dir(result.root_dir()); in new()
1373 FATDirEntry::Dir(_) => { in read_at()
1399 FATDirEntry::Dir(_) => { in write_at()
1414 if inode.metadata.file_type == FileType::Dir { in poll()
1436 FATDirEntry::Dir(d) => match file_type { in create()
[all …]
Dentry.rs44 Dir(FATDir), enumerator
849 return Ok(FATDirEntry::Dir(self.clone())); in get_dir_entry()
1234 return FATDirEntry::Dir(dir); in to_dir_entry()
1275 return FATDirEntry::Dir(dir); in to_dir_entry_with_long_name()
1636 FATDirEntry::Dir(d) => match d.short_dir_entry { in short_name()
1654 FATDirEntry::Dir(d) => { in short_dir_entry()
1670 FATDirEntry::Dir(d) => { in first_cluster()
1686 FATDirEntry::Dir(d) => d.loc, in get_dir_range()
1698 FATDirEntry::Dir(d) => match d.short_dir_entry {
1727 FATDirEntry::Dir(d) => { in name()
[all …]