mirror of https://github.com/mkerrisk/man-pages
copy_file_range.2: NOTES: expand details on the use of lseek()
Mention SEEK_DATA and SEEK_HOLE explicitly. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
4cfafd7910
commit
b4fe696c8a
|
@ -137,9 +137,12 @@ is a sparse file, then
|
|||
may expand any holes existing in the requested range.
|
||||
Users may benefit from calling
|
||||
.BR copy_file_range ()
|
||||
in a loop, and using
|
||||
in a loop, and using the
|
||||
.BR lseek (2)
|
||||
to find the locations of data segments.
|
||||
.BR SEEK_DATA
|
||||
and
|
||||
.BR SEEK_HOLE
|
||||
operations to find the locations of data segments.
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
#define _GNU_SOURCE
|
||||
|
|
Loading…
Reference in New Issue