'Get Reduxio Storage attributes.'

@cinder_utils.trace
def get_volume_stats(self, refresh=False):

    if refresh:
        backend_name = (self.configuration.safe_get('volume_backend_name') or self.__class__.__name__)
        ratio = self.rdxApi.get_savings_ratio()
        total = (HX550_INITIAL_PHYSICAL_CAPACITY * ratio)
        if (total > HX550_CAPACITY_LIMIT):
            total = HX550_CAPACITY_LIMIT
        current_space_usage = self.rdxApi.get_current_space_usage()
        physical_used = (current_space_usage['physical_total'] / units.Gi)
        free = ((HX550_INITIAL_PHYSICAL_CAPACITY - physical_used) * ratio)
        if (free > HX550_CAPACITY_LIMIT):
            free = HX550_CAPACITY_LIMIT
        self._stats = {'volume_backend_name': backend_name, 'vendor_name': REDUXIO_VENDOR_NAME, 'driver_version': DRIVER_VERSION, 'storage_protocol': REDUXIO_STORAGE_PROTOCOL, 'consistencygroup_support': False, 'pools': [{'pool_name': backend_name, 'total_capacity_gb': total, 'free_capacity_gb': free, 'reserved_percentage': self.configuration.reserved_percentage, 'QoS_support': False, 'multiattach': False}]}
    return self._stats
