On Thu, 04/03 07:28, Jun Lee wrote:
> > @@ -66,7 +63,18 @@ int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t
> > min_size,
> >
> > new_l1_size2 = sizeof(uint64_t) * new_l1_size;
> > new_l1_table = g_malloc0(align_offset(new_l1_size2, 512));
> > -memcpy(new_l1_table, s->l1_tabl
- Original Message -
From: "Fam Zheng"
To: "Jun Lee"
Cc: kw...@redhat.com, stefa...@redhat.com, qemu-devel@nongnu.org
Sent: Wednesday, April 2, 2014 10:24:34 AM
Subject: Re: [Qemu-devel] [PATCH] qcow2: Patch for shrinking qcow2 disk image
On Tue, 04/01 10:06, Jun
On Tue, 04/01 10:06, Jun Lee wrote:
> Signed-off-by: Jun Li
>
> This patch can make sure the data still existing after shrinking. And only
> discard the unused (guest) clusters. If shrinking to the size which stored
> data, It will return an error and will not do any change.
> As this patch can