15cabbc6bSPrashanth Sreenivasa#! /bin/ksh -p 25cabbc6bSPrashanth Sreenivasa# 35cabbc6bSPrashanth Sreenivasa# CDDL HEADER START 45cabbc6bSPrashanth Sreenivasa# 55cabbc6bSPrashanth Sreenivasa# This file and its contents are supplied under the terms of the 65cabbc6bSPrashanth Sreenivasa# Common Development and Distribution License ("CDDL"), version 1.0. 75cabbc6bSPrashanth Sreenivasa# You may only use this file in accordance with the terms of version 85cabbc6bSPrashanth Sreenivasa# 1.0 of the CDDL. 95cabbc6bSPrashanth Sreenivasa# 105cabbc6bSPrashanth Sreenivasa# A full copy of the text of the CDDL should have accompanied this 115cabbc6bSPrashanth Sreenivasa# source. A copy of the CDDL is also available via the Internet at 125cabbc6bSPrashanth Sreenivasa# http://www.illumos.org/license/CDDL. 135cabbc6bSPrashanth Sreenivasa# 145cabbc6bSPrashanth Sreenivasa# CDDL HEADER END 155cabbc6bSPrashanth Sreenivasa# 165cabbc6bSPrashanth Sreenivasa 175cabbc6bSPrashanth Sreenivasa# 18*86714001SSerapheim Dimitropoulos# Copyright (c) 2014, 2017 by Delphix. All rights reserved. 195cabbc6bSPrashanth Sreenivasa# 205cabbc6bSPrashanth Sreenivasa 215cabbc6bSPrashanth Sreenivasa. $STF_SUITE/include/libtest.shlib 225cabbc6bSPrashanth Sreenivasa. $STF_SUITE/tests/functional/removal/removal.kshlib 235cabbc6bSPrashanth Sreenivasa 245cabbc6bSPrashanth Sreenivasadefault_setup_noexit "$DISKS" 255cabbc6bSPrashanth Sreenivasalog_onexit default_cleanup_noexit 265cabbc6bSPrashanth Sreenivasa 275cabbc6bSPrashanth Sreenivasafunction callback 285cabbc6bSPrashanth Sreenivasa{ 29*86714001SSerapheim Dimitropoulos create_snapshot $TESTPOOL/$TESTFS $TESTSNAP 30*86714001SSerapheim Dimitropoulos log_must ksh -c \ 31*86714001SSerapheim Dimitropoulos "zfs send $TESTPOOL/$TESTFS@$TESTSNAP >/dev/null" 325cabbc6bSPrashanth Sreenivasa return 0 335cabbc6bSPrashanth Sreenivasa} 345cabbc6bSPrashanth Sreenivasa 355cabbc6bSPrashanth Sreenivasatest_removal_with_operation callback 365cabbc6bSPrashanth Sreenivasa 375cabbc6bSPrashanth Sreenivasalog_pass "Can use send during removal" 38