Re: [PATCH] tools: fix the output of blockjob

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 11, 2015 at 12:14:57 +0800, Shanzhi Yu wrote:
> There will be no output when use blockjob with "--raw" option if guest
> has no block job. A explicit message should be given just like
> with "--info"

NACK, the --raw mode is for script consumption and thus no output means
there is no block job.

> 
> Signed-off-by: Shanzhi Yu <shyu@xxxxxxxxxx>
> ---
>  tools/virsh-domain.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
> index 14e1e35..7094a43 100644
> --- a/tools/virsh-domain.c
> +++ b/tools/virsh-domain.c
> @@ -2541,7 +2541,6 @@ cmdBlockJob(vshControl *ctl, const vshCmd *cmd)
>      }
>  
>      if (rc == 0) {
> -        if (!raw)
>              vshPrint(ctl, _("No current block job for %s"), path);

This line would be incorrectly indented after this patch.

>          ret = true;
>          goto cleanup;

Peter

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]