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
Unknown Object (File)
Mon, Aug 25, 11:37 PM
Unknown Object (File)
Mon, Aug 25, 11:14 AM
Unknown Object (File)
Aug 5 2025, 10:19 AM
Unknown Object (File)
Jul 28 2025, 6:41 AM
Unknown Object (File)
Jul 27 2025, 11:47 PM
Unknown Object (File)
Jul 27 2025, 7:19 AM
Unknown Object (File)
Jul 27 2025, 4:42 AM
Unknown Object (File)
Jul 27 2025, 3:26 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