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 2009 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/reservation/reservation.shlib
 

@@ -45,12 +45,12 @@
 
 verify_runnable "both"
 
 function cleanup
 {
-        datasetexists $fs_child && log_must $ZFS destroy $fs_child
-        log_must $ZFS set reservation=$reserv_val $fs
+        datasetexists $fs_child && log_must zfs destroy $fs_child
+        log_must zfs set reservation=$reserv_val $fs
 }
 
 log_onexit cleanup
 
 log_assert "Verify that reservation doesnot inherit its value from parent."

@@ -60,13 +60,13 @@
 
 space_avail=$(get_prop available $fs)
 reserv_val=$(get_prop reservation $fs)
 typeset -l reservsize=$space_avail
 ((reservsize = reservsize / 2))
-log_must $ZFS set reservation=$reservsize $fs
+log_must zfs set reservation=$reservsize $fs
 
-log_must $ZFS create $fs_child
+log_must zfs create $fs_child
 rsv_space=$(get_prop reservation $fs_child)
 [[ $rsv_space == $reservsize ]] && \
     log_fail "The reservation of child dataset inherits its value from parent."
 
 log_pass "reservation doesnot inherit its value from parent as expected."