Re: [Qemu-devel] [PATCH] qcow2: Patch for shrinking qcow2 disk image

2014-04-03 Thread Jun Lee
- 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

[Qemu-devel] [PATCH] qcow2: Patch for shrinking qcow2 disk image

2014-04-01 Thread Jun Lee
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 support shrinking, so changed the func name of