summaryrefslogtreecommitdiffstats
path: root/df/main.c
Commit message (Collapse)AuthorAgeFilesLines
* fish: Make type == drv_N field private to guestfish.Richard W.M. Jones2012-11-291-1/+0
| | | | | The -N option / drv_N type only makes sense when we are compiling guestfish, and just serves to complicate non-guestfish code.
* virt-df: Better output when multiple -a/-d options are specified (RHBZ#880801).Richard W.M. Jones2012-11-291-16/+85
| | | | | | | | | | | | | | This is very well explained in the bugzilla comments: https://bugzilla.redhat.com/show_bug.cgi?id=880801#c1 With this change, the disk name has a one or more plus signs ('+') appended to show that there are additional disks: $ virt-df -a Win7x32TwoDisks-a -a Win7x32TwoDisks-b Filesystem 1K-blocks Used Available Use% Win7x32TwoDisks-a+:/dev/sda1 102396 24712 77684 25% Win7x32TwoDisks-a+:/dev/sda2 12478460 7403416 5075044 60% Win7x32TwoDisks-a+:/dev/sdb1 521212 55728 465484 11%
* df: Avoid a compilation error if libxml2 is not available.Richard W.M. Jones2012-03-251-2/+2
| | | | | | | | | | virt_df-domains.o: In function `add_domain': /home/feeliwood/Downloads/libguestfs-1.17.21/df/domains.c:274: undefined reference to `guestfs___for_each_disk' guestfs___for_each_disk is only available when libvirt _and_ libxml2 dependencies are available at compile time. Thanks Tho Huynh.
* Tempus fugit.Richard W.M. Jones2012-01-181-1/+1
| | | | Update all copyright dates to 2012.
* fish options parsing: Allow add_drives to be called multiple times.Richard W.M. Jones2012-01-181-3/+2
| | | | | | Ensure that the drv structure is always zeroed on allocation. Don't leak old drv->device when add_drives is called multiple times.
* Update FSF address.Matthew Booth2011-11-081-1/+1
|
* Include string.h and libintl.h, as needed.Jim Meyering2011-04-131-1/+3
| | | | | | | | | * df/df.c: As above. * df/main.c: As above. * df/output.c: As above. * fuse/guestmount.c: As above. * inspector/virt-inspector.c: As above. * rescue/virt-rescue.c: As above.
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-071-0/+1
| | | | Fix required by gcc 4.6.0.
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-031-0/+2
| | | | | | The other programs have the variable, but the flag is not enabled either because it doesn't make sense or because the implications are not well understood.
* df: Skip final '/' character when calculating basename.Richard W.M. Jones2011-01-111-0/+2
| | | | | | | | | | Previously it was including the final '/' character when calculating the basename for the -a option eg: Filesystem Size Used Available Use% /Ubuntu1010x64:/dev/sda1 9.4G 2.3G 6.6G 25% With this patch the '/' is not printed.
* df: Fix segfault when using virt-df -a filenameRichard W.M. Jones2010-11-301-0/+2
| | | | | If 'filename' doesn't contain a '/' character then virt-df was calculating NULL as the basename and later segfaulting.
* df: Rewrite virt-df in C.Richard W.M. Jones2010-11-251-0/+306
I have diffed the output from the original virt-df with this new version, and they agree very closely. Some differences: - Old virt-df have a divide-by-zero error in cases where the number of used inodes was 0. New virt-df fixes this. - New virt-df uses gnulib human_readable library which displays numbers to 3 significant figures for -h output (old version used an ad hoc function).