'Retrieve stats info for NexentaStor appliance.'

def _update_volume_stats(self):

    LOG.debug('Updating    volume    stats')
    share = ':/'.join([self.nef_host, self.share])
    (total, free, allocated) = self._get_capacity_info(self.share)
    total_space = utils.str2gib_size(total)
    free_space = utils.str2gib_size(free)
    location_info = ('%(driver)s:%(share)s' % {'driver': self.__class__.__name__, 'share': share})
    self._stats = {'vendor_name': 'Nexenta', 'dedup': self.dataset_deduplication, 'compression': self.dataset_compression, 'description': self.dataset_description, 'nef_url': self.nef_host, '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}
