mirror_zfs/man/man8
Tony Hutter 4a7a04630d zed: Add synchronous zedlets
Historically, ZED has blindly spawned off zedlets in parallel and never
worried about their completion order.  This means that you can
potentially have zedlets for event number 2 starting before zedlets for
event number 1 had finished.  Most of the time this is fine, and it
actually helps a lot when the system is getting spammed with hundreds
of events.

However, there are times when you want your zedlets to be executed
in sequence with the event ID.  That is where synchronous zedlets
come in.

ZED will wait for all previously spawned zedlets to finish before
running a synchronous zedlet.  Synchronous zedlets are guaranteed to be
the only zedlet running.  No other zedlets may run in parallel with a
synchronous zedlet.  Users should be careful to only use synchronous
zedlets when needed, since they decrease parallelism.

To make a zedlet synchronous, simply add a "-sync-" immediately
following the event name in the zedlet's file name:

	EVENT_NAME-sync-ZEDLETNAME.sh

For example, if you wanted a synchronous statechange script:

	statechange-sync-myzedlet.sh

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #17335
2025-09-11 15:58:59 -07:00
..
.gitignore Add zfs_prepare_disk script for disk firmware install 2023-09-21 08:36:26 -07:00
fsck.zfs.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mount.zfs.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
vdev_id.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zdb.8 Add allocation profile export and zhack subcommand for import 2025-09-10 15:01:28 -07:00
zed.8.in zed: Add synchronous zedlets 2025-09-11 15:58:59 -07:00
zfs_ids_to_path.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs_prepare_disk.8.in SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs-allow.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-bookmark.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-change-key.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-clone.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-create.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-destroy.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-diff.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-get.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-groupspace.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-hold.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-inherit.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-jail.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-list.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-load-key.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-mount-generator.8.in manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-mount.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-program.8 zfs-program(8): document zfs.sync.clone() 2025-06-10 14:53:18 -07:00
zfs-project.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-projectspace.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-promote.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-receive.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs-recv.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-redact.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-release.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-rename.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-rewrite.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-rollback.8 zfs-rollback.8: fix typo in example number 2025-04-28 15:38:08 -04:00
zfs-send.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-set.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-share.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-snapshot.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-unallow.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-unjail.8 Add FreeBSD jail support hooks 2019-12-11 11:58:37 -08:00
zfs-unload-key.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-unmount.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-unzone.8 Add Linux namespace delegation support 2022-06-10 09:51:46 -07:00
zfs-upgrade.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-userspace.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-wait.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs-zone.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zfs.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zgenhostid.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zinject.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zpool_influxdb.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zpool-add.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zpool-attach.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-checkpoint.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-clear.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-create.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-ddtprune.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zpool-destroy.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-detach.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-events.8 Detect a slow raidz child during reads 2025-09-10 15:31:30 -07:00
zpool-export.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-get.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-history.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-import.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-initialize.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-iostat.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-labelclear.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-list.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-offline.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-online.8 Reorganize zpool(8) man page into sections 2019-11-13 09:21:07 -08:00
zpool-prefetch.8 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zpool-reguid.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-remove.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-reopen.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-replace.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-resilver.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-scrub.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-set.8 Reorganize zpool(8) man page into sections 2019-11-13 09:21:07 -08:00
zpool-split.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-status.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-sync.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-trim.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-upgrade.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool-wait.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zpool.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zstream.8 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
zstreamdump.8 zstreamdump: replace with link to zstream 2021-05-21 10:16:14 -07:00