#
# 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 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# Copyright (c) 2012, 2016 by Delphix. All rights reserved.
#
#
# DESCRIPTION:
# Rename dataset, verify that the data haven't changed.
#
# STRATEGY:
# 1. Create random data and copy to dataset.
# 2. Perform renaming commands.
# 3. Verify that the data haven't changed.
#
verify_runnable "both"
function cleanup
{
if datasetexists $TESTPOOL/$TESTFS ; then
fi
}
function target_obj
{
typeset dtst=$1
typeset obj
fi
echo $obj
}
log_assert "Rename dataset, verify that the data haven't changed."
# Generate random data
#
obj=$(target_obj $fs)
# Rename dataset & clone
#
# Compare source file and target file
#
obj=$(target_obj ${fs}-new)
obj=$(target_obj ${fsclone}-new)
# Rename snapshot and re-clone dataset
#
# Compare source file and target file
#
if is_global_zone; then
obj=$(target_obj $vol)
# Rename dataset & clone
# Compare source file and target file
obj=$(target_obj ${vol}-new)
obj=$(target_obj ${volclone}-new)
# Rename snapshot and re-clone dataset
# Compare source file and target file
fi
log_pass "Rename dataset, the data haven't changed passed."