On Tue, Nov 19, 2013 at 06:07:30PM +0100, Paolo Bonzini wrote:
> +static int vhdx_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
> +{
> +    BDRVVHDXState *s = bs->opaque;
> +
> +    bdi->cluster_size =
> +        (s->logical_sector_size / BDRV_SECTOR_SIZE) * s->block_size;

I thought s->block_size is in bytes.  Why multiply by the logical block
size in 512-byte sectors?

Stefan

Reply via email to