Re: FreeBSD NFSv4.1 nfsd, named attribute support (OPENATTR) via O_NAMEDATTR / Re: FreeBSD NFSv4.1 nfsd, named attribute support (OPENATTR)?
Date: Tue, 05 Aug 2025 13:20:26 UTC
On Tue, Aug 5, 2025 at 4:42 AM Aurélien Couderc <aurelien.couderc2002@gmail.com> wrote: > > On Wed, Jun 4, 2025 at 10:43 PM Rick Macklem <rick.macklem@gmail.com> wrote: > > > > On Wed, Jun 4, 2025 at 11:05 AM Cedric Blancher > > <cedric.blancher@gmail.com> wrote: > > > > > > On Wed, 9 Apr 2025 at 16:32, Rick Macklem <rick.macklem@gmail.com> wrote: > > > > > > > > On Wed, Apr 9, 2025 at 1:29 AM Cedric Blancher > > > > <cedric.blancher@gmail.com> wrote: > > > > > > > > > > 1. Which tag in https://github.com/freebsd/freebsd-src should I check > > > > > out for building? > > > > Oh, you need the main branch. > > > > > > Sorry, I was sick for the better part of the month. > > > > > > @rick & @lionel: > > > What is the status here? Is there a FreeBSD ISO image which can be > > > used for testing this with FreeBSD nfsd+FreeBSD NFSv4.1 client with an > > > exported ZFS? > > Not unless you are willing to apply the ZFS patch and build/install a kernel > > from those modified sources. (The ZFS patch is still under review for OpenZFS.) > > > > If you are willing to do the above (it should be pretty easy), grab the most > > recent 15.0 snapshot from here... anonymous ftp at ftp.freebsd.org > > pub/FreeBSD/snapshots/ISO-IMAGES/15.0 > > Then, for x86-64, choose one with "amd64" and disc1" in the name. > > > > After installing it (click on the "src" box).. > > Grab the ZFS patch from here... > > https://people.freebsd.org/~rmacklem/zfs-xattr.patch > > and apply it to /usr/src. > > The in /usr/src.. > > make buildkernel > > make installkernel > > - and reboot > > You will have to configure the NFSv4 server (there should be docs > > for that found via your favourite search engine). > > > > If you try the above and have difficulties, email and I may be able to > > help, rick > > > > Rick, how long will it take until O_NAMEDATTR will work on a standard > FreeBSD with ZFS? Should be soon. The main patch is now in OpenZFS, but hasn't yet been pulled into FreeBSD. The one that fixes a weird case where you can create two attributes with the same name (one done when "xattr=sa" via setextattr(1) and the other done via namedattr when "xattr=dir") is now a pull request. Hopefully both patches will be in 15.0. rick > > Aurélien > -- > Aurélien Couderc <aurelien.couderc2002@gmail.com> > Big Data/Data mining expert, chess enthusiast