159121Skris#!/bin/ksh -p
222347Spst#
322347Spst# CDDL HEADER START
422347Spst#
522347Spst# The contents of this file are subject to the terms of the
622347Spst# Common Development and Distribution License (the "License").
722347Spst# You may not use this file except in compliance with the License.
822347Spst#
922347Spst# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1059121Skris# or https://opensource.org/licenses/CDDL-1.0.
1159121Skris# See the License for the specific language governing permissions
1222347Spst# and limitations under the License.
1322347Spst#
1422347Spst# When distributing Covered Code, include this CDDL HEADER in each
1522347Spst# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1631433Ssteve# If applicable, add the following below this CDDL HEADER, with the
1759121Skris# fields enclosed by brackets "[]" replaced with your own identifying
1822347Spst# information: Portions Copyright [yyyy] [name of copyright owner]
1922347Spst#
2031433Ssteve# CDDL HEADER END
2122347Spst#
2222347Spst
2322372Spst#
2422347Spst# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2522347Spst# Use is subject to license terms.
2622347Spst#
2722347Spst
2822347Spst#
2922347Spst# Copyright (c) 2013, 2016 by Delphix. All rights reserved.
3022347Spst#
3122347Spst
3222347Spst. $STF_SUITE/include/libtest.shlib
3322347Spst. $STF_SUITE/tests/functional/zvol/zvol_common.shlib
3422347Spst
3522347Spstverify_runnable "global"
3622347Spst
3722347Spstismounted $TESTDIR $NEWFS_DEFAULT_FS
3822347Spst(( $? == 0 )) && log_must umount -f $TESTDIR
3922347Spst
4022347Spst[[ -e $TESTDIR ]] && rm -rf $TESTDIR
4122347Spst
4222347Spstdefault_zvol_cleanup
4322347Spst
4422347Spstlog_pass
4522347Spst