diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 150f0736f3..4499fed6bc 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -2921,6 +2921,10 @@ qemuDomainVirStorageSourceFindByNodeName(virStorageSource *top, for (tmp = top; virStorageSourceIsBacking(tmp); tmp = tmp->backingStore) { if (qemuDomainVirStorageSourceMatchNodename(tmp, nodeName)) return tmp; + + if (tmp->dataFileStore && + qemuDomainVirStorageSourceMatchNodename(tmp->dataFileStore, nodeName)) + return tmp->dataFileStore; } return NULL;