Page MenuHomeFreeBSD

vfs_vnops.c: Make O_NAMEDATTR Solaris compatible
ClosedPublic

Authored by rmacklem on May 3 2025, 8:39 PM.
Tags
None
Referenced Files
F137895336: D50139.id154808.diff
Wed, Nov 26, 11:50 PM
Unknown Object (File)
Sun, Nov 23, 11:47 AM
Unknown Object (File)
Mon, Nov 3, 11:48 PM
Unknown Object (File)
Wed, Oct 29, 11:43 PM
Unknown Object (File)
Oct 26 2025, 3:57 PM
Unknown Object (File)
Oct 25 2025, 4:37 AM
Unknown Object (File)
Oct 18 2025, 8:40 PM
Unknown Object (File)
Sep 13 2025, 8:07 AM
Subscribers

Details

Summary

When the O_XATTR flag is used in a Solaris open(2),
the named attribute directory is created, if it does
not already exist. (Solaris does not require or allow
O_CREAT for this case.)

The consensus on the mailing list was that O_NAMEDATTR
should behave the same way, as in "create the named
attribute directory if it does not exist even if O_CREAT
is not specified.

This patch makes this change. Note that CREATENAMED is
still useful for the NFSv4 server.

Test Plan

Tested on a patched system for files that both did and
did not already have named attribute directories.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable