fn sectors_per_block(block_size: u32, logical_sector_size: u32) -> Result<u32> {
        let sectors_per_block = block_size / logical_sector_size;

        if !sectors_per_block.is_power_of_two() {
            return Err(VhdxMetadataError::InvalidValue);
        }

        Ok(sectors_per_block)
    }
/// Calculates the number of sectors per block
Calculates the number of sectors per block
Calculates the number of sectors per block
fn sectors_per_block(block_size: u32, logical_sector_size: u32) -> Result<u32> {
        let sectors_per_block = block_size / logical_sector_size;
        if !sectors_per_block.is_power_of_two() {
            return Err(VhdxMetadataError::InvalidValue);
        }
        Ok(sectors_per_block)
    }
fn sectors_per_block ( block_size : u32 , logical_sector_size : u32 ) -> Result < u32 > { let sectors_per_block = block_size / logical_sector_size ; if ! sectors_per_block . is_power_of_two ( ) { return Err ( VhdxMetadataError :: InvalidValue ) ; } Ok ( sectors_per_block ) }
Calculates the number of sectors per block
Calculates the number of sectors per block
block_size
u32
logical_sector_size
u32
block_size
u32
logical_sector_size
u32