Lines Matching refs:partition

63     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()
724 return disk_bytes_offset - (self.partition.lba_start * LBA_SIZE as u64); in get_in_partition_bytes_offset()
861 self.fs_info.0.lock().flush(&self.partition)?; in umount()
867 self.partition.disk().sync()?; in umount()
938 self.partition.disk().read_at(lba, num_lba, &mut v)?; in get_free_cluster()
984 self.partition in get_free_cluster()
1016 self.partition in get_free_cluster()
1065 self.partition.disk().read_at(lba, 1, &mut v)?; in set_entry()
1080 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1098 self.partition.disk().read_at(lba, 1, &mut v)?; in set_entry()
1104 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1125 self.partition.disk().read_at(lba, 1, &mut v)?; in set_entry()
1160 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1175 self.partition in zero_cluster()
1207 partition: Arc<Partition>, in new()
1215 partition in new()
1301 pub fn flush(&self, partition: &Arc<Partition>) -> Result<(), SystemError> { in flush()
1309 partition.disk().read_at(lba, 1, &mut v)?; in flush()
1322 partition.disk().write_at(lba, 1, cursor.as_slice())?; in flush()
1330 pub fn update(&mut self, partition: Arc<Partition>) -> Result<(), SystemError> { in update()
1338 partition.disk().read_at(lba, 1, &mut v)?; in update()