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
F144354444: D50139.id154808.diff
Sun, Feb 8, 12:29 AM
F144347156: D50139.id154757.diff
Sat, Feb 7, 11:32 PM
Unknown Object (File)
Sat, Jan 31, 8:06 AM
Unknown Object (File)
Tue, Jan 27, 10:32 AM
Unknown Object (File)
Tue, Jan 27, 9:11 AM
Unknown Object (File)
Sun, Jan 25, 10:42 AM
Unknown Object (File)
Sun, Jan 25, 4:42 AM
Unknown Object (File)
Sat, Jan 24, 12:59 PM
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