summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qobject.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-01-19 11:47:34 -0800
committerThiago Macieira <thiago.macieira@intel.com>2025-01-27 12:11:23 -0800
commit9b006eb91a612456f269161f79711e6fff3ccde0 (patch)
treedf4bcc3bd2545a2b57059e9ef9c2e730997e1cd2 /src/corelib/kernel/qobject.cpp
parentfe75526542dd77afb3f8d0d32ad5f7d22b6c5fbb (diff)
QFileSystemEngine/Unix: use copy_file_range(2) in cloneFile()
For remote filesystems on Linux, this can invoke a server-side copy to avoid network traffic. For local filesystems, Linux can use an optimized FS-specific call (which may be the same operation as the FICLONE, but I'm not sure) or splice the data on its own. Tested with: - FreeBSD ufs - FreeBSD ufs-to-tmpfs - FreeBSD tmpfs (tested ENOSPC with it) - Linux btrfs - Linux ext4 - Linux tmpfs (tested ENOSPC with it) Change-Id: I3ae11d555882bdbb0487fffd81cb5568171cee3f Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
0 files changed, 0 insertions, 0 deletions