Lines Matching refs:partition

64     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()
714 return disk_bytes_offset - (self.partition.lba_start * LBA_SIZE as u64); in get_in_partition_bytes_offset()
851 self.fs_info.0.lock().flush(&self.partition)?; in umount()
857 self.partition.disk().sync()?; in umount()
928 self.partition.disk().read_at(lba, num_lba, &mut v)?; in get_free_cluster()
974 self.partition in get_free_cluster()
1006 self.partition in get_free_cluster()
1055 self.partition.disk().read_at(lba, 1, &mut v)?; in set_entry()
1070 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1088 self.partition.disk().read_at(lba, 1, &mut v)?; in set_entry()
1094 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1115 self.partition.disk().read_at(lba, 1, &mut v)?; in set_entry()
1150 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1165 self.partition in zero_cluster()
1197 partition: Arc<Partition>, in new()
1205 partition in new()
1291 pub fn flush(&self, partition: &Arc<Partition>) -> Result<(), i32> { in flush()
1299 partition.disk().read_at(lba, 1, &mut v)?; in flush()
1312 partition.disk().write_at(lba, 1, cursor.as_slice())?; in flush()
1320 pub fn update(&mut self, partition: Arc<Partition>) -> Result<(), i32> { in update()
1328 partition.disk().read_at(lba, 1, &mut v)?; in update()