Re: [Qemu-devel] [RFC PATCH 4/4] qcow2: Add full image preallocation option

2013-11-15 Thread Hu Tao
On Fri, Nov 15, 2013 at 09:29:43AM +0800, Hu Tao wrote: > On Wed, Nov 13, 2013 at 07:03:03AM +0100, Peter Lieven wrote: > > What is your use case for this seris? QCOW2 creation or converting > > anything to QCOW2? For the later case you could use "qemu-img convert -S 0 > > ..." > > starting in 1.8.

Re: [Qemu-devel] [RFC PATCH 4/4] qcow2: Add full image preallocation option

2013-11-14 Thread Hu Tao
On Wed, Nov 13, 2013 at 07:03:03AM +0100, Peter Lieven wrote: > What is your use case for this seris? QCOW2 creation or converting > anything to QCOW2? For the later case you could use "qemu-img convert -S 0 > ..." > starting in 1.8. The former. Seems "qemu-img convert -S 0" do the same thing but

Re: [Qemu-devel] [RFC PATCH 4/4] qcow2: Add full image preallocation option

2013-11-12 Thread Peter Lieven
What is your use case for this seris? QCOW2 creation or converting anything to QCOW2? For the later case you could use "qemu-img convert -S 0 ..." starting in 1.8. Peter Hu Tao wrote: > This adds a preallocation=full mode to qcow2 image creation, which > creates a non-sparse image file. > > Signe

Re: [Qemu-devel] [RFC PATCH 4/4] qcow2: Add full image preallocation option

2013-11-12 Thread Hu Tao
On Tue, Nov 12, 2013 at 11:31:03AM +0100, Kevin Wolf wrote: > Am 12.11.2013 um 08:47 hat Hu Tao geschrieben: > > This adds a preallocation=full mode to qcow2 image creation, which > > creates a non-sparse image file. > > > > Signed-off-by: Hu Tao > > --- > > block/qcow2.c | 28 ++

Re: [Qemu-devel] [RFC PATCH 4/4] qcow2: Add full image preallocation option

2013-11-12 Thread Kevin Wolf
Am 12.11.2013 um 08:47 hat Hu Tao geschrieben: > This adds a preallocation=full mode to qcow2 image creation, which > creates a non-sparse image file. > > Signed-off-by: Hu Tao > --- > block/qcow2.c | 28 ++-- > 1 file changed, 22 insertions(+), 6 deletions(-) > > diff -

[Qemu-devel] [RFC PATCH 4/4] qcow2: Add full image preallocation option

2013-11-11 Thread Hu Tao
This adds a preallocation=full mode to qcow2 image creation, which creates a non-sparse image file. Signed-off-by: Hu Tao --- block/qcow2.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 359030f..d3ca6cf 10064