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(a)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