mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
ec936526c2
commit
3ad5d7b2bb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue