]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Simplify allocation check in storageVolResize
authorJán Tomko <jtomko@redhat.com>
Wed, 27 May 2015 13:39:07 +0000 (15:39 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 28 May 2015 12:10:09 +0000 (14:10 +0200)
commit7211f66ad71066dc1bf9c428c70d8ba87ab791e9
treea55545e1065e6e28329a3219485029081db39fb2
parent30ae685780a6dbedabb06c8ec326b3858b77e3d3
Simplify allocation check in storageVolResize

Since shrinking a volume below existing allocation is not allowed,
it is not possible for a successful resize with VOL_RESIZE_ALLOCATE
to increase the pool's available value.

Even with the SHRINK flag it is possible to extend the current
allocation or even the capacity. Remove the overflow when
computing delta with this flag and do the check even if the
flag was specified.

https://bugzilla.redhat.com/show_bug.cgi?id=1073305
src/storage/storage_driver.c