Use os.statvfs to determine free disk space
authorHelga Velroyen <helgav@google.com>
Wed, 15 May 2013 09:45:40 +0000 (11:45 +0200)
committerHelga Velroyen <helgav@google.com>
Wed, 15 May 2013 12:02:21 +0000 (14:02 +0200)
commit5d94c034698af24494af985d546f8e4f82feb9db
treea93e31e41205bca0edd2e1a08f253cee83002d87
parentf08b1a0061a949646b436eeb582eaf0eadbf2787
Use os.statvfs to determine free disk space

This simplifies my previous commit (820bade90) by using os.statvfs
instead of parsing the output of 'df'.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
lib/storage/filestorage.py
test/py/ganeti.storage.filestorage_unittest.py