Backend function for file storage space reporting
authorHelga Velroyen <helgav@google.com>
Tue, 14 May 2013 13:23:32 +0000 (15:23 +0200)
committerHelga Velroyen <helgav@google.com>
Tue, 14 May 2013 19:17:30 +0000 (21:17 +0200)
commit820bade90f31d47ddab2515597063f8fd3699202
tree7db1e88456827caa45736a63ca4eaa30d300ad89
parent199b241ca6730d39fc2553ef529a4fa14ea6e9a0
Backend function for file storage space reporting

This adds functionality to retrieve disk space information
for file storage. It calls the 'df' tool and parses its
output to extract the total and free amount of disk space
on the disk where the given path is located.
The code is not integrated yet, but thoroughly unit-tested.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Bernardo dal Seno <bdalseno@google.com>
Makefile.am
lib/storage/filestorage.py [new file with mode: 0644]
test/py/ganeti.storage.filestorage_unittest.py [new file with mode: 0755]