mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: assume QEMU_CAPS_FSDEV_CREATEMODE
Added by QEMU commit: b96feb2cb9 "9pfs: local: Add support for custom fmode/dmode in 9ps mapped security modes" in 2.10.0 Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
f501cec73d
commit
43fac71b70
@ -4165,11 +4165,6 @@ qemuValidateDomainDeviceDefFS(virDomainFSDef *fs,
|
||||
}
|
||||
|
||||
if ((fs->fmode != 0) || (fs->dmode != 0)) {
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_FSDEV_CREATEMODE)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("fmode and dmode are not supported with this QEMU binary"));
|
||||
return -1;
|
||||
}
|
||||
if (fs->accessmode != VIR_DOMAIN_FS_ACCESSMODE_MAPPED) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("fmode and dmode must be used with accessmode=mapped"));
|
||||
|
Loading…
Reference in New Issue
Block a user