Loading ccnode/interface.py +6 −6 Original line number Diff line number Diff line Loading @@ -254,29 +254,29 @@ class HVStorage(object): def get_pool_total_space(self, pool): ''' Returns the storage capacity of this pool in gigabytes Returns the storage capacity of this pool in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of capacity in gigabytes :return: :class:`int` of capacity in bytes ''' def get_pool_available_space(self, pool): ''' Returns available space of this storage pool in gigabytes Returns available space of this storage pool in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of available free space in gigabytes :return: :class:`int` of available free space in bytes ''' def get_pool_used_space(self, pool): ''' Returns current storage pool usage in gigabytes Returns current storage pool usage in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of used space in gigabytes :return: :class:`int` of used space in bytes ''' def get_volume_path(self, pool, vol_name): Loading ccnode/libvirtwrapper.py +6 −6 Original line number Diff line number Diff line Loading @@ -448,11 +448,11 @@ class LibvirtHVStorage(HVStorage): def get_pool_total_space(self, pool): ''' Returns the storage capacity of this pool in gigabytes Returns the storage capacity of this pool in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of capacity in gigabytes :return: :class:`int` of capacity in bytes ''' try: return pool.info()[1] Loading @@ -461,11 +461,11 @@ class LibvirtHVStorage(HVStorage): def get_pool_available_space(self, pool): ''' Returns available space of this storage pool in gigabytes Returns available space of this storage pool in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of available free space in gigabytes :return: :class:`int` of available free space in bytes ''' try: return pool.info()[2] Loading @@ -474,11 +474,11 @@ class LibvirtHVStorage(HVStorage): def get_pool_used_space(self, pool): ''' Returns current storage pool usage in gigabytes Returns current storage pool usage in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of used space in gigabytes :return: :class:`int` of used space in bytes ''' try: return pool.info()[3] Loading Loading
ccnode/interface.py +6 −6 Original line number Diff line number Diff line Loading @@ -254,29 +254,29 @@ class HVStorage(object): def get_pool_total_space(self, pool): ''' Returns the storage capacity of this pool in gigabytes Returns the storage capacity of this pool in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of capacity in gigabytes :return: :class:`int` of capacity in bytes ''' def get_pool_available_space(self, pool): ''' Returns available space of this storage pool in gigabytes Returns available space of this storage pool in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of available free space in gigabytes :return: :class:`int` of available free space in bytes ''' def get_pool_used_space(self, pool): ''' Returns current storage pool usage in gigabytes Returns current storage pool usage in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of used space in gigabytes :return: :class:`int` of used space in bytes ''' def get_volume_path(self, pool, vol_name): Loading
ccnode/libvirtwrapper.py +6 −6 Original line number Diff line number Diff line Loading @@ -448,11 +448,11 @@ class LibvirtHVStorage(HVStorage): def get_pool_total_space(self, pool): ''' Returns the storage capacity of this pool in gigabytes Returns the storage capacity of this pool in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of capacity in gigabytes :return: :class:`int` of capacity in bytes ''' try: return pool.info()[1] Loading @@ -461,11 +461,11 @@ class LibvirtHVStorage(HVStorage): def get_pool_available_space(self, pool): ''' Returns available space of this storage pool in gigabytes Returns available space of this storage pool in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of available free space in gigabytes :return: :class:`int` of available free space in bytes ''' try: return pool.info()[2] Loading @@ -474,11 +474,11 @@ class LibvirtHVStorage(HVStorage): def get_pool_used_space(self, pool): ''' Returns current storage pool usage in gigabytes Returns current storage pool usage in bytes :param pool: the pool to get information from :type pool: :class:`virStoragePool` :return: :class:`int` of used space in gigabytes :return: :class:`int` of used space in bytes ''' try: return pool.info()[3] Loading