Home
last modified time | relevance | path

Searched refs:bpb (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dbpb.rs191 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()
234 let mut bpb = BiosParameterBlock::default(); in new() localVariable
236 cursor.read_exact(&mut bpb.jmp_boot)?; in new()
237 cursor.read_exact(&mut bpb.oem_name)?; in new()
238 bpb.bytes_per_sector = cursor.read_u16()?; in new()
239 bpb.sector_per_cluster = cursor.read_u8()?; in new()
240 bpb.rsvd_sec_cnt = cursor.read_u16()?; in new()
[all …]
Dfs.rs28 bpb::{BiosParameterBlock, FATType},
65 pub bpb: BiosParameterBlock, field
182 blk_size: fs.bpb.bytes_per_sector as usize, in new()
183 blocks: if let FATType::FAT32(_) = fs.bpb.fat_type { in new()
184 fs.bpb.total_sectors_32 as usize in new()
186 fs.bpb.total_sectors_16 as usize in new()
253 let bpb = BiosParameterBlock::new(partition.clone())?; in new() localVariable
256 let fs_info: FATFsInfo = match bpb.fat_type { in new()
259 + bpb32.fs_info as u64 * bpb.bytes_per_sector as u64; in new()
263 bpb.bytes_per_sector as usize, in new()
[all …]
Dmod.rs1 pub mod bpb; module