Added "--discard" option.

This commit is contained in:
Andrew Wood
2023-08-28 21:05:45 +01:00
parent 2cd74c7ff7
commit 9e5bdeb3a4
12 changed files with 45 additions and 12 deletions
+13 -1
View File
@@ -366,11 +366,14 @@ but means that the transfer buffer may not be used. This prevents
.B \-A
and
.B \-T
from working, and makes
from working, cannot work with
.BR \-X ,
and makes
.B \-B
redundant, so using
.BR \-A ,
.BR \-T ,
.BR \-X ,
or
.B \-B
automatically switches on
@@ -420,6 +423,15 @@ of filesystems in a single
.B pv
call. Use this option with caution.
.TP
.B \-X, \-\-discard
Instead of transferring input data to standard output, discard it. This is
equivalent to redirecting standard output to
.IR /dev/null ,
except that
.BR write (2)
is never called. Implies
.BR \-C .
.TP
.B \-d PID[:FD], \-\-watchfd PID[:FD]
Instead of transferring data, watch file descriptor
.B FD