Page MenuHomeFreeBSD

unistd.h: Add a new pathconf variable for UF_HIDDEN/UF_SYSTEM
ClosedPublic

Authored by rmacklem on Sat, Jul 5, 8:09 PM.
Tags
None
Referenced Files
F124315910: D51172.diff
Fri, Jul 25, 5:00 AM
Unknown Object (File)
Thu, Jul 24, 6:05 AM
Unknown Object (File)
Thu, Jul 17, 7:05 AM
Unknown Object (File)
Thu, Jul 10, 8:55 AM
Unknown Object (File)
Wed, Jul 9, 9:16 AM
Unknown Object (File)
Tue, Jul 8, 7:58 PM
Unknown Object (File)
Tue, Jul 8, 1:48 AM
Unknown Object (File)
Mon, Jul 7, 11:34 AM
Subscribers

Details

Summary

For the NFSv4 server to implement the "hidden" and
"system" attributes, it needs to know if UF_HIDDEN,
UF_SYSTEM are supported for the file.

This patch adds a new pathconf variable called
_PC_HAS_HIDDENSYSTEM to do that. The ZFS patch
will be handled separately as a OpenZFS pull request.

Although this pathconf variable may be queried
by applications using pathconf(2), the current
interface where chflags(2) returns EOPNOTSUPP
may still be used to check if the flags are set.

Test Plan

Tested with a kernel which has NFSv4 client and
server patches for UF_HIDDEN and UF_SYSTEM.

These NFSv4 patches will be committed once this patch
has been reviewed/committed.

Diff Detail

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

Event Timeline

The var should be added to libsys/pathconf.2

This revision is now accepted and ready to land.Sat, Jul 5, 9:03 PM