https://bugzilla.redhat.com/show_bug.cgi?id=1077068
The virsh vol-info (and virsh domblkinfo) commands return an incorrect
size if the target device is an NFS volume. These patches will add a
check for the target being NFS and rather than calculate the size based
on "st_blocks" and "DEV_BSIZE" (512) use the "st_size" value
instead.
John Ferlan (4):
virfile: Split virFileGetFSFtype
virfile: Introduce virFileIsNFSFSType
vol-info: Check for NFS FS type
domblkinfo: Check for NFS FS Type
src/libvirt_private.syms | 1 +
src/qemu/qemu_driver.c | 7 ++++--
src/storage/storage_backend.c | 7 ++++--
src/util/virfile.c | 53 +++++++++++++++++++++++++++++++++++--------
src/util/virfile.h | 1 +
5 files changed, 55 insertions(+), 14 deletions(-)
--
1.9.3