]> xenbits.xensource.com Git - libvirt.git/commit
virsh: make negative values with vol-resize more convenient
authorJán Tomko <jtomko@redhat.com>
Wed, 27 May 2015 14:46:01 +0000 (16:46 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 1 Jun 2015 11:56:49 +0000 (13:56 +0200)
commit0a33bba1aeec04ccf6963b6942bac4586f04dda7
treee192058f2d1d1e2e719bde93f21df1c03099eebe
parent778c56f0002ffdcb6121b39c7db858859658f942
virsh: make negative values with vol-resize more convenient

When shrinking a volume by a certain size, instead of typing
  vol-resize volume 1G --delta --shrink
we allow the convience of specifying a negative value:
  vol-resize volume -1G --delta --shrink
getting the same results with one more character.

A negative value only makes sense as a delta. Imply the
--delta parameter if the value is negative.

Still require --shrink, because the operation is potentially
destructive.
tools/virsh-volume.c