rsend_008_pos.ksh revision 1d32ba663e202c24a5a1f2e5aef83fffb447cb7f
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# Copyright (c) 2013, 2016 by Delphix. All rights reserved.
#
#
# DESCRIPTION:
# Changes made by 'zfs promote' can be properly received.
#
# STRATEGY:
# 1. Seperatly promote pool clone, filesystem clone and volume clone.
# 2. Recursively backup all the POOL and restore in POOL2
# 3. Verify all the datesets and property be properly received.
#
verify_runnable "both"
# Origin Clone
#
if is_global_zone ; then
typeset -i n=${#dtst[@]}
fi
function cleanup
{
typeset origin
typeset -i i=0
while ((i < ${#dtst[@]})); do
fi
((i += 2))
done
fi
}
log_assert "Changes made by 'zfs promote' can be properly received."
typeset -i i=0
while ((i < ${#dtst[@]})); do
((i += 2))
done
#
# Verify zfs send -R should succeed
#
#
#
if is_global_zone ; then
typeset -i n=${#pair[@]}
fi
#
# Verify all the sub-datasets can be properly received.
#
typeset -i i=0
while ((i < ${#pair[@]})); do
((i += 2))
done
# Verify the original filesystem can be promoted
if is_global_zone ; then
fi
log_pass "Changes made by 'zfs promote' can be properly received."