diff --git a/cmd/zed/zed.d/io-spare.sh b/cmd/zed/zed.d/io-spare.sh index 2fcbfb791..b64b2a9f1 100755 --- a/cmd/zed/zed.d/io-spare.sh +++ b/cmd/zed/zed.d/io-spare.sh @@ -54,7 +54,7 @@ flock -x 8 # Given a and return the status, (ONLINE, FAULTED, etc...). vdev_status() { local POOL=$1 - local VDEV=$2 + local VDEV=`basename $2` local T=' ' # tab character since '\t' isn't portable ${ZPOOL} status ${POOL} | sed -n -e \