mirror_zfs/lib
Paul Dagnelie 5a42ef04fd
Add 'zfs wait' command
Add a mechanism to wait for delete queue to drain.

When doing redacted send/recv, many workflows involve deleting files 
that contain sensitive data. Because of the way zfs handles file 
deletions, snapshots taken quickly after a rm operation can sometimes 
still contain the file in question, especially if the file is very 
large. This can result in issues for redacted send/recv users who 
expect the deleted files to be redacted in the send streams, and not 
appear in their clones.

This change duplicates much of the zpool wait related logic into a 
zfs wait command, which can be used to wait until the internal
deleteq has been drained.  Additional wait activities may be added 
in the future. 

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Gallagher <john.gallagher@delphix.com>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #9707
2020-04-01 10:02:06 -07:00
..
libavl OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libefi cppcheck: (error) Memory leak: vtoc 2019-12-18 17:25:04 -08:00
libicp ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
libnvpair Use correct format string when printing int8 2019-10-20 20:37:30 -07:00
libshare Fix static data to link with -fno-common 2020-02-06 09:25:29 -08:00
libspl Linux 5.6 compat: time_t 2020-02-27 09:31:02 -08:00
libtpool OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libunicode OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libuutil Remove unused headers from uu_string.c 2019-10-25 13:53:50 -07:00
libzfs Add 'zfs wait' command 2020-04-01 10:02:06 -07:00
libzfs_core Add 'zfs wait' command 2020-04-01 10:02:06 -07:00
libzpool Improve performance of zio_taskq_member 2020-03-03 10:29:38 -08:00
libzutil Add wrapper stub for zfs_cmd ioctl to libzpool 2019-11-12 10:40:39 -08:00
Makefile.am Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00