copy_file_range.2: Add notes on copy_on_write() filesystem optimizations

Based on Anna Schumaker's noted in the initial commit for
this man page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-01-27 09:10:32 +01:00
parent a5918afa92
commit 2bea5d44a5
1 changed files with 6 additions and 0 deletions

View File

@ -143,6 +143,12 @@ in a loop, and using the
and
.BR SEEK_HOLE
operations to find the locations of data segments.
.BR copy_file_range ()
gives filesystems an opportunity to implement "copy acceleration" techniques,
such as the use of reflinks (i.e., two or more i-nodes that share
pointers to the same copy-on-write disk blocks)
or server-side-copy (in the case of NFS).
.SH EXAMPLE
.nf
#define _GNU_SOURCE