Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jul 2025 16:49:03 +0200
From:      Olivier Certner <olce@freebsd.org>
To:        Rick Macklem <rick.macklem@gmail.com>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: RFC: checking file systems support UF_HIDDEN, UF_SYSTEM
Message-ID:  <3252102.VPuetLRq1i@ravel>
In-Reply-To: <CAM5tNy6Xqkh58muE0xymztmN9ZTzxTDm23oX-hTcdKeshz4hBg@mail.gmail.com>
References:  <CAM5tNy5eoY5f-fo9BKc4v34XKXF6%2B6Ae7Zpq=FH7owaSRYSHmw@mail.gmail.com> <2410567.gG0HsuGxDd@ravel> <CAM5tNy6Xqkh58muE0xymztmN9ZTzxTDm23oX-hTcdKeshz4hBg@mail.gmail.com>

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

[-- Attachment #1 --]
> Note that, for a NFSv4 client mount, support for hidden/system could
> change somewhere in
> the mounted server tree, since for NFSv4 the tree can consist of multiple file
> systems of different types. For example:
> If an ext2 fs was mounted under a ufs file system, the hidden/system support
> would go away when the mount point is crossed into the ext2 subtree.
> 
> So, I think pathconf is the best way to go (and avoids using up flag bits).

That's a compelling reason.  Consequence is that pathconf() must then be used on the directory where hidden/system files could be created/expected, and not the mount's root directory.

Regards.

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

iQIzBAABCQAdFiEEmNCxHjkosai0LYIujKEwQJceJicFAmhmmF8ACgkQjKEwQJce
JidLjg/+KsQca/tOdmRou47JBy8MhwvHl2KLjdPldD51JrycTfmg5c3kEI6vbEb9
3ZNifJppt9KFfA3rAbw3cPhzi65wBhtsGNNUi3NHAoR3Tkpze5+Iq76cDBGCJ1q3
ZM3kqWCoTpScCF8nNBPt2l7M/1bFZllfU0PS4AcvAomL1plI8RqOP9VL7qlPQN2y
RKSkWv/l+t0znsbPQUpIE4bgBHFijdUnHEi4lOTh3LJV5dUdxQpI0Il/fGLhNdUn
UZnUWO/Ra9iL0pE53Wvak0DSZ0xz30dSbU+pT0+GpNxhTe4C/qlxvqh6g5fdMGwE
TzUu6mGfqAU8tsQdPW8NTNC1tZwvSipgW00jkn7qEiIs69YPlv+PtUbiVyooYotA
PRe+beGFwkexdh6wJDz9i8HejzuUjOiJEJL8Uhq099V66tKDB6cK6RZ15TxWKK8e
g3AXcv6bnNZoyUNmnFgQADjDbpYbVVRKp++f0jB1NmVdczCa8Ncx8YyiBhzRxF7S
MPfGMEDu5Dtic4iPfWbrQGUgDhWnZ4LtiO5VfYz65gLR0dB+Gvt3MHiyO/5Sss5O
d7H9/zCv7KzHB3+Fj9VdJd3+kbW1pQLkDilBryVwwb2fwhKG8qMX8muKRDdVUgyc
ib9b3+QwGvnqy8aUL30/Z6T4DkxpOVnBxi9K/l7O+6wwRy69FKk=
=Jzvl
-----END PGP SIGNATURE-----
help

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