From c552fbc5f025f3c1e74b85c1c0d536ee272defd0 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Natale Date: Thu, 9 Mar 2017 10:20:15 -0800 Subject: Enable shellcheck to run for select scripts Enable shellcheck to run on zed scripts, paxcheck.sh, zfs-tests.sh, zfs.sh, and zloop.sh. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Giuseppe Di Natale Closes #5812 --- scripts/common.sh.in | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'scripts/common.sh.in') diff --git a/scripts/common.sh.in b/scripts/common.sh.in index 38fc6985a..e1a9b82d2 100644 --- a/scripts/common.sh.in +++ b/scripts/common.sh.in @@ -21,7 +21,6 @@ VERBOSE= VERBOSE_FLAG= FORCE= FORCE_FLAG= -DUMP_LOG= ERROR= RAID0S=() RAID10S=() @@ -155,17 +154,6 @@ init() { populate $SRC_DIR 10 100 } -spl_dump_log() { - ${SYSCTL} -w kernel.spl.debug.dump=1 &>/dev/null - local NAME=`dmesg | tail -n 1 | cut -f5 -d' '` - ${SPLBUILD}/cmd/spl ${NAME} >${NAME}.log - echo - echo "Dumped debug log: ${NAME}.log" - tail -n1 ${NAME}.log - echo - return 0 -} - check_modules() { local LOADED_MODULES=() local MISSING_MODULES=() @@ -265,11 +253,6 @@ unload_modules() { egrep "^${NAME} "| ${AWK} '{print $3}'` if [ "${USE_COUNT}" = 0 ] ; then - - if [ "${DUMP_LOG}" -a ${NAME} = "spl" ]; then - spl_dump_log - fi - unload_module ${MOD} || return 1 fi done -- cgit v1.2.3