summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2022-01-12 14:20:04 +0100
committerPeter Krempa <pkrempa@redhat.com>2022-01-14 18:05:30 +0100
commitef3f3884a2432958bdd4ea0ce45509d47a91a453 (patch)
tree59965c31ed69f92ed88dcfcf710a12646af5d363 /src/test
parent0b97d87a6da02656cf584b716e3183a217213977 (diff)
downloadlibvirt-ef3f3884a2432958bdd4ea0ce45509d47a91a453.tar.gz
virDomainSnapshotAlignDisks: Allow alternate domain definition when redefining
Due to historical reasons we allow users to redefine an existing snapshot without providing the domain definition which would correspond to it. In such case we'd use the domain definition from the snapshot that is being redefined. To prevent callers from doing complex moving of the domain definition object back and forth between the snapshot definitions we can add an argument to virDomainSnapshotAlignDisks which will allow us to pass in the alternate definition if the one from the snapshot is missing. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 44f06530b5..dde7bf1b8e 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -8736,7 +8736,7 @@ testDomainSnapshotAlignDisks(virDomainObj *vm,
VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
}
- return virDomainSnapshotAlignDisks(def, align_location, true);
+ return virDomainSnapshotAlignDisks(def, NULL, align_location, true);
}
static virDomainSnapshotPtr