Why vfs_stdcheckexp is a VFS operation?

Xin Li delphij at delphij.net
Tue Aug 28 20:54:56 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

We have recently run into a problem with exports(5) and I then read
the code of mountd(8) as well as sys/kern/vfs_exports.c and found that
vfs_stdcheckexp is a VFS operation and not a vnode operation.

So for instance if one exports a mountpoint, and later changes his
mind and export a directory under that mountpoint, clients that have
mounted the mountpoint before the second operation will still have access.

Is this intentional (e.g. for performance consideration?)

Cheers,
- -- 
Xin LI <delphij at delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJQPTAfAAoJEG80Jeu8UPuzGykIAIBOrRNGsqgLNzIpEtqsBjKE
ZSGTVLCfoAWeeOLKLuNv3yusFs1TVoIPWlr1Pnq/olQQWaShj7iFQioKQSQtMfJC
xBJrn1IRGaYqR31VzxZ4KWof5QU+1hAgyxLnoZaHqYiNTIQWz2G0LYKs9QdQmyZ2
IP5WXtGVXi6U1VClIpr6GzMebGMGObQqlpzqN23EEmUjIIML1lWX/3vNqXjp7WsH
pcalf7PdthnKINn7IWcfLcmJydWQz4lihs/sm5oT9KwnlQtryH3pTa1C5qHP4vK2
lIPc6jAhr9X0tY28YzBPRHej9ChVm61Qrkudeg7fGZ7arKFRDDG/h1TbJDEdCOw=
=42qZ
-----END PGP SIGNATURE-----


More information about the freebsd-fs mailing list