Re: [Qemu-devel] [PATCHv3 1/2] qemu-img: find the highest offset in use during check

2013-01-25 Thread Eric Blake
On 01/21/2013 10:52 AM, Eric Blake wrote: > On 01/21/2013 10:03 AM, Kevin Wolf wrote: >> Am 21.01.2013 17:27, schrieb Eric Blake: >>> On 01/21/2013 07:25 AM, Federico Simoncelli wrote: This patch adds the support for reporting the highest offset in use by an image. This is particularly us

Re: [Qemu-devel] [PATCHv3 1/2] qemu-img: find the highest offset in use during check

2013-01-23 Thread Kevin Wolf
Am 23.01.2013 16:24, schrieb Stefan Hajnoczi: > On Mon, Jan 21, 2013 at 09:25:12AM -0500, Federico Simoncelli wrote: >> @@ -1154,7 +1154,7 @@ int qcow2_check_refcounts(BlockDriverState *bs, >> BdrvCheckResult *res, >> s->refcount_table_offset, >> s->refcount_table_size * sizeof(u

Re: [Qemu-devel] [PATCHv3 1/2] qemu-img: find the highest offset in use during check

2013-01-23 Thread Stefan Hajnoczi
On Mon, Jan 21, 2013 at 09:25:12AM -0500, Federico Simoncelli wrote: > @@ -1154,7 +1154,7 @@ int qcow2_check_refcounts(BlockDriverState *bs, > BdrvCheckResult *res, > s->refcount_table_offset, > s->refcount_table_size * sizeof(uint64_t)); > > -for(i = 0; i < s->refcount_tab

Re: [Qemu-devel] [PATCHv3 1/2] qemu-img: find the highest offset in use during check

2013-01-21 Thread Eric Blake
On 01/21/2013 10:03 AM, Kevin Wolf wrote: > Am 21.01.2013 17:27, schrieb Eric Blake: >> On 01/21/2013 07:25 AM, Federico Simoncelli wrote: >>> This patch adds the support for reporting the highest offset in use by >>> an image. This is particularly useful after a conversion (or a rebase) >>> where

Re: [Qemu-devel] [PATCHv3 1/2] qemu-img: find the highest offset in use during check

2013-01-21 Thread Kevin Wolf
Am 21.01.2013 17:27, schrieb Eric Blake: > On 01/21/2013 07:25 AM, Federico Simoncelli wrote: >> This patch adds the support for reporting the highest offset in use by >> an image. This is particularly useful after a conversion (or a rebase) >> where the destination is a block device in order to fi

Re: [Qemu-devel] [PATCHv3 1/2] qemu-img: find the highest offset in use during check

2013-01-21 Thread Eric Blake
On 01/21/2013 07:25 AM, Federico Simoncelli wrote: > This patch adds the support for reporting the highest offset in use by > an image. This is particularly useful after a conversion (or a rebase) > where the destination is a block device in order to find the actual > amount of space in use. > > S

[Qemu-devel] [PATCHv3 1/2] qemu-img: find the highest offset in use during check

2013-01-21 Thread Federico Simoncelli
This patch adds the support for reporting the highest offset in use by an image. This is particularly useful after a conversion (or a rebase) where the destination is a block device in order to find the actual amount of space in use. Signed-off-by: Federico Simoncelli --- block/qcow2-refcount.c