qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] ISCSI: Add support for thin-provisioning via di


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] ISCSI: Add support for thin-provisioning via discard/UNMAP and bigger LUNs
Date: Fri, 04 May 2012 10:06:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120425 Thunderbird/12.0

Il 24/04/2012 08:29, Ronnie Sahlberg ha scritto:
> +    itask->bs->total_sectors    = rc16->returned_lba *
> +                               rc16->block_length / BDRV_SECTOR_SIZE ;

Ronnie, does this need to be "(rc16->returned_lba + 1) * ..."?

READ CAPACITY returns the highest valid LBA, not the size.

Please send a patch to fix this up if that's the case.

Paolo



reply via email to

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