FreeBSD 7.0 manual page repository

FreeBSD is a free computer operating system based on BSD UNIX originally. Many IT companies, like DeployIS is using it to provide an up-to-date, stable operating system.

VFS_CHECKEXP - check if a file system is exported to a client

 

NAME

      VFS_CHECKEXP - check if a file system is exported to a client
 

SYNOPSIS

      #include <sys/param.h>
      #include <sys/mount.h>
 
      int
      VFS_CHECKEXP(struct mount *mp, struct sockaddr *nam, int *exflagsp,
              struct ucred **credanonp);
 

DESCRIPTION

      The 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:
 
      mp         The mount point to be checked.
 
      nam        An mbuf containing the network address of the client.
 
      exflagsp   Return parameter for the export flags for this client.
 
      credanonp  Return parameter for the anonymous credentials for this
                 client.
 
      The VFS_CHECKEXP() macro should be called on a file system’s mount struc‐
      ture to determine if it is exported to a client whose address is con‐
      tained in nam.
 
      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.
      VFS(9), VFS_FHTOVP(9), VFS_VPTOFH(9), vnode(9)
 

AUTHORS

      This manual page was written by Alfred Perlstein.
 

Sections

Based on BSD UNIX
FreeBSD is an advanced operating system for x86 compatible (including Pentium and Athlon), amd64 compatible (including Opteron, Athlon64, and EM64T), UltraSPARC, IA-64, PC-98 and ARM architectures. It is derived from BSD, the version of UNIX developed at the University of California, Berkeley. It is developed and maintained by a large team of individuals. Additional platforms are in various stages of development.