# \[PATCH\] ioctl\_ficlonerange.2: mention a subtlety with length == 0

- Subsystems: THE REST
- Maintainers: Linus Torvalds
- List: linux-api
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-api/2016/07/110665/t

## \[PATCH\] ioctl\_ficlonerange.2: mention a subtlety with length == 0

- From: Darrick J. Wong \<hidden\>
- Date: 2016-07-14 18:11:24 
- Message: https://ratatoskr.run/linux-api/2016/07/110665.md

```text
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 <redacted>
---
 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
```

## Re: \[PATCH\] ioctl\_ficlonerange.2: mention a subtlety with length == 0

- From: Michael Kerrisk (man-pages) \<hidden\>
- Date: 2016-07-16 10:26:07 
- Message: https://ratatoskr.run/linux-api/2016/07/110664.md

```text
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 <redacted>
> ---
>  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/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
