ZFS-WAIT(8)

✨ zfs-wait β€” bestie edition ✨

okay so this is zfs-wait, from the System Manager's Manual section 8 (that's the sysadmin-stuff section, iykyk) πŸ’…


🌸 NAME 🌸

zfs-wait β€” wait for activity in ZFS filesystem to stop πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ’– DESCRIPTION πŸ’–

So basically? It waits. 🫢 It waits until all background activity of the given types has ceased in the given filesystem. Periodt.

And lowkey the activity could stop for two very different reasons, bestie:

  • it actually completed βœ…
  • the filesystem got destroyed or unmounted πŸ’€

Both count! The command does not care which one happened, it just wants the activity gone.

If you don't specify any activities at all, it waits until background activity of every type listed below has ceased. And if there's literally no activity of the given types in progress right now? It returns immediately. Instant. Iconic. No waiting around for drama that isn't happening ✨


🌈 the possible values for activity 🌈

Here's what each one is waiting for, no cap:

  • deleteq β€” the filesystem's internal delete queue to empty πŸ—‘οΈβœ¨

⚠️ heads up bestie, this one's important: 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. So if something's holding a handle open, the queue is just gonna sit there. Not me waiting on a file handle that never closes 😭

πŸ‘‘ SEE ALSO πŸ‘‘

  • lsof(8) β€” go find out who's holding that file handle open, fr fr πŸ”

and that's the whole vibe, bestie β€” this page came to you from OpenZFS, dated July 11, 2022. slay, go wait on something πŸ’œ

πŸ“¦ where this page comes from