'Checks if volume can hold image with size.'

def _check_share_can_hold_size(self, share, size):

    (_tot_size, tot_available) = self._get_capacity_info(share)
    if (tot_available < size):
        msg = _('Container    size    smaller    than    required    file    size.')
        raise exception.VolumeDriverException(msg)
