[libvirt] [PATCH 0/4] Wrong allocation size displayed for NFS volumes

John Ferlan jferlan at redhat.com
Tue Aug 5 14:38:56 UTC 2014


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




More information about the libvir-list mailing list