diff options
author | Michael Vogt <mvo@debian.org> | 2013-05-31 21:20:40 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-05-31 21:20:40 +0200 |
commit | 6acf9a9b3b0346a2ba87a046f370f776d60f4a7f (patch) | |
tree | 6e16d055826e391c30006a0b7c4018c9f2e32ed5 /library | |
parent | add "size_{total,free}" to the "mount" facts (diff) | |
download | ansible-6acf9a9b3b0346a2ba87a046f370f776d60f4a7f.tar.xz ansible-6acf9a9b3b0346a2ba87a046f370f776d60f4a7f.zip |
use statvfs.f_bavail to match the output of "df -B1"
Diffstat (limited to 'library')
-rw-r--r-- | library/system/setup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/system/setup b/library/system/setup index 1e137e945c..7d6173301d 100644 --- a/library/system/setup +++ b/library/system/setup @@ -561,9 +561,9 @@ class LinuxHardware(Hardware): 'device':fields[0], 'fstype': fields[2], 'options': fields[3], - # statvfs + # statvfs data 'size_total': statvfs_result.f_bsize * statvfs_result.f_blocks, - 'size_free': statvfs_result.f_bsize * statvfs_result.f_bfree, + 'size_available': statvfs_result.f_bsize * (statvfs_result.f_bavail), }) def get_device_facts(self): |