aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-06-10 17:56:26 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-13 23:54:47 +0200
commit733e3228017bd33860e34762079ee3ce97fc8646 (patch)
tree8f7bc95112e897ab26d94aca54826be45a572ed6
parent6af49d0fee4f3dbd31a133ee31590dc30eb8999e (diff)
downloadman-pages-733e3228017b.tar.gz
ioctl.2, ioctl_ficlone*.2, FICLONE{,RANGE}.2const: Move page to FICLONE.2const
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man2/ioctl.24
-rw-r--r--man/man2/ioctl_ficlone.21
-rw-r--r--man/man2const/FICLONE.2const (renamed from man/man2/ioctl_ficlonerange.2)10
-rw-r--r--man/man2const/FICLONERANGE.2const1
4 files changed, 9 insertions, 7 deletions
diff --git a/man/man2/ioctl.2 b/man/man2/ioctl.2
index 6f7725904a..d73efaaa2d 100644
--- a/man/man2/ioctl.2
+++ b/man/man2/ioctl.2
@@ -216,8 +216,8 @@ for the various architectures.
.BR fcntl (2),
.BR ioctl_console (2),
.BR ioctl_fat (2),
-.BR ioctl_ficlone (2),
-.BR ioctl_ficlonerange (2),
+.BR FICLONE (2const),
+.BR FICLONERANGE (2const),
.BR ioctl_fideduperange (2),
.BR ioctl_fslabel (2),
.BR ioctl_getfsmap (2),
diff --git a/man/man2/ioctl_ficlone.2 b/man/man2/ioctl_ficlone.2
deleted file mode 100644
index 19bb3482da..0000000000
--- a/man/man2/ioctl_ficlone.2
+++ /dev/null
@@ -1 +0,0 @@
-.so man2/ioctl_ficlonerange.2
diff --git a/man/man2/ioctl_ficlonerange.2 b/man/man2const/FICLONE.2const
index 63a430dd4f..c822ab74ed 100644
--- a/man/man2/ioctl_ficlonerange.2
+++ b/man/man2const/FICLONE.2const
@@ -1,16 +1,18 @@
.\" Copyright (c) 2016, Oracle. All rights reserved.
.\"
.\" SPDX-License-Identifier: GPL-2.0-or-later
-.TH ioctl_ficlonerange 2 (date) "Linux man-pages (unreleased)"
+.TH FICLONE 2const (date) "Linux man-pages (unreleased)"
.SH NAME
-ioctl_ficlonerange, ioctl_ficlone \-
+FICLONE,
+FICLONERANGE
+\-
share some the data of one file with another file
.SH LIBRARY
Standard C library
.RI ( libc ", " \-lc )
.SH SYNOPSIS
.nf
-.BR "#include <linux/fs.h>" " /* Definition of " FICLONE* " constants */"
+.BR "#include <linux/fs.h>" " /* Definition of " FICLONE* " constants */"
.B #include <sys/ioctl.h>
.P
.BI "int ioctl(int " dest_fd ", FICLONERANGE, struct file_clone_range *" arg );
@@ -120,7 +122,7 @@ They were previously known as
and
.BR BTRFS_IOC_CLONE_RANGE ,
and were private to Btrfs.
-.SH NOTES
+.SH CAVEATS
Because a copy-on-write operation requires the allocation of new storage, the
.BR fallocate (2)
operation may unshare shared blocks to guarantee that subsequent writes will
diff --git a/man/man2const/FICLONERANGE.2const b/man/man2const/FICLONERANGE.2const
new file mode 100644
index 0000000000..1e1cbb2b62
--- /dev/null
+++ b/man/man2const/FICLONERANGE.2const
@@ -0,0 +1 @@
+.so man2/ioctl_ficlone.2