Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/filesystem/fat/
Dfs.rs19 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom},
252 let fs_info_in_disk_bytes_offset = partition.lba_start * LBA_SIZE as u64 in new()
359 let fat_ent_lba = self.partition.lba_start + fat_bytes_offset / LBA_SIZE as u64; in get_fat_entry()
497 return (self.get_lba_from_offset(first_sec_cluster) * LBA_SIZE) as u64; in root_dir_bytes_offset()
502 return (self.get_lba_from_offset(root_sec) * LBA_SIZE) as u64; in root_dir_bytes_offset()
529 return (self.get_lba_from_offset(first_sec_of_cluster) * LBA_SIZE) as u64; in cluster_bytes_offset()
695 + in_partition_sec_offset * (self.bpb.bytes_per_sector as u64 / LBA_SIZE as u64)) in get_lba_from_offset()
702 return self.bpb.bytes_per_sector as usize / LBA_SIZE; in lba_per_sector()
714 return disk_bytes_offset - (self.partition.lba_start * LBA_SIZE as u64); in get_in_partition_bytes_offset()
720 return bytes_offset % LBA_SIZE as u64; in get_in_block_offset()
[all …]
Dbpb.rs6 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom},
184 let mut v = Vec::with_capacity(LBA_SIZE); in new()
185 v.resize(LBA_SIZE, 0); in new()
Dentry.rs15 io::{device::LBA_SIZE, SeekFrom},
1073 v.resize(1 * fs.lba_per_sector() * LBA_SIZE, 0); in flush()
1283 v.resize(1 * fs.lba_per_sector() * LBA_SIZE, 0); in flush()
2343 v.resize(1 * LBA_SIZE, 0); in get_raw_dir_entry()
/DragonOS-0.1.5/kernel/src/io/
Ddevice.rs22 pub const LBA_SIZE: usize = 512; constant