On Sat, Jul 06, 2019 at 22:56:09 -0500, Eric Blake wrote: > A lot of this work heavily copies from the existing snapshot APIs. > The test driver doesn't really have to do anything more than just > expose an interface into libvirt metadata, making it possible to test > saving and restoring XML, and tracking relations between multiple > checkpoints. > > Signed-off-by: Eric Blake <[email protected]> > --- > src/test/test_driver.c | 390 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 390 insertions(+) > > diff --git a/src/test/test_driver.c b/src/test/test_driver.c > index e7ad4dbbd7..ddc8867bdd 100644 > --- a/src/test/test_driver.c > +++ b/src/test/test_driver.c
[...]
> @@ -7174,6 +7176,12 @@ testDomainSnapshotCreateXML(virDomainPtr domain,
> if (!(vm = testDomObjFromDomain(domain)))
> goto cleanup;
>
> + if (virDomainListCheckpoints(vm->checkpoints, NULL, domain, NULL, 0) >
> 0) {
> + virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
> + _("cannot create snapshot while checkpoint exists"));
> + goto cleanup;
> + }
> +
Hmmm, I don't see much point in modeling this though ...
Especially since I don't think it will be removed once the qemu driver
gains the ability.
signature.asc
Description: PGP signature
-- libvir-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/libvir-list
