Re: WRITE_SAME support in FreeBSD nfsd NFSv4.1 mode?

From: Rick Macklem <rick.macklem_at_gmail.com>
Date: Fri, 10 Jan 2025 14:57:34 UTC
On Thu, Jan 9, 2025 at 8:14 PM Dan Shelton <dan.f.shelton@gmail.com> wrote:
>
> On Fri, 10 Jan 2025 at 02:59, Rick Macklem <rick.macklem@gmail.com> wrote:
> >
> > On Thu, Jan 9, 2025 at 4:31 PM Dan Shelton <dan.f.shelton@gmail.com> wrote:
> > >
> > > Hello!
> > >
> > > Does FreeBSD nfsd support the WRITE_SAME request in NFSv4.1 mode?
> > Not at this time, I'm afraid.
> >
> > Maybe in a future release, rick
>
> How fast could it be implemented?
For the simplest version, not too long.
The simplest version would be synchronous only and use
VOP_WRITE() calls. Doing a new VOP_xxx() call to try and optimize
it per-fs would take quite a bit longer. (I know very little about ZFS, but just
maybe, block cloning would be useful for this?)

Btw, it is a NFSv4.2 call, so it would only be supported for NFSv4.2 and not
NFSv4.1.

rick

>
> Dan
> --
> Dan Shelton - Cluster Specialist Win/Lin/Bsd
>