From 835db58592d7d947e5818eb7281882e2a46073e0 Mon Sep 17 00:00:00 2001 From: LOLi Date: Sat, 9 Sep 2017 00:24:31 +0200 Subject: Add -vnP support to 'zfs send' for bookmarks This leverages the functionality introduced in cf7684b to expose verbose, dry-run and parsable 'zfs send' options for bookmarks. Reviewed-by: Brian Behlendorf Signed-off-by: loli10K Closes #3666 Closes #6601 --- man/man8/zfs.8 | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'man/man8') diff --git a/man/man8/zfs.8 b/man/man8/zfs.8 index 89541eed9..eb5b6ffb9 100644 --- a/man/man8/zfs.8 +++ b/man/man8/zfs.8 @@ -171,7 +171,7 @@ .Ar snapshot .Nm .Cm send -.Op Fl Lcew +.Op Fl LPcenvw .Op Fl i Ar snapshot Ns | Ns Ar bookmark .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot .Nm @@ -3253,14 +3253,14 @@ The receiving system must also support this feature. .It Fl v, -verbose Print verbose information about the stream package generated. This information includes a per-second report of how much data has been sent. -.El .Pp The format of the stream is committed. You will be able to receive your streams on future versions of ZFS. +.El .It Xo .Nm .Cm send -.Op Fl Lce +.Op Fl LPcenvw .Op Fl i Ar snapshot Ns | Ns Ar bookmark .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot .Xc @@ -3287,6 +3287,8 @@ See for details on ZFS feature flags and the .Sy large_blocks feature. +.It Fl P, -parsable +Print machine-parsable verbose information about the stream package generated. .It Fl c, -compressed Generate a more compact stream by using compressed WRITE records for blocks which are compressed on disk and in memory @@ -3360,6 +3362,23 @@ character and following If the incremental target is a clone, the incremental source can be the origin snapshot, or an earlier snapshot in the origin's filesystem, or the origin's origin, etc. +.It Fl n, -dryrun +Do a dry-run +.Pq Qq No-op +send. +Do not generate any actual send data. +This is useful in conjunction with the +.Fl v +or +.Fl P +flags to determine what data will be sent. +In this case, the verbose output will be written to standard output +.Po contrast with a non-dry-run, where the stream is written to standard output +and the verbose output goes to standard error +.Pc . +.It Fl v, -verbose +Print verbose information about the stream package generated. +This information includes a per-second report of how much data has been sent. .El .It Xo .Nm -- cgit v1.2.3