Searched refs:LBA_SIZE (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | fs.rs | 17 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom}, 258 let fs_info_in_disk_bytes_offset = partition.lba_start * LBA_SIZE as u64 in new() 369 let fat_ent_lba = self.partition.lba_start + fat_bytes_offset / LBA_SIZE as u64; in get_fat_entry() 507 return (self.get_lba_from_offset(first_sec_cluster) * LBA_SIZE) as u64; in root_dir_bytes_offset() 512 return (self.get_lba_from_offset(root_sec) * LBA_SIZE) as u64; in root_dir_bytes_offset() 539 return (self.get_lba_from_offset(first_sec_of_cluster) * LBA_SIZE) as u64; in cluster_bytes_offset() 705 + in_partition_sec_offset * (self.bpb.bytes_per_sector as u64 / LBA_SIZE as u64)) in get_lba_from_offset() 712 return self.bpb.bytes_per_sector as usize / LBA_SIZE; in lba_per_sector() 724 return disk_bytes_offset - (self.partition.lba_start * LBA_SIZE as u64); in get_in_partition_bytes_offset() 730 return bytes_offset % LBA_SIZE as u64; in get_in_block_offset() [all …]
|
D | bpb.rs | 5 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom}, 223 let mut v = Vec::with_capacity(LBA_SIZE); in new() 224 v.resize(LBA_SIZE, 0); in new()
|
D | entry.rs | 5 io::{device::LBA_SIZE, SeekFrom}, 1093 v.resize(1 * fs.lba_per_sector() * LBA_SIZE, 0); in flush() 1307 v.resize(1 * fs.lba_per_sector() * LBA_SIZE, 0); in flush() 2371 v.resize(1 * LBA_SIZE, 0); in get_raw_dir_entry()
|
/DragonOS-0.1.8/kernel/src/io/ |
D | device.rs | 22 pub const LBA_SIZE: usize = 512; constant
|