]> xenbits.xensource.com Git - libvirt.git/commit
storage: Adjust qemu-img switches check
authorJohn Ferlan <jferlan@redhat.com>
Tue, 31 May 2016 14:53:18 +0000 (10:53 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 21 Jun 2016 18:31:19 +0000 (14:31 -0400)
commitf6a92f8e204f449ffde84405c1d9b5551bde4bbe
tree85ea2a207e720bdd31f63d08c78486a5d0eca334
parent8b3f0b767ea27d02417c8718c1ea16a9b300990a
storage: Adjust qemu-img switches check

Since we support QEMU 0.12 and later, checking for support of specific flags
added prior to that isn't necessary.

Thus start with the base of having the "-o options" available for the
qemu-img create option and then determine whether we have the compat
option for qcow2 files (which would be necessary up through qemu 2.0
where the default changes to compat 0.11).

Adjust test to no long check for NONE and FLAG options as well was removing
results of tests that would use that option.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend.c
tests/storagevolxml2argvdata/qcow2-flag.argv [deleted file]
tests/storagevolxml2argvdata/qcow2-nobacking-convert-flag.argv [deleted file]
tests/storagevolxml2argvdata/qcow2-nobacking-convert-none.argv [deleted file]
tests/storagevolxml2argvdata/qcow2-nobacking-flag.argv [deleted file]
tests/storagevolxml2argvdata/qcow2-nobacking-none.argv [deleted file]
tests/storagevolxml2argvdata/qcow2-none.argv [deleted file]
tests/storagevolxml2argvtest.c