diff --git a/ccnode/interface.py b/ccnode/interface.py index 503a9bad4a3c84512b61ee7bf453841a1bf8dfc9..7e37d68506227e16bf3292acfd0aaebf431baf13 100644 --- a/ccnode/interface.py +++ b/ccnode/interface.py @@ -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): diff --git a/ccnode/libvirtwrapper.py b/ccnode/libvirtwrapper.py index 26119c909906d360e487578a7b18bc5f636f1c02..18c438e51b03ff20515e70b46d3aee3dd1e6601d 100644 --- a/ccnode/libvirtwrapper.py +++ b/ccnode/libvirtwrapper.py @@ -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] @@ -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] @@ -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]