Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Sep 2021 15:21:57 +0200
From:      Crest <crest@rlwinm.de>
To:        freebsd-fs@freebsd.org
Subject:   Re: should copy_file_range(2) have a non-Linux flag?
Message-ID:  <cdfab821-5882-0083-ca5b-f16fbf4982ea@rlwinm.de>
In-Reply-To: <YQXPR0101MB0968623581E772150D24F337DDD09@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM>
References:  <YQXPR0101MB0968623581E772150D24F337DDD09@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM>

next in thread | previous in thread | raw e-mail | index | archive | help

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

* NFS Ganesha

* Report progress during large file copies e.g. in a git annex special 
remote




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cdfab821-5882-0083-ca5b-f16fbf4982ea>