Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Sep 2021 15:08:59 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   should copy_file_range(2) have a non-Linux flag?
Message-ID:  <YQXPR0101MB0968623581E772150D24F337DDD09@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM>

next in thread | raw e-mail | index | archive | help
Hi,=0A=
=0A=
I just proposed a patch for VOP_COPY_FILE_RANGE(9)=0A=
that adds a kernel only flag to specify "return after 1second=0A=
with a partial copy". I'd like to use it for the NFSv4.2 server,=0A=
so that the RPC replies in a reasonable time frame.=0A=
https://reviews.freebsd.org/D31829=0A=
=0A=
The question that came up is...=0A=
"should this flag be visible to userland?"=0A=
=0A=
The only argument I can think of against doing this is=0A=
that it makes the syscall non-Linux compatible.=0A=
(Also, the NFS server requirement seems a bit of an oddball=0A=
 and I'm not sure an application would want this capability?)=0A=
=0A=
Do you think this flag should be exposed to userland (ie the syscall)?=0A=
=0A=
rick=0A=



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