]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Don't adjust pool alloc/avail values for disk backend
authorJohn Ferlan <jferlan@redhat.com>
Tue, 26 May 2015 13:23:28 +0000 (09:23 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 May 2015 17:32:16 +0000 (13:32 -0400)
commit48809204d16348c540ac9571b517312c30da21da
tree9d98aca3773b91deb659c78013e41a59f9beeace
parent6727bfd72858dcd4448348cb7de20a53a4be8ed4
storage: Don't adjust pool alloc/avail values for disk backend

Commit id '2ac0e647' for https://bugzilla.redhat.com/show_bug.cgi?id=1206521
was meant to be a generic check for the CreateVol, CreateVolFrom, and
DeleteVol paths to check if the storage backend's changed the pool's view
of allocation or available values.

Unfortunately as it turns out this caused a side effect when the disk backend
created an extended partition there would be no actual storage removed from
the pool, thus the changes would not find any change in allocation or
available and incorrectly update the pool values using the size of the
extended partition. A subsequent refresh of the pool would reset the
values appropriately.

This patch modifies those checks in order to specifically not update the
pool allocation and available for only the disk backend rather than be
generic before and after checks.
src/storage/storage_driver.c