]> xenbits.xensource.com Git - libvirt.git/commit
Probe for capacity in virStorageBackendUpdateVolTargetInfo
authorJán Tomko <jtomko@redhat.com>
Thu, 19 Feb 2015 12:35:20 +0000 (13:35 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 2 Mar 2015 07:07:11 +0000 (08:07 +0100)
commita760ba3a7f58ddd395a0850610475bceb72cbccb
tree15fe416a520f397fab5283be422b8b64bc81077c
parente3f1d2a8201e552837f77ce38613a555524888cc
Probe for capacity in virStorageBackendUpdateVolTargetInfo

Instead of just looking at the output of fstat, call
virStorageFileGetMetadata to get the full capacity from
image headers.

Note that the capacity is probed unconditionally. The updateCapacity
bool parameter is ignored and will be removed in the following commit.
src/storage/storage_backend.c