mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
qemuDomainVirStorageSourceFindByNodeName: Match also '<dataStore>' sources
As the source for the data file is a completely separate virStorageSource including it's own index we need to match it explicitly, so that code such as storage threshold events work properly and separately for the data file. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
71935d4972
commit
515ed143ec
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user