[Libvir] RFC: PATCH 3/5: verbose job progress in virsh

Richard W.M. Jones rjones at redhat.com
Mon Jan 14 11:09:54 UTC 2008

Daniel P. Berrange wrote:
> This patch updates virsh to make use of any APIs with
> new *Job variants. This means the 'create', 'start',
> 'save', 'restore', 'dump', 'net-create' and 'net-start'
> methods all now take a '--verbose' option. If this
> option is given, it will invoke the *Job variant of
> the API and print out increment progress information.
> eg, As an example of a job which has a bounded time,
>    $ ./virsh --connect test:///default save --verbose test foo
>    save [=====       18%          ] Duration: 9 s, ETA: 41 s
>    error: Cancelled domain save operation
> eg, As an example which is unbounded
>    $ ./virsh --connect test:///default save --verbose test foo
>    save [         =               ] Duration: 9 s
>    error: Cancelled domain save operation
> In the latter case, the '=' will bounce back & forth while
> the job is running.
> Both cases illustrate how the 'Ctrl-C' / SIGINT handler is
> hooked up such that 'virJobCancel' is run. Pressing Ctrl-C
> twice in quick succession will still immediately exit the
> program - useful if cancellation fails for some reason.

Looks sensible.


Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080114/e6123e52/attachment-0001.bin>

More information about the libvir-list mailing list