aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-12-02 13:20:02 -0500
committerBrian Behlendorf <[email protected]>2020-12-23 13:08:12 -0800
commit7735c9addf0fbcf6df2fae98a6af31c7e241b61c (patch)
treeff34d8c106dd3913341b56a4fdad4de0965e44d8 /cmd
parented02d603a10bac5446d7b196c02de1568effe10e (diff)
FreeBSD: notify userspace when a vdev is removed
This is needed for zfsd to autoreplace vdevs. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #11260
Diffstat (limited to 'cmd')
-rw-r--r--cmd/zed/agents/zfs_agents.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/zed/agents/zfs_agents.c b/cmd/zed/agents/zfs_agents.c
index 6c40470e8..0e1bcf927 100644
--- a/cmd/zed/agents/zfs_agents.c
+++ b/cmd/zed/agents/zfs_agents.c
@@ -181,6 +181,8 @@ zfs_agent_post_event(const char *class, const char *subclass, nvlist_t *nvl)
* from the vdev_disk layer after a hot unplug. Fortunately we do
* get an EC_DEV_REMOVE from our disk monitor and it is a suitable
* proxy so we remap it here for the benefit of the diagnosis engine.
+ * Starting in OpenZFS 2.0, we do get FM_RESOURCE_REMOVED from the spa
+ * layer. Processing multiple FM_RESOURCE_REMOVED events is not harmful.
*/
if ((strcmp(class, EC_DEV_REMOVE) == 0) &&
(strcmp(subclass, ESC_DISK) == 0) &&