示例#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)
 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)
示例#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)
示例#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)
示例#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)
示例#9
0
 def _get_disk_capacity(self):
     return linux.get_disk_capacity_by_df(self.path)
示例#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)