]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: expose new active commit controls
authorEric Blake <eblake@redhat.com>
Wed, 21 May 2014 04:11:29 +0000 (22:11 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 19 Jun 2014 13:07:25 +0000 (07:07 -0600)
commitf182da20b09d01b3eaba3c9ed81a7ffa215fc286
tree25f4a092faeb63637834fbdd70a0e97bfbfddef9
parent1bfe73a126e45ad6632d0d0adda715344530e55c
virsh: expose new active commit controls

Add knobs to virsh to manage a 2-phase active commit of the top
layer, similar to knobs already present on blockcopy.  While this
code will fail until later patches actually implement the new
knobs in the qemu driver, doing it now proves that the API is
usable and also makes it easier for testing the qemu changes as
they are made.

* tools/virsh-domain.c (cmdBlockCommit): Add --active, --pivot,
and --keep-overlay options, modeled after blockcopy.
(blockJobImpl): Support --active flag.
* tools/virsh.pod (blockcommit): Document new flags.
(blockjob): Mention 2-phase commit interaction.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh-domain.c
tools/virsh.pod