summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-03-30 16:14:09 +0100
committerRichard Jones <rjones@redhat.com>2010-03-30 16:14:09 +0100
commit29c78cc979297b95407a5956b4caa34240a2f5a8 (patch)
tree0db9bceb10601595628ffaba1e59302016da0abd /README
parentfc5fbd460aa0aaf6bb65ca5fa1be59345f4f079f (diff)
downloadlibguestfs-29c78cc979297b95407a5956b4caa34240a2f5a8.tar.gz
libguestfs-29c78cc979297b95407a5956b4caa34240a2f5a8.tar.xz
libguestfs-29c78cc979297b95407a5956b4caa34240a2f5a8.zip
virt-df: Match output with native (coreutils) 'df' command (RHBZ#578123).
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
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions