Ejemplo n.º 1
0
 def _get_disk_capacity(mount_point):
     if not mount_point:
         raise Exception('storage mount point cannot be None')
     return linux.get_disk_capacity_by_df(mount_point)
Ejemplo n.º 2
0
 def _get_disk_capacity(self, uuid):
     path = self.mount_path.get(uuid)
     if not path:
         raise Exception('cannot find mount path of primary storage[uuid: %s]' % uuid)
     return linux.get_disk_capacity_by_df(path)
 def _get_disk_capacity(self):
     return linux.get_disk_capacity_by_df(self.mount_point)
Ejemplo n.º 4
0
 def _get_disk_capacity(path):
     if not path:
         raise Exception('storage path cannot be None')
     return linux.get_disk_capacity_by_df(path)
Ejemplo n.º 5
0
 def _get_disk_capacity(self, uuid):
     path = self.mount_path.get(uuid)
     if not path:
         raise Exception('cannot find mount path of primary storage[uuid: %s]' % uuid)
     return linux.get_disk_capacity_by_df(path)
Ejemplo n.º 6
0
 def _get_disk_capacity(self):
     return linux.get_disk_capacity_by_df(self.path)
 def _get_disk_capacity(mount_point):
     if not mount_point:
         raise Exception('storage mount point cannot be None')
     return linux.get_disk_capacity_by_df(mount_point)
 def _get_disk_capacity(self):
     return linux.get_disk_capacity_by_df(self.mount_point)
Ejemplo n.º 9
0
 def _get_disk_capacity(self):
     return linux.get_disk_capacity_by_df(self.path)
Ejemplo n.º 10
0
 def _get_disk_capacity(path):
     if not path:
         raise Exception('storage path cannot be None')
     return linux.get_disk_capacity_by_df(path)