All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anna Schumaker <Anna.Schumaker@netapp.com>
To: david@fromorbit.com
Cc: anna.schumaker@netapp.com, xfs@oss.sgi.com
Subject: [PATCH] xfs_io: Update man page for copy_range command
Date: Mon, 1 Aug 2016 15:00:42 -0400	[thread overview]
Message-ID: <20160801190042.8652-1-Anna.Schumaker@Netapp.com> (raw)

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
---
 man/man8/xfs_io.8 | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/man/man8/xfs_io.8 b/man/man8/xfs_io.8
index b0300bb..2c56f09 100644
--- a/man/man8/xfs_io.8
+++ b/man/man8/xfs_io.8
@@ -556,6 +556,39 @@ Print timing statistics in a condensed format.
 .TP
 .B \-q
 Do not print timing statistics at all.
+.RE
+.PD
+.TP
+.TP
+.BI "copy_range [ -s " src_offset " ] [ -d " dst_offset " ] [ -l " length " ] src_file"
+On filesystems that support the
+.BR copy_file_range (2)
+system call, copies data from the
+.I src_file
+into the open file.  If
+.IR src_offset ,
+.IR dst_offset ,
+and
+.I length
+are omitted the contents of src_file will be copied to the beginning of the
+open file, overwriting any data already there.
+.RS 1.0i
+.PD 0
+.TP 0.4i
+.B \-s
+Copy data from
+.I src_file
+beginning from
+.IR src_offset .
+.TP
+.B \-d
+Copy data into the open file beginning at
+.IR dst_offset .
+.TP
+.B \-l
+Copy up to
+.I length
+bytes of data.
 
 .SH MEMORY MAPPED I/O COMMANDS
 .TP
-- 
2.9.0

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

             reply	other threads:[~2016-08-01 19:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-01 19:00 Anna Schumaker [this message]
2016-08-02 12:24 ` [PATCH] xfs_io: Update man page for copy_range command Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160801190042.8652-1-Anna.Schumaker@Netapp.com \
    --to=anna.schumaker@netapp.com \
    --cc=david@fromorbit.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.