'Returns the share capacity metrics needed by the scheduler.'

def _get_share_capacity_info(self, nfs_share):

    capacity = dict()
    capacity['reserved_percentage'] = self.reserved_percentage
    capacity['max_over_subscription_ratio'] = self.max_over_subscription_ratio
    (total_size, total_available) = self._get_capacity_info(nfs_share)
    capacity['total_capacity_gb'] = na_utils.round_down((total_size / units.Gi))
    capacity['free_capacity_gb'] = na_utils.round_down((total_available / units.Gi))
    capacity['provisioned_capacity_gb'] = round((capacity['total_capacity_gb'] - capacity['free_capacity_gb']), 2)
    return capacity
