コード例 #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)
コード例 #3
0
 def _get_disk_capacity(self):
     return linux.get_disk_capacity_by_df(self.mount_point)
コード例 #4
0
ファイル: localstorage.py プロジェクト: ilibx/zstack-utility
 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)
コード例 #7
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)
コード例 #8
0
 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
ファイル: zses.py プロジェクト: zstackorg/zstack-utility
 def _get_disk_capacity(path):
     if not path:
         raise Exception('storage path cannot be None')
     return linux.get_disk_capacity_by_df(path)