3 ms·
There's zfs wait, which can wait on the delete queue. Otoh, files that are deleted and open will be on the delete queue until they're closed, so that queue does
by toast0 4y ago
There's zfs wait, which can wait on the delete queue. Otoh, files that are deleted and open will be on the delete queue until they're closed, so that queue doesn't have any guarantee of progress while the system remains running.
A process to delete less important files to maintain free space that waited on the delete queue to drain before reassessing the situation would need something more sophisticated.