]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Allow display of the physical volume size
authorJohn Ferlan <jferlan@redhat.com>
Tue, 29 Nov 2016 18:25:42 +0000 (13:25 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 20 Dec 2016 18:54:03 +0000 (13:54 -0500)
commitf62e418c86d95acba938e8fcead8fd720bd58fb1
treee909320430e5e85cfadd53311ed46ce27bdac458
parent0c234889c4b0bd21ab2103c8bbac0290db1ff600
virsh: Allow display of the physical volume size

Add a new qualifier '--physical' to the 'vol-info' command in order to
dispaly the physical size of the volume. The size can differ from the
allocation value depending on the volume file time. In particular, qcow2
volumes will have a physical value larger than allocation. This also occurs
for sparse files, although for those the capacity is the largest size;
whereas, for qcow2 capacity is the logical size.

Signed-off-by: John Ferlan <jferlan@redhat.com>
tools/virsh-volume.c
tools/virsh.pod