diff options
author | Chris Dunlap <[email protected]> | 2014-09-19 11:10:28 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-09-25 13:54:17 -0700 |
commit | dcca723acee9803561dd7ef456a28c4684c28e86 (patch) | |
tree | 082e642033d282e30adf72f07b0678083009cd0d /cmd/zed/zed_event.c | |
parent | 8cb8cf91df8a4902025d814b62b9332ad1b291c7 (diff) |
Refer to ZED's scripts as ZEDLETs
The executables invoked by the ZED in response to a given zevent
have been generically referred to as "scripts". By convention,
these scripts have aimed to be /bin/sh compatible for reasons of
portability and comprehensibility. However, the ZED only requires
they be executable and (ideally) capable of reading environment
variables. As such, these scripts are now referred to as ZEDLETs
(ZFS Event Daemon Linkage for Executable Tasks).
Signed-off-by: Chris Dunlap <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #2735
Diffstat (limited to 'cmd/zed/zed_event.c')
-rw-r--r-- | cmd/zed/zed_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/zed/zed_event.c b/cmd/zed/zed_event.c index 940172bc3..f3f201800 100644 --- a/cmd/zed/zed_event.c +++ b/cmd/zed/zed_event.c @@ -814,7 +814,7 @@ zed_event_service(struct zed_conf *zcp) _zed_event_add_var(eid, zsp, "%s%s=%d", ZED_VAR_PREFIX, "PID", (int) getpid()); _zed_event_add_var(eid, zsp, "%s%s=%s", - ZED_VAR_PREFIX, "SCRIPT_DIR", zcp->script_dir); + ZED_VAR_PREFIX, "ZEDLET_DIR", zcp->zedlet_dir); subclass = _zed_event_get_subclass(class); _zed_event_add_var(eid, zsp, "%s%s=%s", @@ -823,7 +823,7 @@ zed_event_service(struct zed_conf *zcp) _zed_event_add_time_strings(eid, zsp, etime); zed_exec_process(eid, class, subclass, - zcp->script_dir, zcp->scripts, zsp, zcp->zevent_fd); + zcp->zedlet_dir, zcp->zedlets, zsp, zcp->zevent_fd); zed_conf_write_state(zcp, eid, etime); |