Re: [PATCH] copy.c: use `sendfile()` for in-kernel file copying on Linux
- From
Ed Maste <emaste@freebsd.org>
- Date
- Feb 20, 2026, 16:35 UTC
- Message-ID
- <CAPyFy2Dj6z9OuYFF9Tpn98mrd3Hs6BD75B73B+jkqp9aVM8X_w@mail.gmail.com>
- In-Reply-To
- <CAPx1GvcdFN5gn97xxuNLRBy2sV2gK3Wm56Pw3tQGENN8_+BKnw@mail.gmail.com>
On Sat, 14 Feb 2026 at 11:50, Chris Torek <chris.torek@gmail.com> wrote:
> > Ah, more importantly, FreeBSD's sendfile only operates on sockets.
True. If benchmarking shows this is profitable then we'd want to use copy_file_range(2) on FreeBSD.