mirror of https://github.com/mkerrisk/man-pages
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:
parent
a5918afa92
commit
2bea5d44a5
|
@ -143,6 +143,12 @@ in a loop, and using the
|
||||||
and
|
and
|
||||||
.BR SEEK_HOLE
|
.BR SEEK_HOLE
|
||||||
operations to find the locations of data segments.
|
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
|
.SH EXAMPLE
|
||||||
.nf
|
.nf
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
Loading…
Reference in New Issue