.\" ========================================================================
.\"
.IX Title "VIRT-DF 1"
-.TH VIRT-DF 1 "2008-04-17" "virt-df-2.0.0" "Virtualization Support"
+.TH VIRT-DF 1 "2008-06-10" "virt-df-2.1.1" "Virtualization Support"
.SH "NAME"
virt\-df \- 'df'\-like utility for virtualization stats
.SH "SUMMARY"
.PP
It uses libvirt so it is capable of showing stats across a variety of
different virtualization systems.
-.PP
-There are some shortcomings to the whole approach of reading disk
-state from outside the guest. Please read \s-1SHORTCOMINGS\s0 section below
-for more details.
.SH "OPTIONS"
.IX Header "OPTIONS"
.IP "\fB\-a\fR, \fB\-\-all\fR" 4
report a bug.
.IP "\fB\-h\fR, \fB\-\-human\-readable\fR" 4
.IX Item "-h, --human-readable"
-Display human-readable sizes (eg. 10GiB).
+Display human-readable sizes (eg. \*(L"10GiB\*(R" instead of large numbers).
.IP "\fB\-i\fR, \fB\-\-inodes\fR" 4
.IX Item "-i, --inodes"
Display inode information.
+.Sp
+This option only works for Unix-like filesystems.
.IP "\fB\-\-help\fR" 4
.IX Item "--help"
Display usage summary.
.IP "\fB\-\-version\fR" 4
.IX Item "--version"
Display version and exit.
+.SH "EXAMPLE"
+.IX Header "EXAMPLE"
+.Vb 5
+\& # virt-df
+\& Filesystem 1K-blocks Used Available Type
+\& f9x32kvm:hda1 190740 24817 165923 Linux ext2/3
+\& f9x32kvm:VolGroup/LogVol00 6568348 3401656 3166692 Linux ext2/3
+\& f9x32kvm:VolGroup/LogVol01 1015808 Linux swap
+.Ve
.SH "SHORTCOMINGS"
.IX Header "SHORTCOMINGS"
virt-df spies on the guest's disk image to try to work out how much
disk space it is actually using. There are some shortcomings to this,
described here.
.PP
-(1) It does not work over remote connections. The storage \s-1API\s0 does
-not support peeking into remote disks, and libvirt has rejected a
-request to add this support.
-.PP
-(2) It only understands a limited set of partition types. Assuming
+(1) It only understands a limited set of partition types. Assuming
that the files and partitions that we get back from libvirt / Xen
correspond to block devices in the guests, we can go some way towards
manually parsing those partitions to find out what they contain. We
support that, but there's not really any good way to access that work.
.PP
The current implementation uses a hand-coded parser which understands
-some simple formats (\s-1MBR\s0, \s-1LVM2\s0, ext2/3). In future we should use
-something like libparted.
+some formats (\s-1MBR\s0, \s-1LVM2\s0, ext2/3, \s-1DOS\s0 \s-1FAT\s0, Windows \s-1NTFS\s0, Linux swap and
+Linux suspend partitions).
.PP
-(3) The statistics you get are delayed. The real state of, for
+(2) The statistics you get are delayed. The real state of, for
example, an ext2 filesystem is only stored in the memory of the
guest's kernel. The ext2 superblock contains some meta-information
about blocks used and free, but this superblock is not up to date. In