Home
last modified time | relevance | path

Searched refs:partition (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.5/kernel/src/filesystem/fat/
Dfs.rs64 pub partition: Arc<Partition>, field
246 pub fn new(partition: Arc<Partition>) -> Result<Arc<FATFileSystem>, i32> { in new()
247 let bpb = BiosParameterBlock::new(partition.clone())?; in new()
252 let fs_info_in_disk_bytes_offset = partition.lba_start * LBA_SIZE as u64 in new()
255 partition.clone(), in new()
314 partition: partition, in new()
359 let fat_ent_lba = self.partition.lba_start + fat_bytes_offset / LBA_SIZE as u64; in get_fat_entry()
366 self.partition in get_fat_entry()
460 self.partition in get_fat_entry_raw()
694 return (self.partition.lba_start in get_lba_from_offset()
[all …]
Dbpb.rs183 pub fn new(partition: Arc<Partition>) -> Result<BiosParameterBlock, i32> { in new()
188 partition in new()
190 .read_at(partition.lba_start as usize, 1, &mut v)?; in new()
Dentry.rs132 let r = fs.partition.disk().device().read_at( in read()
201 let w: usize = fs.partition.disk().device().write_at( in write()
320 fs.partition.disk().device().write_at( in zero_range()
1074 fs.partition in flush()
1103 fs.partition in flush()
1106 fs.partition.disk().sync()?; in flush()
1284 fs.partition in flush()
1305 fs.partition in flush()
1308 fs.partition.disk().sync()?; in flush()
2345 fs.partition.disk().read_at(lba, 1, &mut v)?; in get_raw_dir_entry()
/DragonOS-0.1.5/kernel/src/common/
Dblk_types.h83 struct block_device *partition; // 磁盘分区数组 member