|VFS_CHECKEXP(9)||Kernel Developer's Manual||VFS_CHECKEXP(9)|
check if a file system is exported to a client
mount *mp, struct
sockaddr *nam, int
*exflagsp, struct ucred
macro is used by the NFS server to check if a mount point is exported to a
The arguments it expects are:
- The mount point to be checked.
- An mbuf containing the network address of the client.
- Return parameter for the export flags for this client.
- Return parameter for the anonymous credentials for this client.
macro should be called on a file system's mount structure to determine if it
is exported to a client whose address is contained in
It is generally called before VFS_FHTOVP(9) to validate that a client has access to the file system.
The file system should call vfs_export_lookup(9) with the address of an appropriate netexport structure and the address of the client, nam, to verify that the client can access this file system.
The export flags and anonymous credentials specific to the client (returned by vfs_export_lookup(9)) will be returned in *exflagsp and *credanonp.
This manual page was written by Alfred Perlstein.
|January 4, 2010||Debian|