mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-09 21:21:28 +00:00
qemuValidateDomainDeviceDefFS: Use correct enum for fs->multidevs comparison
During validation of a virDomainFSDef QEMU capabilities are check for multidevs support if the FS definition has it enabled. However, the fs->multidevs is really type of virDomainFSMultidevs but is compared against virDomainFSModel enum. Fortunately, both values are the same so no user visible harm done here. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6690a97b06
commit
2ab0a346bf
@ -4234,7 +4234,7 @@ qemuValidateDomainDeviceDefFS(virDomainFSDef *fs,
|
|||||||
_("only supports mount filesystem type"));
|
_("only supports mount filesystem type"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (fs->multidevs != VIR_DOMAIN_FS_MODEL_DEFAULT &&
|
if (fs->multidevs != VIR_DOMAIN_FS_MULTIDEVS_DEFAULT &&
|
||||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_FSDEV_MULTIDEVS)) {
|
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_FSDEV_MULTIDEVS)) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("multidevs is not supported with this QEMU binary"));
|
_("multidevs is not supported with this QEMU binary"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user