예제 #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)
예제 #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)
예제 #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)