zfs/cmd/zed
Chris Dunlap de6d197683 Fix io-spare.sh to work with disk vdevs
The "zpool status" output shows the full pathname for file-type vdevs,
but only the basename component for disk-type vdevs.  In commit
bee6665, the "basename" command was dropped from altering the vdev
name used when searching the "zpool status" output.  Consequently,
hot-disk sparing for disk vdevs broke since "zpool status" output
was now being searched for the full pathname to the disk vdev.

Parsing the "zpool status" output in this manner is rather brittle.
It would be preferable to search for the vdev based on its guid.
But until that happens, this commit adds back the "basename" command
to fix the vdev name breakage.

Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3310
2015-04-17 14:21:26 -07:00
..
zed.d Fix io-spare.sh to work with disk vdevs 2015-04-17 14:21:26 -07:00
.gitignore Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
Makefile.am Fix build error when make deb 2015-02-06 09:16:32 -08:00
zed.c Obtain advisory lock on ZED PID file 2014-10-06 13:17:40 -07:00
zed.h Refer to ZED's scripts as ZEDLETs 2014-09-25 13:54:17 -07:00
zed_conf.c Protect against adding duplicate strings in ZED 2015-01-30 14:46:17 -08:00
zed_conf.h Obtain advisory lock on ZED PID file 2014-10-06 13:17:40 -07:00
zed_event.c Cleanup _zed_event_add_nvpair() 2015-01-30 14:46:44 -08:00
zed_event.h Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
zed_exec.c Refer to ZED's scripts as ZEDLETs 2014-09-25 13:54:17 -07:00
zed_exec.h Refer to ZED's scripts as ZEDLETs 2014-09-25 13:54:17 -07:00
zed_file.c Remove reverse indentation from zed comments. 2014-09-22 12:17:53 -07:00
zed_file.h Replace zed_file_create_dirs() with mkdirp() 2014-04-09 13:32:54 -07:00
zed_log.c Remove reverse indentation from zed comments. 2014-09-22 12:17:53 -07:00
zed_log.h Cleanup zed logging 2014-09-02 14:18:53 -07:00
zed_strings.c Protect against adding duplicate strings in ZED 2015-01-30 14:46:17 -08:00
zed_strings.h Protect against adding duplicate strings in ZED 2015-01-30 14:46:17 -08:00