z/OS UNIX System Services File System Interface Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Mounting a path name

z/OS UNIX System Services File System Interface Reference
SA23-2285-00

Initially, an end user at an NFS client mounts the path name of a directory that resides at the VFS server's system onto some mount point directory at the client. These mounts are often done automatically during the initialization of the user's workstation. The VFS server object that is mounted may be a regular file, rather than a directory, in which case information in Resolving the pathname of a file or directory does not apply. This topic describes only mounting a directory at the VFS server. This directory is referred to as the "initial directory."

The flow for an "NFS mount" is as follows:
  1. The initial directory path name is sent to the VFS server through the Mount remote procedure call (RPC).
  2. v_rpn() is called by the VFS server to resolve the path name from the RPC into: a VFS token for the path name object's file system; a vnode token for the object itself; and the file ID (FID) of the object.
  3. The VFS server builds a structure to represent and remember this mount operation.

    A unique "mount key" is constructed and saved in the structure. This may be, for example, an index number into a mount table array or a time stamp. It is used later to find the mount structure.

    The VFS token is saved in the mount structure.

  4. An NFS file handle is constructed from the FID, mount key, and other control information that is specific to this VFS server.
  5. Either the vnode token of the object is cached, or v_rel() is called to release it.
  6. The file handle of the object is returned to the client.

After this exchange, the client has a file handle for the initial directory that was mounted. This file handle is saved and associated with the local mount point. All end user references to files at or below the local mount point now refer to files in the VFS server's file hierarchy that are at or below the initial directory.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014