zfs_destroy_014_pos.ksh revision d583b39bfb4e2571d3e41097c5c357ffe353ad45
#
# CDDL HEADER START
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
#
# CDDL HEADER END
#
#
# Copyright (c) 2012 by Delphix. All rights reserved.
#
#
# DESCRIPTION:
# 'zfs destroy -R <snapshot>' can destroy all the child
# snapshots and preserves all the nested datasetss.
#
# STRATEGY:
# 1. Create nested datasets in the storage pool.
# 2. Create recursive snapshots for all the nested datasets.
# 3. Verify when snapshots are destroyed recursively, all
# the nested datasets still exist.
#
verify_runnable "both"
log_assert "Verify 'zfs destroy -R <snapshot>' does not destroy" \
"nested datasets."
function cleanup
{
done
}
# create nested datasets
# verify dataset creation
done
# create recursive nestedd snapshot
done
# destroy nested snapshot recursively
# verify snapshot destroy
done
# verify nested datasets still exist
done
log_pass "'zfs destroy -R <snapshot>' works as expected."