[libvirt] [PATCH v7 3/6] qemu: track quiesced status in qemuDomainSnapshotFSFreeze

Eric Blake eblake at redhat.com
Wed May 7 03:50:08 UTC 2014


On 05/01/2014 06:06 PM, Tomoki Sekiyama wrote:
> Adds 'quiesced' status into qemuDomainObjPrivate that tracks whether
> FSFreeze is requested in the domain.
> 
> It modifies error code from qemuDomainSnapshotFSFreeze and
> qemuDomainSnapshotFSThaw, so that a caller can know whether the command is
> actually sent to the guest agent. If the error is caused before sending a
> freeze command, a counterpart thaw command shouldn't be sent either, not to
> confuse fsfreeze status tracking.
> 
> Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama at hds.com>
> ---
>  src/qemu/qemu_domain.c |    5 +++
>  src/qemu/qemu_domain.h |    2 +
>  src/qemu/qemu_driver.c |   70 +++++++++++++++++++++++++++++++++++++++---------
>  3 files changed, 64 insertions(+), 13 deletions(-)
> 

> -qemuDomainSnapshotFSFreeze(virDomainObjPtr vm)
> +qemuDomainSnapshotFSFreeze(virQEMUDriverPtr driver,
> +                           virDomainObjPtr vm)
>  {
>      qemuDomainObjPrivatePtr priv = vm->privateData;
> +    virQEMUDriverConfigPtr cfg;
>      int freezed;

Pre-existing, but we should do a cleanup of s/freezed/frozen/

Pushed per Dan's ack

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140506/958ec7a6/attachment-0001.sig>


More information about the libvir-list mailing list