Revision 13669ecd lib/storage/filestorage.py

b/lib/storage/filestorage.py
25 25

  
26 26
import os
27 27

  
28
from ganeti import constants
28 29
from ganeti import errors
29 30

  
30 31

  
......
42 43
    result = os.statvfs(path)
43 44
    free = (result.f_frsize * result.f_bavail) / (1024 * 1024)
44 45
    size = (result.f_frsize * result.f_blocks) / (1024 * 1024)
45
    return {"vg_size": size, "vg_free": free}
46
    return {"type": constants.ST_FILE,
47
            "name": path,
48
            "vg_size": size,
49
            "vg_free": free}
46 50
  except OSError, e:
47 51
    raise errors.CommandError("Failed to retrieve file system information about"
48 52
                              " path: %s - %s" % (path, e.strerror))

Also available in: Unified diff