zfs/cmd/zed/zed.d
Chris Dunlap bee6665b88 Fix zed io-spare.sh dash incompatibility
The zed's io-spare.sh script defines a vdev_status() function to query
the 'zpool status' output for obtaining the status of a specified vdev.
This function contains a small awk script that uses a parameter
expansion (${parameter/pattern/string}) supported in bash but not
in dash.  Under dash, this fails with a "Bad substitution" error.

This commit replaces the awk script with a (hopefully more portable)
sed script that has been tested under both bash and dash.

Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2536
2014-09-23 15:32:30 -07:00
..
all-debug.sh Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
all-syslog.sh Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
checksum-email.sh Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
checksum-spare.sh Add automatic hot spare functionality 2014-04-02 13:10:08 -07:00
data-email.sh Change delimiter for ZED email scripts 2014-09-02 14:18:54 -07:00
generic-email.sh Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
io-email.sh Change delimiter for ZED email scripts 2014-09-02 14:18:54 -07:00
io-spare.sh Fix zed io-spare.sh dash incompatibility 2014-09-23 15:32:30 -07:00
resilver.finish-email.sh Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
scrub.finish-email.sh Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
zed.rc Add automatic hot spare functionality 2014-04-02 13:10:08 -07:00