-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove deduplicated send/receive code #10212
Conversation
Deduplicated send streams (i.e. `zfs send -D` and `zfs receive` of such streams) are deprecated. Deduplicated send streams can be received by first converting them to non-deduplicated with the `zstream redup` command. This commit removes the code for sending and receiving deduplicated send streams. `zfs send -D` will now print a warning, ignore the `-D` flag, and generate a regular (non-deduplicated) send stream. `zfs receive` of a deduplicated send stream will print an error message and fail. The resulting code simplification (especially in the kernel's support for receiving dedup streams) should help enable future performance enhancements. Several new tests are added which leverage `zstream redup`. Signed-off-by: Matthew Ahrens <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #10212 +/- ##
===========================================
- Coverage 79.38% 65.80% -13.58%
===========================================
Files 388 306 -82
Lines 123392 105776 -17616
===========================================
- Hits 97953 69611 -28342
- Misses 25439 36165 +10726
Continue to review full report at Codecov.
|
"deprecated, and will be removed in a\n" | ||
"future release. (In the future, the flag will be " | ||
"accepted, but a\n" | ||
"regular, non-deduplicated stream will be " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually going into a separate release from the previous patch? If not, we might be rolling forwards with this a bit too quickly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the previous commit which added this message is being backported to 0.8.4, but this commit won't be backported, it will be released with 2.0.
Deduplicated send streams (i.e. `zfs send -D` and `zfs receive` of such streams) are deprecated. Deduplicated send streams can be received by first converting them to non-deduplicated with the `zstream redup` command. This commit removes the code for sending and receiving deduplicated send streams. `zfs send -D` will now print a warning, ignore the `-D` flag, and generate a regular (non-deduplicated) send stream. `zfs receive` of a deduplicated send stream will print an error message and fail. The resulting code simplification (especially in the kernel's support for receiving dedup streams) should help enable future performance enhancements. Several new tests are added which leverage `zstream redup`. Reviewed-by: Paul Dagnelie <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matthew Ahrens <[email protected]> Issue openzfs#7887 Issue openzfs#10117 Issue openzfs#10156 Closes openzfs#10212 (cherry picked from commit 196bee4)
Deduplicated send streams (i.e. `zfs send -D` and `zfs receive` of such streams) are deprecated. Deduplicated send streams can be received by first converting them to non-deduplicated with the `zstream redup` command. This commit removes the code for sending and receiving deduplicated send streams. `zfs send -D` will now print a warning, ignore the `-D` flag, and generate a regular (non-deduplicated) send stream. `zfs receive` of a deduplicated send stream will print an error message and fail. The resulting code simplification (especially in the kernel's support for receiving dedup streams) should help enable future performance enhancements. Several new tests are added which leverage `zstream redup`. Reviewed-by: Paul Dagnelie <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matthew Ahrens <[email protected]> Issue openzfs#7887 Issue openzfs#10117 Issue openzfs#10156 Closes openzfs#10212
Motivation and Context
Deduplicated send streams (i.e.
zfs send -D
andzfs receive
of suchstreams) are deprecated. Deduplicated send streams can be received by
first converting them to non-deduplicated with the
zstream redup
command.
See #10117, #10156, and #7887
Description
This commit removes the code for sending and receiving deduplicated send
streams.
zfs send -D
will now print a warning, ignore the-D
flag,and generate a regular (non-deduplicated) send stream.
zfs receive
ofa deduplicated send stream will print an error message and fail.
The resulting code simplification (especially in the kernel's support
for receiving dedup streams) should help enable future performance
enhancements.
How Has This Been Tested?
Several new tests are added which leverage
zstream redup
.Types of changes
Checklist:
Signed-off-by
.