]> granicus.if.org Git - zfs/commitdiff
OpenZFS 7001 - zvol_misc tests should not depend on /sbin or /usr/sbin being in PATH
authorHans Rosenfeld <hans.rosenfeld@nexenta.com>
Thu, 26 May 2016 15:32:26 +0000 (17:32 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 16 Feb 2017 01:30:27 +0000 (17:30 -0800)
Authored by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Ported-by: George Melikov <mail@gmelikov.ru>
OpenZFS-issue: https://www.illumos.org/issues/7001
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/258c9c7
Closes #5801

Porting notes:
- Most of the changes were previously applied.

tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_001_neg.ksh
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_002_pos.ksh
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_003_neg.ksh
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_004_pos.ksh
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_005_neg.ksh
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_006_pos.ksh

index eff2745f54bb9b6668bb5aeb0287df3db2588e2a..7b53a4e739eee71a482476d62069ec9fd57a9c8a 100755 (executable)
@@ -27,6 +27,7 @@
 
 #
 # Copyright (c) 2013, 2015 by Delphix. All rights reserved.
+# Copyright 2016 Nexenta Systems, Inc.
 #
 
 . $STF_SUITE/include/libtest.shlib
index 8cf1e87048b85b50e45812bb3f86073ecaefe150..d3fdefb6b9fa4ed3d300316b1a4a99a7374831ea 100755 (executable)
@@ -27,6 +27,7 @@
 
 #
 # Copyright (c) 2013, 2015 by Delphix. All rights reserved.
+# Copyright 2016 Nexenta Systems, Inc.
 #
 
 . $STF_SUITE/include/libtest.shlib
index 1913a75a394e21f2bee3c018164c2a4da6c85717..321ddabb67e2241365319392f5e5fd8826445d65 100755 (executable)
@@ -27,6 +27,7 @@
 
 #
 # Copyright (c) 2013, 2015 by Delphix. All rights reserved.
+# Copyright 2016 Nexenta Systems, Inc.
 #
 
 . $STF_SUITE/include/libtest.shlib
index 9a3632aac0738e624a973a0db8566163a41c9a32..b78dd269ab46911f12eb81f75cb23d2cc849716d 100755 (executable)
@@ -27,6 +27,7 @@
 
 #
 # Copyright (c) 2013, 2015 by Delphix. All rights reserved.
+# Copyright 2016 Nexenta Systems, Inc.
 #
 
 . $STF_SUITE/include/libtest.shlib
index a566f9f80655b7f41aeb143d43ade82306ebdbbd..df6e8f7298da1bbdc3b2ee0343a9da939cdad33e 100755 (executable)
@@ -27,6 +27,7 @@
 
 #
 # Copyright (c) 2013, 2015 by Delphix. All rights reserved.
+# Copyright 2016 Nexenta Systems, Inc.
 #
 
 . $STF_SUITE/include/libtest.shlib
index 0298c68939b3d98032879ef51ce6aab090f9d66d..53e822a10a9132227047f772d63db7afb98f2160 100755 (executable)
@@ -27,6 +27,7 @@
 
 #
 # Copyright (c) 2013, 2015 by Delphix. All rights reserved.
+# Copyright 2016 Nexenta Systems, Inc.
 #
 
 . $STF_SUITE/include/libtest.shlib
@@ -44,7 +45,7 @@
 
 verify_runnable "global"
 
-volsize=$(zfs get -H -o value volsize $TESTPOOL/$TESTVOL)
+volsize=$($ZFS get -H -o value volsize $TESTPOOL/$TESTVOL)
 
 function cleanup
 {
@@ -52,7 +53,7 @@ function cleanup
        if [[ $dumpdev != $savedumpdev ]] ; then
                safe_dumpadm $savedumpdev
        fi
-       zfs set volsize=$volsize $TESTPOOL/$TESTVOL
+       $ZFS set volsize=$volsize $TESTPOOL/$TESTVOL
 }
 
 log_assert "zfs volume as dumpdevice should have 128k volblocksize"