[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/6] qemu-img create: Support multiple -o opt
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/6] qemu-img create: Support multiple -o options |
Date: |
Thu, 20 Feb 2014 09:24:24 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On 02/20/2014 08:52 AM, Eric Blake wrote:
> Previously:
>
> qemu-img create -f qcow2 -o backing_file=/dev/null, xyz 1M
>
> creates xyz with a backing file of /dev/null and unspecified backing
> format (and ignores the empty trailing option).
> And maybe patch get_opt_value() to detect and reject empty
> trailing options as well.
Further evidence for my desire to improve get_opt_value() for
consistency: we already reject empty leading options...
$ qemu-img create -f qcow2 -o ,backing_file=/dev/null xyz 1MUnknown
option ''
qemu-img: xyz: Invalid options for file format 'qcow2'.
...although we happily ignore an empty option:
$ qemu-img create -f qcow2 -o '' xyz 1M
Formatting 'xyz', fmt=qcow2 size=1048576 encryption=off
cluster_size=65536 lazy_refcounts=off
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v2 0/6] qemu-img: Support multiple -o options, Kevin Wolf, 2014/02/20
- [Qemu-devel] [PATCH v2 1/6] qemu-option: Introduce has_help_option(), Kevin Wolf, 2014/02/20
- [Qemu-devel] [PATCH v2 2/6] qemu-img create: Support multiple -o options, Kevin Wolf, 2014/02/20
- [Qemu-devel] [PATCH v2 3/6] qemu-img convert: Support multiple -o options, Kevin Wolf, 2014/02/20
- [Qemu-devel] [PATCH v2 4/6] qemu-img amend: Support multiple -o options, Kevin Wolf, 2014/02/20
- [Qemu-devel] [PATCH v2 6/6] qemu-iotests: Check qemu-img command line parsing, Kevin Wolf, 2014/02/20