Allow autoreplace even when enclosure LED sysfs entries don't exist
commit1ad9de6d08f8c0261094d322a4507a5cbbb53e66
authorTony Hutter <hutter2@llnl.gov>
Fri, 4 Nov 2016 20:34:13 +0000 (4 13:34 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 4 Nov 2016 20:34:13 +0000 (4 13:34 -0700)
treeaa5c712bdc7749b1f159d4c621fc8b440451feae
parent7f3194932d22c667026aff1b263ceaa1ebd012ee
Allow autoreplace even when enclosure LED sysfs entries don't exist

The previous autoreplace code assumed that if you were using autoreplace, then
you also had the enclosure SES driver loaded.  This could lead to autoreplace
not working if the SES driver wasn't loaded, or if it wasn't creating the
proper enclosure_device symlinks (which has happened).  This patch removes
that assumption.

Reviewed by: Don Brady <don.brady@intel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #5363
cmd/zed/agents/zfs_mod.c