Commit 7e739a58bb9ebf673a4449e15fcf8d3bdd23fe02
1 parent
1987530f
qemu-img: info: show highest_alloc and num_free_bytes if exist (Uri Lublin)
Signed-off-by: Uri Lublin <uril@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6408 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
0 deletions
qemu-img.c
... | ... | @@ -727,6 +727,10 @@ static int img_info(int argc, char **argv) |
727 | 727 | if (bdrv_get_info(bs, &bdi) >= 0) { |
728 | 728 | if (bdi.cluster_size != 0) |
729 | 729 | printf("cluster_size: %d\n", bdi.cluster_size); |
730 | + if (bdi.highest_alloc) | |
731 | + printf("highest_alloc: %ld\n", bdi.highest_alloc); | |
732 | + if (bdi.num_free_bytes) | |
733 | + printf("num_free_bytes: %ld\n", bdi.num_free_bytes); | |
730 | 734 | } |
731 | 735 | bdrv_get_backing_filename(bs, backing_filename, sizeof(backing_filename)); |
732 | 736 | if (backing_filename[0] != '\0') { | ... | ... |