X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-df;h=45b786944c5c5aa694850dc914646b30d0c809d5;hb=09cf74a339670daeb2e841cdf26082e086ff5fa9;hp=b997691c7f8eb8fdf433764820e27746c5076d55;hpb=7f48d06d937128f62515d6076b1b21a43d586402;p=libguestfs.git diff --git a/tools/virt-df b/tools/virt-df index b997691..45b7869 100755 --- a/tools/virt-df +++ b/tools/virt-df @@ -119,6 +119,8 @@ my $human; Print sizes in human-readable format. +You are not allowed to use I<-h> and I<--csv> at the same time. + =cut my $inodes; @@ -146,6 +148,9 @@ if ($version) { exit } +# RHBZ#600977 +die __"virt-df: cannot use -h and --csv options together\n" if $human && $csv; + # Open the guest handle. if (@ARGV == 0) { @@ -163,7 +168,7 @@ if (@ARGV == 0) { # https://bugzilla.redhat.com/show_bug.cgi?id=538041 @doms = grep { $_->get_id () != 0 } @doms; - my @domnames = map { $_->get_name () } @doms; + my @domnames = sort (map { $_->get_name () } @doms); if (@domnames) { print_title ();