]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildHostdevSCSIAttachPrepare: Propagate 'readonly' flag also for iSCSI
authorPeter Krempa <pkrempa@redhat.com>
Tue, 15 Sep 2020 15:58:04 +0000 (17:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 16 Sep 2020 07:08:56 +0000 (09:08 +0200)
commitf2d90b558f0e116a2e3b8a0fc22fce7e90e5910b
treee1537d995db119ca300a423f38ae735524ce3da9
parentc58c97058602ee5be707c036c00c22400485e4e4
qemuBuildHostdevSCSIAttachPrepare: Propagate 'readonly' flag also for iSCSI

The 'readonly' hostdev property is stored separately from the
virStorageSource as some hostdevs are not described by a virStorage
source. We need to propagate the flag to the virStorage source also for
iSCSI backends as it's used to generate the backend properties.

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

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.x86_64-latest.args