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)
def _get_disk_capacity(path): if not path: raise Exception('storage path cannot be None') return linux.get_disk_capacity_by_df(path)
def _get_disk_capacity(self): return linux.get_disk_capacity_by_df(self.path)