]> xenbits.xensource.com Git - libvirt.git/commit
qemu: track quiesced status in qemuDomainSnapshotFSFreeze
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Fri, 2 May 2014 00:06:01 +0000 (20:06 -0400)
committerEric Blake <eblake@redhat.com>
Wed, 7 May 2014 03:50:53 +0000 (21:50 -0600)
commitb6d4dad11bd6b244d20d0f3a39257aaaed7c53b4
tree12dfa4c2fa3d33e9a299643eaa5800936c2c02b2
parentca3d07fd450396bbaf5c9f1458928b2d5b9611ad
qemu: track quiesced status in qemuDomainSnapshotFSFreeze

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@hds.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c