'Retrieve stats info for NexentaStor appliance.'

def _update_volume_stats(self):

    LOG.debug('Updating    volume    stats')
    total_space = 0
    free_space = 0
    share = None
    for _share in self._mounted_shares:
        if (self.shares_with_capacities[_share]['free'] > free_space):
            free_space = self.shares_with_capacities[_share]['free']
            total_space = self.shares_with_capacities[_share]['total']
            share = _share
    location_info = ('%(driver)s:%(share)s' % {'driver': self.__class__.__name__, 'share': share})
    nms_url = self.share2nms[share].url
    self._stats = {'vendor_name': 'Nexenta', 'dedup': self.volume_deduplication, 'compression': self.volume_compression, 'description': self.volume_description, 'nms_url': nms_url, 'ns_shares': self.shares_with_capacities, 'driver_version': self.VERSION, 'storage_protocol': 'NFS', 'total_capacity_gb': total_space, 'free_capacity_gb': free_space, 'reserved_percentage': self.configuration.reserved_percentage, 'QoS_support': False, 'location_info': location_info, 'volume_backend_name': self.backend_name, 'nfs_mount_point_base': self.nfs_mount_point_base}
