qemuBuildHostdevSCSIAttachPrepare: Use "effective node" mode for getting blockdev props

The resulting properties are identical, as the hostdev backend code
doesn't set any of the extra properties.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2023-10-19 16:13:43 +02:00
parent ec936526c2
commit 3ad5d7b2bb
1 changed files with 1 additions and 2 deletions

View File

@ -5066,8 +5066,7 @@ qemuBuildHostdevSCSIAttachPrepare(virDomainHostdevDef *hostdev,
ret->storageNodeName = qemuBlockStorageSourceGetStorageNodename(src);
*backendAlias = qemuBlockStorageSourceGetStorageNodename(src);
if (!(ret->storageProps = qemuBlockStorageSourceGetBackendProps(src,
QEMU_BLOCK_STORAGE_SOURCE_BACKEND_PROPS_SKIP_UNMAP)))
if (!(ret->storageProps = qemuBlockStorageSourceGetBackendProps(src, QEMU_BLOCK_STORAGE_SOURCE_BACKEND_PROPS_EFFECTIVE_NODE)))
return NULL;
if (qemuBuildStorageSourceAttachPrepareCommon(src, ret) < 0)