Re: Open NFS4ATTRDIR for a symlink with FreeBSD15.0?

From: Rick Macklem <rick.macklem_at_gmail.com>
Date: Fri, 30 Jan 2026 22:36:38 UTC
On Fri, Jan 30, 2026 at 11:52 AM Lionel Cons <lionelcons1972@gmail.com> wrote:
>
> Does the FreeBSD 15.0 nfs server allow opening the NFS4ATTRDIR of a symlink?
Yes. As you noted in your next post, if you specify O_NOFOLLOW | O_PATH when
opening the symlink, you will get a valid file descriptor.

You can then use that file descriptor to open the named attribute
directory via..
  namedattr_fd = openat(symlink_fd, ".", O_RDONLY | O_NAMEDATTR, 0);

This is minimally tested, but seems to work for ZFS and NFSv4.

rick

>
> Lionel
>