qemu-img: allow qemu-img measure --object without a filename
commitc3673dcf08c7baf900bf572f6d96d8a7bd565c9d
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 21 Feb 2020 11:25:21 +0000 (21 11:25 +0000)
committerMax Reitz <mreitz@redhat.com>
Wed, 11 Mar 2020 11:42:29 +0000 (11 12:42 +0100)
tree363dfab4ae75ba2cee828447efa5109f3556da27
parenta9da6e49d8281e65d172ed843807a613651d4ef3
qemu-img: allow qemu-img measure --object without a filename

In most qemu-img sub-commands the --object option only makes sense when
there is a filename.  qemu-img measure is an exception because objects
may be referenced from the image creation options instead of an existing
image file.  Allow --object without a filename.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200221112522.1497712-4-stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c
tests/qemu-iotests/178
tests/qemu-iotests/178.out.qcow2
tests/qemu-iotests/178.out.raw