Searched refs:bpb (Results 1 – 3 of 3) sorted by relevance
195 let mut bpb = BiosParameterBlock::default(); in new() localVariable197 cursor.read_exact(&mut bpb.jmp_boot)?; in new()198 cursor.read_exact(&mut bpb.oem_name)?; in new()199 bpb.bytes_per_sector = cursor.read_u16()?; in new()200 bpb.sector_per_cluster = cursor.read_u8()?; in new()201 bpb.rsvd_sec_cnt = cursor.read_u16()?; in new()202 bpb.num_fats = cursor.read_u8()?; in new()203 bpb.root_entries_cnt = cursor.read_u16()?; in new()204 bpb.total_sectors_16 = cursor.read_u16()?; in new()205 bpb.media = cursor.read_u8()?; in new()[all …]
29 bpb::{BiosParameterBlock, FATType},66 pub bpb: BiosParameterBlock, field183 blk_size: fs.bpb.bytes_per_sector as usize, in new()184 blocks: if let FATType::FAT32(_) = fs.bpb.fat_type { in new()185 fs.bpb.total_sectors_32 as usize in new()187 fs.bpb.total_sectors_16 as usize in new()247 let bpb = BiosParameterBlock::new(partition.clone())?; in new() localVariable250 let fs_info: FATFsInfo = match bpb.fat_type { in new()253 + bpb32.fs_info as u64 * bpb.bytes_per_sector as u64; in new()257 bpb.bytes_per_sector as usize, in new()[all …]
1 pub mod bpb; module