DOKK / manpages / debian 12 / zfsutils-linux / zfs-wait.8.en
ZFS-WAIT(8) System Manager's Manual ZFS-WAIT(8)

zfs-waitwait for activity in ZFS filesystem to stop

zfs wait [-t activity[,activity]…] filesystem

Waits until all background activity of the given types has ceased in the given filesystem. The activity could cease because it has completed or because the filesystem has been destroyed or unmounted. If no activities are specified, the command waits until background activity of every type listed below has ceased. If there is no activity of the given types in progress, the command returns immediately.

These are the possible values for activity, along with what each one waits for:

The filesystem's internal delete queue to empty

Note that the internal delete queue does not finish draining until all large files have had time to be fully destroyed and all open file handles to unlinked files are closed.

lsof(8)

May 31, 2021 OpenZFS