Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jul 2025 10:57:15 +0200
From:      Olivier Certner <olce@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: RFC: checking file systems support UF_HIDDEN, UF_SYSTEM
Message-ID:  <4214798.O2WMGSuNBG@ravel>
In-Reply-To: <aGXx-wdBm2PCJufs@kib.kiev.ua>
References:  <CAM5tNy5eoY5f-fo9BKc4v34XKXF6%2B6Ae7Zpq=FH7owaSRYSHmw@mail.gmail.com> <CAOtMX2jVdbtGb=%2BCEAbaWF2oiSTD=V=js2HOjQHnpJpCB1i2zw@mail.gmail.com> <aGXx-wdBm2PCJufs@kib.kiev.ua>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
> I suggest adding more _PC_XXX constants and use VOP_PATHCONF() to get the
> property of the specific mount point.  You might query it on the root
> vnode and cache it somewhere.  Also this information would become
> available to userspace due to pathconf(2).

That works and is probably the path of least resistance.  An alternative would be to export this information through statfs()/statvfs(), as probably no (sane) filesystem would support these file attributes only in some directories (in other words, this information is per-mount).  However, to stay backwards-compatible, that would mean either defining new MNT_* flags or using some spares in 'struct statfs', and translating these into a new report flag for statvfs().

Regards.

-- 
Olivier Certner
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQIzBAABCQAdFiEEmNCxHjkosai0LYIujKEwQJceJicFAmhmResACgkQjKEwQJce
JielpRAAmHHK59YzIGc6BpV9avCV/ZHVrgkU0mQZ6w9MmOTNU++8reuXgx4x7z5j
XUS1zDRpAQUJ9UId2lzmOSwJO8oY4radjO+kCN5uDut7iLDS9ixQa7fekkS+tGaR
9muPIEc27qaoSA4XXJ/tsQXUN6Pn9f8raDRveaMB+2Px9PuaIN08KoF+NlQxEm1a
wWhonTxQ/n82+akV9U3E9QpgZmCuTPIoFXM2kd98pH2OCBIBrshX200qpNMraaa0
8L1WhEq1KEYUDzE2iSR8SD8ysGMFoUElI+Ria9fOhIWOv5Gfp1Oa5T2rI9Xxy8C4
WGeJmtzqTU7fI5ErczyY26q3uruG9Udcgt8KtKq4+AncB3lpTNXrxODFvslmX8jC
3/euKeSjWGHDZsIlLG51+skpWwBig3UZQIM8Pw++BD/lxYFWDERMmIFzri3iE27m
ZqRz1Q+gwGbRhp23/KuTNcSBRslMX8Afthu8HtkkMFqunh0GpvyUNG6n5Xn+2cHS
QDTH5RZttAYmwIpQg+SGADl46apCe9+Fjv3JANRqb9zveD0JD16tYHd/viUPm7vg
yKUTIHpBnrH2pnHN7uKo/P+1rSTbkwOl7Jw4RNCFgrz3fxeygv9GOG4wtgLyPb5T
phUN6pkeqLnk6jJwAma3jtCzva056SHkMNI8gsxlR/qFNEp3MBQ=
=8iWp
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4214798.O2WMGSuNBG>