diff options
author | Jorgen Lundman <[email protected]> | 2021-09-10 02:44:21 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-09 10:44:21 -0700 |
commit | 5a54a4e0517959dd917c0f78d692f7364e597a68 (patch) | |
tree | 1b8ea31a0f6bbb79fe9b8d62da80f3b1954a81ed /cmd/zed/zed.c | |
parent | 2079111f42a90b123f484337b43a549b7c5e50ba (diff) |
Upstream: Add snapshot and zvol events
For kernel to send snapshot mount/unmount events to zed.
For kernel to send symlink creates/removes on zvol plumbing.
(/dev/run/dsk/zvol/$pool/$zvol -> /dev/diskX)
If zed misses the ENODEV, all errors after are EINVAL. Treat any error
as kernel module failure.
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Jorgen Lundman <[email protected]>
Closes #12416
Diffstat (limited to 'cmd/zed/zed.c')
-rw-r--r-- | cmd/zed/zed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zed/zed.c b/cmd/zed/zed.c index 0aa03fded..e45176c00 100644 --- a/cmd/zed/zed.c +++ b/cmd/zed/zed.c @@ -291,7 +291,7 @@ idle: rv = zed_event_service(&zcp); /* ENODEV: When kernel module is unloaded (osx) */ - if (rv == ENODEV) + if (rv != 0) break; } |