[libvirt] [PATCH] virsh: remove reference to migration in blockcopy

Eric Blake eblake at redhat.com
Fri Oct 12 03:14:30 UTC 2012


On 10/11/2012 09:14 AM, Ján Tomko wrote:
> ---
>  tools/virsh-domain.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
> index 01550c7..1a9097f 100644
> --- a/tools/virsh-domain.c
> +++ b/tools/virsh-domain.c
> @@ -1468,13 +1468,13 @@ cmdBlockCopy(vshControl *ctl, const vshCmd *cmd)
>          }
>          if (vshCommandOptInt(cmd, "timeout", &timeout) > 0) {
>              if (timeout < 1) {
> -                vshError(ctl, "%s", _("migrate: Invalid timeout"));
> +                vshError(ctl, "%s", _("invalid timeout"));
>                  return false;
>              }
>  
>              /* Ensure that we can multiply by 1000 without overflowing. */
>              if (timeout > INT_MAX / 1000) {
> -                vshError(ctl, "%s", _("migrate: Timeout is too big"));
> +                vshError(ctl, "%s", _("timeout is too big"));
>                  return false;

Copy-and-paste - evidence that our code could be factored better for
more reuse.  Oh well.

ACK and pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list