diff options
author | Jannik Glückert <jannik.glueckert@gmail.com> | 2023-03-08 19:37:43 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-06-06 12:31:57 +0100 |
commit | d87caacf8e2df563afda85f3a5b7b852e08b6b2c (patch) | |
tree | 4191571e0d3db7dd3bc34d442c8737f4a40633b0 /gcc | |
parent | f80a8b42296265bb868a48592a2bd1fdaa2a3d8a (diff) | |
download | gcc-d87caacf8e2df563afda85f3a5b7b852e08b6b2c.zip gcc-d87caacf8e2df563afda85f3a5b7b852e08b6b2c.tar.gz gcc-d87caacf8e2df563afda85f3a5b7b852e08b6b2c.tar.bz2 |
libstdc++: Use copy_file_range for filesystem::copy_file
copy_file_range is a recent-ish syscall for copying files. It is similar
to sendfile but allows filesystem-specific optimizations. Common are:
Reflinks: BTRFS, XFS, ZFS (does not implement the syscall yet)
Server-side copy: NFS, SMB, Ceph
If copy_file_range is not available for the given files, fall back to
sendfile / userspace copy.
libstdc++-v3/ChangeLog:
* acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
* config.h.in: Regenerate.
* configure: Regenerate.
* src/filesystem/ops-common.h (copy_file_copy_file_range):
Define new function.
(do_copy_file): Use it.
Signed-off-by: Jannik Glückert <jannik.glueckert@gmail.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions