]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: Document '-q' option for sendfile command
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Fri, 24 Jul 2020 18:32:00 +0000 (14:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 24 Jul 2020 18:32:00 +0000 (14:32 -0400)
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/sendfile.c
man/man8/xfs_io.8

index ff012c81042deaa357de63f80b17ae2fb7406621..a003bb5518ef0a4461052e25a428926676c02b3d 100644 (file)
@@ -25,6 +25,7 @@ sendfile_help(void)
 " Copies data between one file descriptor and another.  Because this copying\n"
 " is done within the kernel, sendfile does not need to transfer data to and\n"
 " from user space.\n"
+" -q -- quiet mode, do not write anything to standard output.\n"
 " -f -- specifies an input file from which to source data to write\n"
 " -i -- specifies an input file name from which to source data to write.\n"
 " An offset and length in the source file can be optionally specified.\n"
@@ -168,7 +169,7 @@ sendfile_init(void)
        sendfile_cmd.argmax = -1;
        sendfile_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
        sendfile_cmd.args =
-               _("-i infile | -f N [off len]");
+               _("[-q] -i infile | -f N [off len]");
        sendfile_cmd.oneline =
                _("Transfer data directly between file descriptors");
        sendfile_cmd.help = sendfile_help;
index d3eb3e7ebcc872ed915ebc1e7cd518d87f16ac59..caf3f15cda7bd28447a479c7d97e982ec7de4125 100644 (file)
@@ -541,13 +541,17 @@ manual page to allocate and zero blocks within the range.
 Truncates the current file at the given offset using
 .BR ftruncate (2).
 .TP
-.BI "sendfile \-i " srcfile " | \-f " N " [ " "offset length " ]
+.BI "sendfile [ \-q ] \-i " srcfile " | \-f " N " [ " "offset length " ]
 On platforms which support it, allows a direct in-kernel copy between
 two file descriptors. The current open file is the target, the source
 must be specified as another open file
 .RB ( \-f )
 or by path
 .RB ( \-i ).
+.RS 1.0i
+.B \-q
+quiet mode, do not write anything to standard output.
+.RE
 .TP
 .BI "readdir [ -v ] [ -o " offset " ] [ -l " length " ] "
 Read a range of directory entries from a given offset of a directory.