'Choose VzStorage share among available ones for given volume size.
For instances with more than one share that meets the criteria, the
first suitable share will be selected.
:param volume: the volume to be created.'

def _find_share(self, volume):

    if (not self._mounted_shares):
        raise exception.VzStorageNoSharesMounted()
    for share in self._mounted_shares:
        if self._is_share_eligible(share, volume.size):
            break
    else:
        raise exception.VzStorageNoSuitableShareFound(volume_size=volume.size)
    LOG.debug('Selected    %s    as    target    VzStorage    share.', share)
    return share
