]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Update pool allocation with new values on volume creation
authorJán Tomko <jtomko@redhat.com>
Thu, 24 Sep 2015 15:01:40 +0000 (17:01 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 23 Dec 2015 23:15:44 +0000 (18:15 -0500)
commit9a51c50048cf0706e0f6ba21c62722d26d83c27b
treea38549b6003401e8ea78523058f789d837c7a6a1
parent5741803cebe64f177e6cfb0fef9402211bfceca5
Update pool allocation with new values on volume creation

Since commit e0139e3, we update the pool allocation with
the user-provided allocation values.

For qcow2, the allocation is ignored for volume building,
but we still subtracted it from pool's allocation.
This can result in interesting values if the user-provided
allocation is large enough:

Capacity:       104.71 GiB
Allocation:     109.13 GiB
Available:      16.00 EiB

We already do a VolRefresh on volume creation. Also refresh
the volume after creating and use the new value to update the pool.

https://bugzilla.redhat.com/show_bug.cgi?id=1163091
(cherry picked from commit 56a4e9cb613aff9cd6f828c0a9283fba55ac5951)
src/storage/storage_driver.c