| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Fix required by gcc 4.6.0.
(cherry picked from commit a9d6b948b590f58023a97dddd76302e40d49d2e2)
|
|
|
|
|
|
|
|
|
|
|
| |
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.
(cherry picked from commit e5220b26f51d5912371424ab6dfbdb46ce6aa170)
|
|
|
|
|
| |
If 'filename' doesn't contain a '/' character then virt-df
was calculating NULL as the basename and later segfaulting.
|
|
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).
|