Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs63 pub partition: Arc<Partition>, field
252 pub fn new(partition: Arc<Partition>) -> Result<Arc<FATFileSystem>, SystemError> { in new()
253 let bpb = BiosParameterBlock::new(partition.clone())?; in new()
258 let fs_info_in_disk_bytes_offset = partition.lba_start * LBA_SIZE as u64 in new()
261 partition.clone(), in new()
320 partition: partition, in new()
369 let fat_ent_lba = self.partition.lba_start + fat_bytes_offset / LBA_SIZE as u64; in get_fat_entry()
376 self.partition in get_fat_entry()
470 self.partition in get_fat_entry_raw()
704 return (self.partition.lba_start in get_lba_from_offset()
[all …]
Dbpb.rs222 pub fn new(partition: Arc<Partition>) -> Result<BiosParameterBlock, SystemError> { in new()
227 partition in new()
229 .read_at(partition.lba_start as usize, 1, &mut v)?; in new()
Dentry.rs133 let r = fs.partition.disk().device().read_at( in read()
201 let w: usize = fs.partition.disk().device().write_at( in write()
329 fs.partition.disk().device().write_at( in zero_range()
1094 fs.partition in flush()
1123 fs.partition in flush()
1126 fs.partition.disk().sync()?; in flush()
1308 fs.partition in flush()
1329 fs.partition in flush()
1332 fs.partition.disk().sync()?; in flush()
2373 fs.partition.disk().read_at(lba, 1, &mut v)?; in get_raw_dir_entry()
/DragonOS-0.1.8/kernel/src/common/
Dblk_types.h83 struct block_device *partition; // 磁盘分区数组 member