[libvirt] [PATCH] Delete extra wrap after vol-reisize error

John Ferlan jferlan at redhat.com
Wed Sep 7 17:54:48 UTC 2016



On 08/24/2016 10:49 PM, Yanqiu Zhang wrote:
> This patch is to delete the extra wrap "\n" after failed vol-reisize error, both "Failed to change size of volume to" and "Failed to change size of volume by". For error with wrap, there will be an extra wrap between two errors, such as:
> (1)# virsh vol-resize --pool default --vol vol-test 5M
> error: Failed to change size of volume 'vol-test' to 5M
> 
> error: invalid argument: Can't shrink capacity below current capacity unless shrink flag explicitly specified
> (2)# virsh vol-resize /var/lib/libvirt/images/volds --shrink --delta 10M
> error: Failed to change size of volume 'volds' by 10M
> 
> error: invalid argument: can't shrink capacity below existing allocation
> ---
>  tools/virsh-volume.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

ACK and pushed - congrats on your first patch!


John




More information about the libvir-list mailing list