From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp1040.oracle.com ([156.151.31.81]:28867 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113AbcGNSLY (ORCPT ); Thu, 14 Jul 2016 14:11:24 -0400 Date: Thu, 14 Jul 2016 11:11:11 -0700 From: "Darrick J. Wong" To: "Michael Kerrisk (man-pages)" Cc: linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org Subject: [PATCH] ioctl_ficlonerange.2: mention a subtlety with length == 0 Message-ID: <20160714181111.GC5215@birch.djwong.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: I forgot to document that passing length == 0 to clonerange actually makes it clone all the way to EOF, so do that now. Signed-off-by: Darrick J. Wong --- man2/ioctl_ficlonerange.2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man2/ioctl_ficlonerange.2 b/man2/ioctl_ficlonerange.2 index d1da3e6..c4715d0 100644 --- a/man2/ioctl_ficlonerange.2 +++ b/man2/ioctl_ficlonerange.2 @@ -59,6 +59,9 @@ into the file at offset .IR dest_offset ", provided that both are files. +If +.IR src_length +is zero, the ioctl reflinks to the end of the source file. This information is conveyed in a structure of the following form: .in +4n