Searched refs:partition (Results 1 – 4 of 4) sorted by relevance
64 pub partition: Arc<Partition>, field246 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 …]
183 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()
132 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()
83 struct block_device *partition; // 磁盘分区数组 member