HomeFreeBSD

cat: use copy_file_range(2) with fallback to previous behavior

Description

cat: use copy_file_range(2) with fallback to previous behavior

This allows to use special filesystem features like server-side
copying on NFS 4.2 or block cloning on OpenZFS 2.2.

Reviewed by: imp, rmacklem
Differential revision: https://reviews.freebsd.org/D40882

Details

Provenance
mmAuthored on Jul 8 2023, 6:31 PM
Reviewer
imp
Differential Revision
D40882: copy_file_range() support for cat(1)
Parents
rG70c00442d2bc: vfs: clean up unused NDF_NO* macros
Branches
Unknown
Tags
Unknown