[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V7 4/6] qemu-img: add -l for snapshot in convert
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH V7 4/6] qemu-img: add -l for snapshot in convert |
Date: |
Fri, 13 Dec 2013 06:44:12 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
On 12/08/2013 08:43 PM, Wenchao Xia wrote:
>>>
>>> convert -s snapshot.name=name1
>>>
>> Previous I planned to use -l for internal snapshot in all possible
>> program, since -s is taken as external snapshot in qemu, qemu-nbd.
Consistency in command line options between different tools is nice, but
is less important than adding functionality. I'm perfectly fine if we
use -l in one tool and -s in another, as long as the documentation is
clear on how to spell the option for the tool I want to use.
>> let -s stands for internal in qemu-img convert only, may bring
>> confuse to user, so I deprecated it instead of enhance it(I want
>> to remove it but may bring compatiablity issue).
>> Yes, it should report error when both specified, will send a patch
>> if you agree '-l' should still be used.
>>
>>
> Eric, I hope to get your idea before patching, any comments?
>
My biggest concern was that by adding -l as a superset of -s, but not
taking care of the relation between the two, you created odd command
line usage patterns. For qemu-img, it may be simpler to just make -s do
everything, instead of trying to deprecate it (that is, adding -l for
consistency with other tools while breaking -s isn't nice).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH V7 0/6] export internal snapshot by qemu-nbd, Wenchao Xia, 2013/12/04
- [Qemu-devel] [PATCH V7 2/6] qemu-nbd: support internal snapshot export, Wenchao Xia, 2013/12/04
- [Qemu-devel] [PATCH V7 3/6] qemu-iotests: add 058 internal snapshot export with qemu-nbd case, Wenchao Xia, 2013/12/04
- [Qemu-devel] [PATCH V7 1/6] snapshot: distinguish id and name in load_tmp, Wenchao Xia, 2013/12/04
- [Qemu-devel] [PATCH V7 5/6] qemu-iotests: add test for snapshot in qemu-img convert, Wenchao Xia, 2013/12/04
- [Qemu-devel] [PATCH V7 4/6] qemu-img: add -l for snapshot in convert, Wenchao Xia, 2013/12/04
[Qemu-devel] [PATCH V7 6/6] qemu-nbd: add doc for option -f, Wenchao Xia, 2013/12/04
Re: [Qemu-devel] [PATCH V7 0/6] export internal snapshot by qemu-nbd, Stefan Hajnoczi, 2013/12/04