MNTPROC_MNT - Add Mount Entry
- dirpath dirname;
- union fhstatus switch (unsigned status) { case 0: fhandle directory; default: void; };
fhandle is defined in
Basic Data Types .
- fhstatus MNTPROC_MNT(dirname) = 1;
If the reply status is 0, then the reply directory contains the file handle for the directory dirname.
This file handle may be used in the NFS protocol. This procedure also adds a new entry to the mount list for this client mounting dirname.
- MNT_OK
- Indicates that the call completed successfully and the results are valid.
- MNT_EPERM
- Indicates that the call failed because the mount server did
not have the required privileges to perform the mount. (Most implementations require that the mount server runs with UID 0.) This generally indicates a server configuration error.
- MNT_EACCES
- Indicates that the call failed because access to the specified
directory was denied. Either no directory in the path dirname is exported, or the client system is not permitted to mount this directory.
- MNT_ENOENT
- Indicates that the call failed because the specified directory
does not exist. If the server exports only /a/b, an attempt to mount /a/b/c will fail with ENOENT if the directory does not exist; on the other hand, an attempt to mount /a/x would fail with EACCES.
- MNT_EINVAL
- Indicates that the call failed because the mount daemon was
unable to translate the path into a file handle. This may indicate a server configuration error, or may occur if the directory is removed before the mount is complete.
Contents | Next section | Index |