mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Remove deduplicated send/receive code
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 <pcd@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> Issue #7887 Issue #10117 Issue #10156 Closes #10212
This commit is contained in:
+5
-10
@@ -105,17 +105,11 @@ destroyed by using the
|
||||
.Nm zfs Cm destroy Fl d
|
||||
command.
|
||||
.Pp
|
||||
Deduplicated send streams can be generated by using the
|
||||
.Nm zfs Cm send Fl D
|
||||
The ability to send and receive deduplicated send streams has been removed.
|
||||
However, a deduplicated send stream created with older software can be converted
|
||||
to a regular (non-deduplicated) stream by using the
|
||||
.Nm zstream Cm redup
|
||||
command.
|
||||
\fBThe ability to send and receive deduplicated send streams is deprecated.\fR
|
||||
In the future, the ability to receive a deduplicated send stream with
|
||||
.Nm zfs Cm receive
|
||||
will be removed.
|
||||
However, in the future, a utility will be provided to convert a
|
||||
deduplicated send stream to a regular (non-deduplicated) stream.
|
||||
This future utility will require that the send stream be located in a
|
||||
seek-able file, rather than provided by a pipe.
|
||||
.Pp
|
||||
If
|
||||
.Fl o Em property Ns = Ns Ar value
|
||||
@@ -378,3 +372,4 @@ deleting its saved partially received state.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr zfs-send 8
|
||||
.Xr zstream 8
|
||||
|
||||
+3
-15
@@ -86,21 +86,9 @@ The output can be redirected to a file or to a different system
|
||||
By default, a full stream is generated.
|
||||
.Bl -tag -width "-D"
|
||||
.It Fl D, -dedup
|
||||
Generate a deduplicated stream.
|
||||
\fBDeduplicated send is deprecated and will be removed in a future release.\fR
|
||||
(In the future, the flag will be accepted but a regular, non-deduplicated
|
||||
stream will be generated.)
|
||||
Blocks which would have been sent multiple times in the send stream will only be
|
||||
sent once.
|
||||
The receiving system must also support this feature to receive a deduplicated
|
||||
stream.
|
||||
This flag can be used regardless of the dataset's
|
||||
.Sy dedup
|
||||
property, but performance will be much better if the filesystem uses a
|
||||
dedup-capable checksum
|
||||
.Po for example,
|
||||
.Sy sha256
|
||||
.Pc .
|
||||
Deduplicated send is no longer supported.
|
||||
This flag is accepted for backwards compatibility, but a regular,
|
||||
non-deduplicated stream will be generated.
|
||||
.It Fl I Ar snapshot
|
||||
Generate a stream package that sends all intermediary snapshots from the first
|
||||
snapshot to the second snapshot.
|
||||
|
||||
Reference in New Issue
Block a user