]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Forbid to shrink the vol's capacity if no --shrink is specified
authorOsier Yang <jyang@redhat.com>
Fri, 31 May 2013 05:16:15 +0000 (13:16 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 5 Jun 2013 10:40:43 +0000 (18:40 +0800)
commit38b90e4df3c897431a4a199cef34e80dce9e2617
treedca4a44e8cad771885666720bf332147ad145cbd
parentaa2a4cff7c217c18abb657cb4cebb8c68f3ee45b
storage: Forbid to shrink the vol's capacity if no --shrink is specified

As the document for "virsh-resize" says:
<...>
Attempts to shrink the volume will fail unless I<--shrink> is present;
</...>

This makes sense as it at least prevent the user shrinking the important
data of volume without a notice.
src/storage/storage_driver.c