Direct Maps

A direct map provides both mount point and NFS resources. Entries in a direct map consist of three fields:

> Key—The key is typically a full pathname that is to be used as a mount point.

> Mount options—The mount options field contains zero or more (comma-separated) NFS-specific mount options, as described in Table 15.3.

> NFS resource—The NFS resource files takes the form server:file system, which identifies a file system shared by the system server. Because more than one NFS server might be providing the same resource, multiple resources can be specified (separated by spaces). The first available resource is used.

The following listing shows the contents of the /etc/auto_direct file that is referenced in the /etc/auto_master file:

/usr/local/bin nfsserver:/usr/local/bin

/usr/games -ro nfsserver:/usr/games

In this example, the /usr/local/bin and /usr/games directories shared by the host named nfsserver are mounted on the local system under mount points using the same names.

The default name for the initial direct map is auto_direct.

0 0

Post a comment

  • Receive news updates via email from this site