Home
last modified time | relevance | path

Searched refs:file_type (Results 1 – 25 of 31) sorted by relevance

12

/DragonOS/build-scripts/kernel_build/src/utils/
H A Dmod.rs30 if let Ok(file_type) = ent.file_type() { in list_all_files()
31 if file_type.is_file() { in list_all_files()
39 } else if file_type.is_dir() && recursive { in list_all_files()
/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()
293 if inode.metadata.file_type == FileType::File { in resize()
304 file_type: FileType, in create_with_data()
312 if inode.metadata.file_type != FileType::Dir { in create_with_data()
335 file_type, 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()
[all …]
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs236 file_type: FileType, in create()
240 return self.create_with_data(name, file_type, mode, 0); in create()
522 if inode.metadata()?.file_type == FileType::Dir { 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()
679 let file_type = inode.metadata()?.file_type; in do_lookup_follow_symlink() localVariable
681 if rest_path.is_empty() && !follow_final_symlink && file_type == FileType::SymLink { in do_lookup_follow_symlink()
687 if file_type == FileType::SymLink && max_follow_times > 0 { in do_lookup_follow_symlink()
751 pub file_type: FileType, field
780 file_type: FileType::File, in default()
[all …]
H A Dfile.rs205 file_type: FileType, field
220 let file_type = inode.metadata()?.file_type; in new() localVariable
221 if file_type == FileType::Pipe { in new()
231 file_type, in new()
388 let file_type = self.inode.metadata()?.file_type; in lseek() localVariable
389 match file_type { in lseek()
482 dirent.d_type = sub_inode.metadata().unwrap().file_type.get_file_type_num() as u8; in readdir()
506 file_type: self.file_type, in try_clone()
525 pub fn file_type(&self) -> FileType { in file_type() method
526 return self.file_type; in file_type()
[all …]
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 Dmount.rs208 if self.metadata()?.file_type != FileType::Dir { in do_umount()
261 file_type: FileType, in create_with_data()
267 .create_with_data(name, file_type, mode, data)?; in create_with_data()
328 file_type: FileType, in create()
331 let inner_inode = self.inner_inode.create(name, file_type, mode)?; in create()
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 Dopen.rs208 let file_type: FileType = inode.metadata()?.file_type; in do_sys_openat2() localVariable
210 if how.o_flags.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in do_sys_openat2()
226 && file_type == FileType::File in do_sys_openat2()
H A Dutils.rs61 if file.file_type() != FileType::Dir { in user_path_at()
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()
1318 match file.file_type() { in do_fstat()
1489 match file.file_type() { in do_statx()
1571 if inode.metadata()?.file_type != FileType::SymLink { in readlink_at()
/DragonOS/kernel/src/filesystem/devfs/
H A Dmod.rs128 match metadata.file_type { in register_device()
200 match device.metadata().unwrap().file_type { in unregister_device()
282 file_type: dev_type_, // 文件夹 in new_with_parent()
346 file_type: FileType, in do_create_with_data()
350 if guard.metadata.file_type != FileType::Dir { in do_create_with_data()
373 file_type, in do_create_with_data()
413 file_type: FileType, in create_with_data()
420 return self.do_create_with_data(guard, name, file_type, mode, data); in 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()
[all …]
H A Dnull_dev.rs48 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
H A Dzero_dev.rs48 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
/DragonOS/kernel/src/filesystem/procfs/
H A Dmod.rs339 file_type: FileType::Dir, in new()
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()
584 if inode.metadata.file_type == FileType::File { in resize()
595 file_type: FileType, in create_with_data()
602 if inode.metadata.file_type != FileType::Dir { in create_with_data()
627 file_type, 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()
[all …]
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs95 file_type: FileType, field
110 file_type: FileType::Dir, in new()
211 if self.file_type == FileType::File || self.file_type == FileType::Dir { in ovl_lower_redirect()
239 self.file_type == FileType::CharDevice && (*flags & WHITEOUT_FLAG) != 0 in is_whiteout()
390 file_type: vfs::FileType, in create()
394 upper_inode.create(name, file_type, mode) in create()
H A Dcopy_up.rs39 upper_root_inode.create_with_data(&self.dname()?.0, metadata.file_type, metadata.mode, 0) in create_upper_inode()
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs112 file_type: FileType::Dir, in new()
196 if info.file_type != FileType::Dir { in list()
219 file_type: FileType, in create_with_data()
223 if file_type != FileType::CharDevice { in create_with_data()
/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs99 file_type: FileType::Dir, in create_root_inode()
303 if info.file_type != FileType::Dir { in list()
396 metadata.file_type = inode_type.into(); in new()
505 file_type: KernInodeType, in inner_create()
511 match file_type { in inner_create()
530 file_type: file_type.into(), in inner_create()
539 file_type, in inner_create()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs193 let file_type = if let FATDirEntry::Dir(_) = inode_type { in new() localVariable
218 file_type, in new()
368 file_type: FileType::Dir, in new()
1446 file_type: FileType, in create()
1457 FATDirEntry::Dir(d) => match file_type { in create()
1623 let file_type = target_guard.metadata.file_type; in unlink() localVariable
1624 if file_type == FileType::Pipe { in unlink()
1760 if guard.metadata.file_type != FileType::Dir { in get_entry_name()
1801 if inode.metadata.file_type != FileType::Dir { in mknod()
1820 nod.0.lock().metadata.file_type = FileType::Pipe; in mknod()
[all …]
/DragonOS/kernel/src/bpf/prog/
H A Dmod.rs77 file_type: FileType::File, in metadata()
/DragonOS/kernel/src/virt/kvm/
H A Dkvm_dev.rs66 file_type: FileType::KvmDevice, // 文件夹,block设备,char设备 in new()
H A Dvcpu_dev.rs77 file_type: FileType::KvmDevice, // 文件夹,block设备,char设备 in new()
H A Dvm_dev.rs75 file_type: FileType::KvmDevice, // 文件夹,block设备,char设备 in new()
/DragonOS/kernel/src/driver/keyboard/
H A Dps2_keyboard.rs89 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
/DragonOS/kernel/src/filesystem/
H A Deventfd.rs218 file_type: FileType::File, in metadata()
/DragonOS/kernel/src/perf/
H A Dmod.rs143 file_type: FileType::File, in metadata()

12