Previous section.

Protocols for Interworking: XNFS, Version 3W
Copyright © 1998 The Open Group


MNTPROC_MNT - Add Mount Entry

Call Arguments

dirpath dirname;

Return Arguments

union fhstatus switch (unsigned status) { case 0: fhandle directory; default: void; };

fhandle is defined in Basic Data Types .

RPC Procedure Description

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.

Return Codes

Indicates that the call completed successfully and the results are valid.

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.

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.

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.

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.

Why not acquire a nicely bound hard copy?
Click here to return to the publication details or order a copy of this publication.

Contents Next section Index