]> granicus.if.org Git - zfs/blobdiff - tests/zfs-tests/tests/functional/removal/removal_with_scrub.ksh
OpenZFS 9166 - zfs storage pool checkpoint
[zfs] / tests / zfs-tests / tests / functional / removal / removal_with_scrub.ksh
index 33eb41bf2acd8634e628a6b30cc1652f88f5d78f..d96c1ce9de1573bef7be0f8192cfa63ed435c393 100755 (executable)
@@ -15,7 +15,7 @@
 #
 
 #
-# Copyright (c) 2014, 2016 by Delphix. All rights reserved.
+# Copyright (c) 2014, 2017 by Delphix. All rights reserved.
 #
 
 . $STF_SUITE/include/libtest.shlib
 default_setup_noexit "$DISKS"
 log_onexit default_cleanup_noexit
 
-function callback
-{
-       typeset count=$1
-       if ((count == 0)); then
-               log_must zpool scrub $TESTPOOL
-       fi
-       return 0
-}
-
-test_removal_with_operation callback
+test_removal_with_operation zpool scrub $TESTPOOL
 
 log_pass "Can use scrub during removal"