]> granicus.if.org Git - zfs/blobdiff - tests/zfs-tests/tests/functional/removal/removal_with_snapshot.ksh
OpenZFS 9166 - zfs storage pool checkpoint
[zfs] / tests / zfs-tests / tests / functional / removal / removal_with_snapshot.ksh
index 7fe36a94f15e28a588d37c2e8edb088a0ab4ef18..a4ec8ddfa6fa4b69e4973925336ea21620db63e9 100755 (executable)
@@ -15,7 +15,7 @@
 #
 
 #
-# Copyright (c) 2014 by Delphix. All rights reserved.
+# Copyright (c) 2014, 2017 by Delphix. All rights reserved.
 #
 
 . $STF_SUITE/include/libtest.shlib
@@ -26,11 +26,8 @@ log_onexit default_cleanup_noexit
 
 function callback
 {
-       typeset count=$1
-       if ((count == 0)); then
-               create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
-               destroy_snapshot $TESTPOOL/$TESTFS@$TESTSNAP
-       fi
+       create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
+       destroy_snapshot $TESTPOOL/$TESTFS@$TESTSNAP
        return 0
 }