aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/include/libtest.shlib
diff options
context:
space:
mode:
authorYuri Pankov <[email protected]>2016-03-19 00:11:23 +0300
committerBrian Behlendorf <[email protected]>2017-02-13 12:11:25 -0800
commit8db2dc32cdd50c5517851eab33bc31756e78975c (patch)
tree2b20be04658eb9303619f29b34e8020ddf8dec28 /tests/zfs-tests/include/libtest.shlib
parent501558ee6e7465533cb6740fd643c0ec362f28d9 (diff)
OpenZFS 6754 - zfs-tests: get_substr() function is redundant
Authored by: Yuri Pankov <[email protected]> Reviewed by: John Kennedy <[email protected]> Approved by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Giuseppe Di Natale <[email protected]> Ported-by: George Melikov <[email protected]> OpenZFS-issue: https://www.illumos.org/issues/6754 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/01ff411 Closes #5787 Porting notes: - Only the ACL test cases used this function and they have been dropped from ZoL since Linux used POSIX style ACLs. - functional/acl/nontrivial/zfs_acl_chmod_aclmode_001_pos.ksh - functional/acl/nontrivial/zfs_acl_chmod_inherit_003_pos.ksh - functional/acl/nontrivial/zfs_acl_chmod_rwx_002_pos.ksh
Diffstat (limited to 'tests/zfs-tests/include/libtest.shlib')
-rw-r--r--tests/zfs-tests/include/libtest.shlib19
1 files changed, 1 insertions, 18 deletions
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib
index 22b79b15a..da80407a9 100644
--- a/tests/zfs-tests/include/libtest.shlib
+++ b/tests/zfs-tests/include/libtest.shlib
@@ -23,10 +23,8 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-
-#
# Copyright (c) 2012, 2015 by Delphix. All rights reserved.
+# Copyright 2016 Nexenta Systems, Inc.
#
. ${STF_TOOLS}/include/logapi.shlib
@@ -2727,21 +2725,6 @@ function get_rootpool
}
#
-# Get the sub string from specified source string
-#
-# $1 source string
-# $2 start position. Count from 1
-# $3 offset
-#
-function get_substr #src_str pos offset
-{
- typeset pos offset
-
- $ECHO $1 | \
- $NAWK -v pos=$2 -v offset=$3 '{print substr($0, pos, offset)}'
-}
-
-#
# Check if the given device is physical device
#
function is_physical_device #device