qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 07/20] vpc, vhdx: add get_info


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2 07/20] vpc, vhdx: add get_info
Date: Wed, 20 Nov 2013 13:39:48 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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

[Prev in Thread] Current Thread [Next in Thread]