The lookup by nodename requires the proper storage nodename which we use
also in status XML.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_domain.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 918b5a14e1..f891defa91 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -2812,8 +2812,10 @@ qemuDomainVirStorageSourceFindByNodeName(virStorageSource *top,
virStorageSource *tmp;
for (tmp = top; virStorageSourceIsBacking(tmp); tmp = tmp->backingStore) {
+ const char *nodestorage = qemuBlockStorageSourceGetStorageNodename(tmp);
+
if ((tmp->nodeformat && STREQ(tmp->nodeformat, nodeName)) ||
- (tmp->nodestorage && STREQ(tmp->nodestorage, nodeName)))
+ (nodestorage && STREQ(nodestorage, nodeName)))
return tmp;
}
--
2.41.0