diff --git a/src/thin/superblock.rs b/src/thin/superblock.rs index 43c2e6f..af3eca8 100644 --- a/src/thin/superblock.rs +++ b/src/thin/superblock.rs @@ -121,7 +121,7 @@ fn pack_superblock(sb: &Superblock, w: &mut W) -> Result<()> { w.write_u64::(sb.mapping_root)?; w.write_u64::(sb.details_root)?; w.write_u32::(sb.data_block_size)?; - w.write_u32::(BLOCK_SIZE as u32)?; + w.write_u32::((BLOCK_SIZE >> SECTOR_SHIFT) as u32)?; // metadata block size w.write_u64::(sb.nr_metadata_blocks)?; Ok(())