'Is there space on the share for a clone given the original size?'

def _share_has_space_for_clone(self, share, size_in_gib, thin=True):

    requested_size = (size_in_gib * units.Gi)
    (total_size, total_available) = self._get_capacity_info(share)
    reserved_ratio = (self.reserved_percentage / 100.0)
    reserved = int(round((total_size * reserved_ratio)))
    available = max(0, (total_available - reserved))
    if thin:
        available = (available * self.max_over_subscription_ratio)
    return (available >= requested_size)
