-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fancy and more efficient syscalls to copy (sparse) files on Linux
The FICLONE ioctl() is the most efficient way to copy a file inside one file system if available and supported. copy_file_range() is an alternative that can provide similar efficiency, but also only works inside one file system and requires us to take care of holes in files. sendfile() is very similar, but unline copy_file_range() it doesn't support reflinks. Ticket: CFE-4380 Changelog: FileSparseCopy() now uses FICLONE ioctl(), copy_file_range() or sendfile() on Linux platforms (if available)
- Loading branch information
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters