[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv4] add qemu-img convert -C option (skip target v
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCHv4] add qemu-img convert -C option (skip target volume creation) |
Date: |
Thu, 22 Aug 2013 14:35:07 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
Il 22/08/2013 13:45, Stefan Hajnoczi ha scritto:
> On Mon, Aug 12, 2013 at 12:41:50PM +0100, Alex Bligh wrote:
>> > From: Alexandre Derumier <address@hidden>
>> >
>> > Add a -C option to skip volume creation on qemu-img convert.
>> > This is useful for targets such as rbd / ceph, where the
>> > target volume may already exist; we cannot always rely on
>> > qemu-img convert to create the image, as dependent on the
>> > output format, there may be parameters which are not possible
>> > to specify through the qemu-img convert command line.
>> >
>> > Signed-off-by: Alexandre Derumier <address@hidden>
>> > Signed-off-by: Alex Bligh <address@hidden>
>> > ---
>> > qemu-img-cmds.hx | 4 ++--
>> > qemu-img.c | 39 ++++++++++++++++++++++++---------------
>> > qemu-img.texi | 15 ++++++++++++++-
>> > 3 files changed, 40 insertions(+), 18 deletions(-)
> Looks good but please include a new qemu-iotest test case that checks:
>
> 1. Error if the target volume does not exist.
>
> 2. Success if a correctly sized target volume exists.
>
> 3. ?? if an incorrectly sized target volume exists.
>
> ...and anything else you feel is worth testing.
>
> I recommend keeping the test volume size small so the test case can
> execute quickly. 1 MB should be fine for raw or qcow2 images.
Also, this is the same as some HMP commands' "-n" option (live
snapshots, mirroring, backup) so I suggest to use that name.
Paolo