summaryrefslogtreecommitdiffstats
path: root/tools/virt-df
Commit message (Collapse)AuthorAgeFilesLines
* virt-df: Match output with native (coreutils) 'df' command (RHBZ#578123).Richard Jones2010-03-301-9/+11
| | | | | | | | | | | | | | | | | | | | This commit fixes the 'Use%' field in the output so it matches what coreutils' 'df' command would print. Firstly we change the calculation to use the space available to root, not the space available to non-root. This means it matches what 'df' when run as root in the guest would show. Secondly we display this rounded up to the next whole percent (ie. using ceil), which is also what 'df' does. Thirdly we change the regression test so it tests this. Note that even with these changes you are not guaranteed to get precisely the same figures from inside and outside the guest, as it depends on how quiescent the guest is and how recently the superblock was synced. Thanks: Rita Wu
* Remove unused Perl modules.Richard Jones2010-02-191-1/+0
| | | | These were 'use'd but not actually used.
* virt-df: Ignore domains which have ID 0.Richard Jones2009-11-171-0/+3
| | | | | | | | | This is the remainder of the fix for RHBZ#538041. Domains which have ID 0 are special domains. libvirt defines it as the "control plane OS". Only Xen and HyperV have this behaviour, and in both cases we should ignore those domains for the purposes of virt-df (user can just run "df" if they need that information for the dom0).
* virt-df: Turn errors into warnings when listing all domains.Richard Jones2009-11-171-1/+2
| | | | | | This is a partial fix for RHBZ#538041. When listing all domains, don't die just because one domain fails, but keep trying for the rest.
* Move virt tools (virt-cat, virt-edit etc) into tools/ subdirectory.Richard Jones2009-10-191-0/+366
This moves the tool programs into a single directory: cat/* -> tools/virt-cat df/* -> tools/virt-df edit/* -> tools/virt-edit rescue/* -> tools/virt-rescue This in itself simplifies the build process because we only need one Makefile and one copy of 'run-locally'. 'run-*-locally' has become just 'run-locally' and takes an extra parameter which is the name of the tool, eg: run-locally cat [virt-cat params...] virt-inspector stays in its own directory, because this contains more than just a single Perl script.