]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Validate disk lun using correct types
authorJohn Ferlan <jferlan@redhat.com>
Fri, 26 Jun 2015 17:48:06 +0000 (13:48 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 30 Jun 2015 12:39:32 +0000 (08:39 -0400)
commitc79ebf53b5fe0a33bf407b3bcb49e3a27ec97eb4
tree5534b74fc51d2ebe81cefd9769b0c44d3d644d9f
parent7e7dee438991cee49008a6d8b68e2083b92c31a7
conf: Validate disk lun using correct types

https://bugzilla.redhat.com/show_bug.cgi?id=1201143

The formatdomain.html description for <disk> device 'lun' indicates that
it must be either a type 'block' or type 'network' with protocol 'iscsi';
however, we did not make that check until domain startup.

This caused issues for virt-manager which had an unexpected failure at
run time rather config time.

This patch adds a check in post part disk device checking for the specific
and supported lun types as well as adjusting the test failure to be for
parse config rather than run time.
src/conf/domain_conf.c
tests/qemuxml2argvtest.c