Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 2020 14:33:57 +0000
From:      "Wall, Stephen" <stephen.wall@redcom.com>
To:        Alan Somers <asomers@freebsd.org>
Cc:        Rick Macklem <rmacklem@uoguelph.ca>, FreeBSD Hackers <freebsd-hackers@freebsd.org>, "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: RFC: should copy_file_range(2) remain Linux compatible or support special files?
Message-ID:  <MN2PR09MB4876E213E0A7A3F25B9D98CFEE340@MN2PR09MB4876.namprd09.prod.outlook.com>
In-Reply-To: <CAOtMX2gR7JaEx%2BswXfe1y0zU_V3PggGQ-UvU%2BY4yPiApmcZHzg@mail.gmail.com>
References:  <YTBPR01MB3966966F82008C9E471708FCDD370@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM> <MN2PR09MB4876F76163F8DA9276486AF9EE340@MN2PR09MB4876.namprd09.prod.outlook.com> <YTBPR01MB39663AB569A9B0EB8FF889F7DD340@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM> <MN2PR09MB487615BB0445AA7F9BC91066EE340@MN2PR09MB4876.namprd09.prod.outlook.com>, <CAOtMX2gR7JaEx%2BswXfe1y0zU_V3PggGQ-UvU%2BY4yPiApmcZHzg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Userspace RAID-like applications could use it for rebuilds, and they'll
> need it to work on device nodes.  Userspace NFS servers and iSCSI servers
> could obviously use it.  And since the FUSE protocol includes a
> COPY_FILE_RANGE operation, many FUSE daemons could implement that with
> copy_file_range(2).

These will need to have conditional code for Linux and FreeBSD anyways, if =
copy_file_range() behaves differently, and the developer wants a portable a=
pplication. It seems to me that unless you get the linux community onboard =
with making a compatible change on their platform, you'd be better off nami=
ng the FreeBSD function something different to avoid confusion for cross pl=
atform developers.  Though, unless they are well versed in FreeBSD, they wo=
n't use it anyways since they are writing code to work on Linux, and that c=
ode will also work on FreeBSD, given copy_file_range() compatibility.

Just my opinion, don't feel bad about ignoring it.

-spw



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MN2PR09MB4876E213E0A7A3F25B9D98CFEE340>