From patchwork Mon Aug 1 19:00:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schumaker, Anna" X-Patchwork-Id: 9254871 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B28856077C for ; Mon, 1 Aug 2016 19:00:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C671284BE for ; Mon, 1 Aug 2016 19:00:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BD74284C8; Mon, 1 Aug 2016 19:00:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from oss.sgi.com (oss.sgi.com [192.48.182.195]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E41F5284BE for ; Mon, 1 Aug 2016 19:00:55 +0000 (UTC) Received: from oss.sgi.com (localhost [IPv6:::1]) by oss.sgi.com (Postfix) with ESMTP id 64D647D2C; Mon, 1 Aug 2016 14:00:54 -0500 (CDT) X-Original-To: xfs@oss.sgi.com Delivered-To: xfs@oss.sgi.com Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id E26197D2A for ; Mon, 1 Aug 2016 14:00:51 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay2.corp.sgi.com (Postfix) with ESMTP id B1C5D30405F for ; Mon, 1 Aug 2016 12:00:51 -0700 (PDT) X-ASG-Debug-ID: 1470078048-0bf57c136a296290001-NocioJ Received: from mx144.netapp.com (mx144.netapp.com [216.240.21.25]) by cuda.sgi.com with ESMTP id DgJYZdtxvljDPyNg (version=TLSv1.2 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 01 Aug 2016 12:00:49 -0700 (PDT) X-Barracuda-Envelope-From: Anna.Schumaker@netapp.com X-Barracuda-Effective-Source-IP: mx144.netapp.com[216.240.21.25] X-Barracuda-Apparent-Source-IP: 216.240.21.25 X-IronPort-AV: E=Sophos;i="5.28,456,1464678000"; d="scan'208";a="133567374" Received: from vmwexchts02-prd.hq.netapp.com ([10.122.105.23]) by mx144-out.netapp.com with ESMTP; 01 Aug 2016 12:00:45 -0700 Received: from smtp2.corp.netapp.com (10.57.159.114) by VMWEXCHTS02-PRD.hq.netapp.com (10.122.105.23) with Microsoft SMTP Server id 15.0.1210.3; Mon, 1 Aug 2016 12:00:39 -0700 Received: from gouda.nowheycreamery.com.hq.netapp.com ([10.63.234.159]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id u71J0hga025427; Mon, 1 Aug 2016 12:00:43 -0700 (PDT) From: Anna Schumaker To: Subject: [PATCH] xfs_io: Update man page for copy_range command Date: Mon, 1 Aug 2016 15:00:42 -0400 X-ASG-Orig-Subj: [PATCH] xfs_io: Update man page for copy_range command Message-ID: <20160801190042.8652-1-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-Barracuda-Connect: mx144.netapp.com[216.240.21.25] X-Barracuda-Start-Time: 1470078049 X-Barracuda-Encrypted: RC4-SHA X-Barracuda-URL: https://192.48.176.15:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1148 X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=BSF_SC0_MISMATCH_TO X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.31675 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header Cc: anna.schumaker@netapp.com, xfs@oss.sgi.com X-BeenThere: xfs@oss.sgi.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Anna Schumaker Reviewed-by: Christoph Hellwig --- 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