From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:36822 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751430AbcGPK0H (ORCPT ); Sat, 16 Jul 2016 06:26:07 -0400 Subject: Re: [PATCH] ioctl_ficlonerange.2: mention a subtlety with length == 0 To: "Darrick J. Wong" References: <20160714181111.GC5215@birch.djwong.org> Cc: mtk.manpages@gmail.com, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org From: "Michael Kerrisk (man-pages)" Message-ID: <9c68078c-0723-7a8a-bee9-484bfd1ebdc7@gmail.com> Date: Sat, 16 Jul 2016 12:26:01 +0200 MIME-Version: 1.0 In-Reply-To: <20160714181111.GC5215@birch.djwong.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 07/14/2016 08:11 PM, Darrick J. Wong wrote: > I forgot to document that passing length == 0 to clonerange actually > makes it clone all the way to EOF, so do that now. Thanks, Darrick. Applied. Cheers, Michael > 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 > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/