]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Refactor qemuBuildDriveStrValidate to make qemuCaps optional
authorPeter Krempa <pkrempa@redhat.com>
Wed, 1 Nov 2017 10:17:20 +0000 (11:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 7 Nov 2017 13:31:21 +0000 (14:31 +0100)
commit5fb7ab2c9e326f79a1776c930d8f78ea53054500
tree23061f4f37e39f567963bcfb3476c7805ea0ee7d
parentf15ed22757824627ad3f4f4c50258fd99e2371ec
qemu: command: Refactor qemuBuildDriveStrValidate to make qemuCaps optional

To allow merging this with other disk type checks we need to check
qemuCaps only when available, since some of the checks are executed on
disk cold-plug and thus capabilities should not be checked.

Make the checks optional by making them conditional on qemuCaps not
being NULL.
src/qemu/qemu_command.c