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:
Michael Kerrisk 2016-01-26 10:39:28 +01:00
parent 4cfafd7910
commit b4fe696c8a
1 changed files with 5 additions and 2 deletions

View File

@ -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