X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=df%2Fvirt-df.pod;h=24b35837f1102c84e5206306fbef89445cbd8d42;hb=41a7a68cf33a174ba950aa29951a07c391a16b4d;hp=e9f416c567ec3b8868a1cf3e75dff2b0e52a0a99;hpb=87fb6d852db04d0d707e6587d4579d1cf2bd05ef;p=libguestfs.git diff --git a/df/virt-df.pod b/df/virt-df.pod index e9f416c..24b3583 100755 --- a/df/virt-df.pod +++ b/df/virt-df.pod @@ -85,6 +85,12 @@ connect to the default libvirt hypervisor. If you specify guest block devices directly (I<-a>), then libvirt is not used at all. +=item B<--csv> + +Write out the results in CSV format (comma-separated values). This +format can be imported easily into databases and spreadsheets, but +read L below. + =item B<-d> guest =item B<--domain> guest @@ -124,7 +130,9 @@ Print sizes in human-readable format. You are not allowed to use I<-h> and I<--csv> at the same time. -=item B<--inodes> | B<-i> +=item B<-i> + +=item B<--inodes> Print inodes instead of blocks. @@ -180,6 +188,32 @@ Enable tracing of libguestfs API calls. =back +=head1 STATVFS NUMBERS + +C (and L) get information by issuing a L +system call. You can get the same information directly, either from +the host (using libguestfs) or inside the guest: + +=over 4 + +=item From the host + +Run this command: + + guestfish --ro -d GuestName -i statvfs / + +(change C to see stats for other filesystems). + +=item From inside the guest + +Run this command: + + python -c 'import os; s = os.statvfs ("/"); print s' + +(change C to see stats for other filesystems). + +=back + =head1 NOTE ABOUT CSV FORMAT Comma-separated values (CSV) is a deceptive format. It I like @@ -211,6 +245,11 @@ have meaning to the shell such as C<#> and space. You may need to quote or escape these characters on the command line. See the shell manual page L for details. +=head1 EXIT STATUS + +This program returns 0 if successful, or non-zero if there was an +error. + =head1 SEE ALSO L, @@ -239,4 +278,4 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.