]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Delete extra wrap after vol-resize error
authorYanqiu Zhang <yanqzhan@redhat.com>
Thu, 25 Aug 2016 02:49:55 +0000 (10:49 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 7 Sep 2016 15:11:30 +0000 (11:11 -0400)
commited8ba91ef20e85db87dadce0eb7ff3aa15ad88e6
treeec625954932ba5ef2ae9818062be216a58fa41c0
parentb871b78986760890d6d8d96e9380fd2687208fa5
storage: Delete extra wrap after vol-resize error

This patch is to delete the extra wrap "\n" after failed vol-resize
error for 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