diff options
author | Matthew Ahrens <[email protected]> | 2020-03-18 13:31:10 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-18 13:31:10 -0700 |
commit | 652bdc9b0ed73476c4120dc2db16bd2f16f63708 (patch) | |
tree | 1304a0cdf911876b9104c3b86c97df01d308ccb0 /include | |
parent | 22df2457a7b8265d999a2fe48f3e8e941c8fdde5 (diff) |
Deprecate deduplicated send streams
Dedup send can only deduplicate over the set of blocks in the send
command being invoked, and it does not take advantage of the dedup table
to do so. This is a very common misconception among not only users, but
developers, and makes the feature seem more useful than it is. As a
result, many users are using the feature but not getting any benefit
from it.
Dedup send requires a nontrivial expenditure of memory and CPU to
operate, especially if the dataset(s) being sent is (are) not already
using a dedup-strength checksum.
Dedup send adds developer burden. It expands the test matrix when
developing new features, causing bugs in released code, and delaying
development efforts by forcing more testing to be done.
As a result, we are deprecating the use of `zfs send -D` and receiving
of such streams. This change adds a warning to the man page, and also
prints the warning whenever dedup send or receive are used.
In a future release, we plan to:
1. remove the kernel code for generating deduplicated streams
2. make `zfs send -D` generate regular, non-deduplicated streams
3. remove the kernel code for receiving deduplicated streams
4. make `zfs receive` of deduplicated streams process them in userland
to "re-duplicate" them, so that they can still be received.
Reviewed-by: Paul Dagnelie <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes #7887
Closes #10117
Diffstat (limited to 'include')
-rw-r--r-- | include/libzfs_impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libzfs_impl.h b/include/libzfs_impl.h index 276241e93..45c344c83 100644 --- a/include/libzfs_impl.h +++ b/include/libzfs_impl.h @@ -71,6 +71,7 @@ struct libzfs_handle { int libzfs_pool_iter; char libzfs_chassis_id[256]; boolean_t libzfs_prop_debug; + boolean_t libzfs_dedup_warning_printed; }; #define ZFSSHARE_MISS 0x01 /* Didn't find entry in cache */ |