[libvirt] [PATCH v7 03/23] snapshot: Refactor qemu to utilize virDomainMoment more

Daniel P. Berrangé berrange at redhat.com
Wed Mar 27 11:39:51 UTC 2019


On Wed, Mar 27, 2019 at 05:10:34AM -0500, Eric Blake wrote:
> Use the common base class virDomainMoment for iterator callbacks
> related to snapshots from the qemu code, so that when checkpoint
> operations are introduced, they can share the same callbacks.
> 
> Simplify the code for qemuDomainSnapshotCurrent by better utilizing
> virDomainMoment helpers.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>  src/qemu/qemu_domain.h | 20 +++++++++-------
>  src/qemu/qemu_domain.c | 33 +++++++++++++-------------
>  src/qemu/qemu_driver.c | 53 +++++++++++++++++++++++-------------------
>  3 files changed, 57 insertions(+), 49 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list