VFS_CHECKEXP (9)
Leading comments
Copyright (c) 1999 Alfred Perlstein All rights reserved. This program is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condition is met: Redistributions of source code must retain the above copyright notice, this condition and the following disclaimer. THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRAN...
NAME
VFS_CHECKEXP - check if a file system is exported to a clientSYNOPSIS
In sys/param.h In sys/mount.h Ft int Fn VFS_CHECKEXP struct mount *mp struct sockaddr *nam int *exflagsp struct ucred **credanonpDESCRIPTION
The Fn VFS_CHECKEXP macro is used by the NFS server to check if a mount point is exported to a client.The arguments it expects are:
- Fa mp
- The mount point to be checked.
- Fa nam
- An mbuf containing the network address of the client.
- Fa exflagsp
- Return parameter for the export flags for this client.
- Fa credanonp
- Return parameter for the anonymous credentials for this client.
The Fn VFS_CHECKEXP 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 Fa nam .
It is generally called before VFS_FHTOVP9 to validate that a client has access to the file system.
The file system should call vfs_export_lookup9 with the address of an appropriate Vt netexport structure and the address of the client, Fa nam , to verify that the client can access this file system.