diff options
author | Rich Ercolani <[email protected]> | 2021-07-16 15:58:01 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-16 13:58:01 -0600 |
commit | b7ec530233ec1bf16a330443848a23a93a056624 (patch) | |
tree | d0e1ce472e8f7fceafe03f7395cb5fecf32058e9 | |
parent | c1b5869bab987711ed00c3b5b43ee7145d332003 (diff) |
Correct zfs-send(8) on readonly sends
zfs-send(8) claimed in the flags list you could use -pR when sending
a readonly filesystem or volume. You cannot.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tony Nguyen <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes #12336
-rw-r--r-- | cmd/zfs/zfs_main.c | 2 | ||||
-rw-r--r-- | man/man8/zfs-send.8 | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 38bfdc91a..a8d68cd03 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -317,7 +317,7 @@ get_usage(zfs_help_t idx) case HELP_SEND: return (gettext("\tsend [-DnPpRvLecwhb] [-[i|I] snapshot] " "<snapshot>\n" - "\tsend [-nvPLecw] [-i snapshot|bookmark] " + "\tsend [-DnvPLecw] [-i snapshot|bookmark] " "<filesystem|volume|snapshot>\n" "\tsend [-DnPpvLec] [-i bookmark|snapshot] " "--redact <bookmark> <snapshot>\n" diff --git a/man/man8/zfs-send.8 b/man/man8/zfs-send.8 index a3d08fbf6..688bd0339 100644 --- a/man/man8/zfs-send.8 +++ b/man/man8/zfs-send.8 @@ -44,7 +44,7 @@ .Ar snapshot .Nm zfs .Cm send -.Op Fl DLPRcenpsvw +.Op Fl DLPcensvw .Op Fl i Ar snapshot Ns | Ns Ar bookmark .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot .Nm zfs @@ -285,7 +285,7 @@ You will be able to receive your streams on future versions of ZFS. .It Xo .Nm zfs .Cm send -.Op Fl DLPRcenpvw +.Op Fl DLPcenvw .Op Fl i Ar snapshot Ns | Ns Ar bookmark .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot .Xc @@ -296,7 +296,11 @@ filesystem must not be mounted. When the stream generated from a filesystem or volume is received, the default snapshot name will be .Qq --head-- . -.Bl -tag -width "-L" +.Bl -tag -width "-D" +.It Fl D , -dedup +Deduplicated send is no longer supported. +This flag is accepted for backwards compatibility, but a regular, +non-deduplicated stream will be generated. .It Fl L , -large-block Generate a stream which may contain blocks larger than 128KB. This flag has no effect if the |