Searched refs:bpb (Results 1 – 3 of 3) sorted by relevance
191 fn validate(&self, bpb: &BiosParameterBlock) -> Result<(), SystemError> { in validate()192 if bpb.fat_size_16 != 0 { in validate()197 if bpb.root_entries_cnt != 0 { in validate()202 if bpb.total_sectors_16 != 0 { in validate()229 let mut bpb = BiosParameterBlock::default(); in new() localVariable231 cursor.read_exact(&mut bpb.jmp_boot)?; in new()232 cursor.read_exact(&mut bpb.oem_name)?; in new()233 bpb.bytes_per_sector = cursor.read_u16()?; in new()234 bpb.sector_per_cluster = cursor.read_u8()?; in new()235 bpb.rsvd_sec_cnt = cursor.read_u16()?; in new()[all …]
41 bpb::{BiosParameterBlock, FATType},81 pub bpb: BiosParameterBlock, field209 blk_size: fs.bpb.bytes_per_sector as usize, in new()210 blocks: if let FATType::FAT32(_) = fs.bpb.fat_type { in new()211 fs.bpb.total_sectors_32 as usize in new()213 fs.bpb.total_sectors_16 as usize in new()285 self.bpb.bytes_per_sector.into(), in super_block()313 let bpb = BiosParameterBlock::new(&gendisk)?; in new() localVariable315 let fs_info: FATFsInfo = match bpb.fat_type { in new()318 bpb32.fs_info as usize * bpb.bytes_per_sector as usize; in new()[all …]
1 pub mod bpb; module