]> xenbits.xensource.com Git - libvirt.git/commit
blockjob: add virsh blockcommit
authorEric Blake <eblake@redhat.com>
Mon, 17 Sep 2012 20:56:01 +0000 (14:56 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 18 Sep 2012 03:44:49 +0000 (21:44 -0600)
commited23b10660786b85b6455e29c8f08785db649b51
tree678dc5f7d979efd5629bc2a0c9ee1e1026efbb8c
parentef1e024df89cba592cf3c3aecd75ff319111946d
blockjob: add virsh blockcommit

The new command 'virsh blockcommit $dom $disk' requests the start
of an asynchronous commit operation across the entire chain of
$disk.  Further arguments can fine-tune which portion of the
chain is committed.  Existing 'virsh blockjob' commands can then
track the status, change the bandwidth, or abort the commit job.

With a bit more on the command line, 'virsh blockcommit $dom $disk
--wait --verbose' can be used for blocking behavior, with visual
feedback on the overall status, and can be canceled with Ctrl-C.

The overall design, including the wait loop logic, borrows heavily
from the existing blockpull command.

* tools/virsh-domain.c (cmdBlockCommit): New function.
* tools/virsh.pod (blockcommit): Document it.
tools/virsh-domain.c
tools/virsh.pod