Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

@@ -24,11 +24,11 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 
 #
-# Copyright (c) 2013 by Delphix. All rights reserved.
+# Copyright (c) 2013, 2016 by Delphix. All rights reserved.
 #
 
 . $STF_SUITE/include/libtest.shlib
 . $STF_SUITE/tests/functional/quota/quota.kshlib
 

@@ -48,11 +48,11 @@
 
 log_assert "Verify cannot set quota lower than the space currently in use"
 
 function cleanup
 {
-        log_must $ZFS set quota=none $TESTPOOL/$TESTFS
+        log_must zfs set quota=none $TESTPOOL/$TESTFS
 }
 
 log_onexit cleanup
 
 typeset -i quota_integer_size=0

@@ -62,10 +62,10 @@
 (( quota_integer_size = space_used  - 1 ))
 quota_fp_size=${quota_integer_size}.123
 
 for size in 0 -1 $quota_integer_size -$quota_integer_size $quota_fp_size -$quota_fp_size \
         $invalid_size ; do
-        log_mustnot $ZFS set quota=$size $TESTPOOL/$TESTFS
+        log_mustnot zfs set quota=$size $TESTPOOL/$TESTFS
 done
-log_must $ZFS set quota=$space_used $TESTPOOL/$TESTFS
+log_must zfs set quota=$space_used $TESTPOOL/$TESTFS
 
 log_pass "As expected cannot set quota lower than space currently in use"