Skip to content

Commit 056c273

Browse files
rincebraintonyhutter
authored andcommitted
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 openzfs#12336
1 parent ba76bb3 commit 056c273

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

cmd/zfs/zfs_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ get_usage(zfs_help_t idx)
317317
case HELP_SEND:
318318
return (gettext("\tsend [-DnPpRvLecwhb] [-[i|I] snapshot] "
319319
"<snapshot>\n"
320-
"\tsend [-nvPLecw] [-i snapshot|bookmark] "
320+
"\tsend [-DnvPLecw] [-i snapshot|bookmark] "
321321
"<filesystem|volume|snapshot>\n"
322322
"\tsend [-DnPpvLec] [-i bookmark|snapshot] "
323323
"--redact <bookmark> <snapshot>\n"

man/man8/zfs-send.8

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
.Ar snapshot
4545
.Nm zfs
4646
.Cm send
47-
.Op Fl DLPRcenpsvw
47+
.Op Fl DLPcensvw
4848
.Op Fl i Ar snapshot Ns | Ns Ar bookmark
4949
.Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
5050
.Nm zfs
@@ -285,7 +285,7 @@ You will be able to receive your streams on future versions of ZFS.
285285
.It Xo
286286
.Nm zfs
287287
.Cm send
288-
.Op Fl DLPRcenpvw
288+
.Op Fl DLPcenvw
289289
.Op Fl i Ar snapshot Ns | Ns Ar bookmark
290290
.Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
291291
.Xc
@@ -296,7 +296,11 @@ filesystem must not be mounted.
296296
When the stream generated from a filesystem or volume is received, the default
297297
snapshot name will be
298298
.Qq --head-- .
299-
.Bl -tag -width "-L"
299+
.Bl -tag -width "-D"
300+
.It Fl D , -dedup
301+
Deduplicated send is no longer supported.
302+
This flag is accepted for backwards compatibility, but a regular,
303+
non-deduplicated stream will be generated.
300304
.It Fl L , -large-block
301305
Generate a stream which may contain blocks larger than 128KB.
302306
This flag has no effect if the

0 commit comments

Comments
 (0)