[libvirt] [PATCH v3 1/5] virsh: improve blockcopy UI

Peter Krempa pkrempa at redhat.com
Thu Jun 12 08:45:16 UTC 2014


On 06/11/14 18:27, Eric Blake wrote:
> Peter's review of my addition of active block commit pointed out
> some issues that I had copied from block copy.  It makes sense to
> allow the shorter command-line of 'blockcopy $dom $disk --pivot'
> without having to explicitly specify --wait.  And my use of
> embedded ?: ternaries bordered on unreadable.
> 
> * tools/virsh-domain.c (cmdBlockCopy): Make --pivot and --finish
> imply --wait. Drop excess ?: operators.
> * tools/virsh.pod (blockcopy): Update documentation.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>  tools/virsh-domain.c | 25 ++++++++++++++-----------
>  tools/virsh.pod      | 17 +++++++++--------
>  2 files changed, 23 insertions(+), 19 deletions(-)
> 
> diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
> index e9162db..294b594 100644
> --- a/tools/virsh-domain.c
> +++ b/tools/virsh-domain.c

> @@ -1808,10 +1808,10 @@ cmdBlockCopy(vshControl *ctl, const vshCmd *cmd)
>  {
>      virDomainPtr dom = NULL;
>      bool ret = false;
> -    bool blocking = vshCommandOptBool(cmd, "wait");
>      bool verbose = vshCommandOptBool(cmd, "verbose");
>      bool pivot = vshCommandOptBool(cmd, "pivot");
>      bool finish = vshCommandOptBool(cmd, "finish");
> +    bool blocking = vshCommandOptBool(cmd, "wait");

Spurious line move?

>      int timeout = 0;
>      struct sigaction sig_action;
>      struct sigaction old_sig_action;

ACK,

Peter


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140612/2f599a2a/attachment-0001.sig>


More information about the libvir-list mailing list