diff --git a/rust/sys/denali/src/ahci/controller.rs b/rust/sys/denali/src/ahci/controller.rs index 059f3a7..f62645d 100644 --- a/rust/sys/denali/src/ahci/controller.rs +++ b/rust/sys/denali/src/ahci/controller.rs @@ -155,8 +155,13 @@ impl AhciController { mammoth::debug!("Sector size: {:#0x}", new_sector_size); mammoth::debug!("LBA Count: {:#0x}", lba_count); - //self.sector_size = Some(new_sector_size as u64); - //self.sector_cnt = Some(lba_count); + // We hardcode assumptions about sector size in a few places, better to panic if we + // are wrong. + assert_eq!( + new_sector_size, 512, + "Sector size {} differs from 512.", + new_sector_size + ); } else { mammoth::debug!("Skipping non-sata sig: {:#0x}", sig); }