Open System Services NFS Overview

Basic Data Types
The following XDR definitions are basic structures and types used in other structures by the “Server
Procedures” (page 26).
stat
The stat() type is returned with every procedure’s results. A value of NFS_OK indicates that
the procedure call finished successfully and the results are valid. The other values indicate some
kind of error occurred on the server side during the execution of the procedure. The following
error values are derived from UNIX error numbers:
1 = NFSERR_PERM
Not owner. The caller does not have correct ownership to perform the requested operation.
2 = NFSERR_NOENT
No such file or directory. The specified file or directory does not exist.
5 = NFSERR_IO
Some sort of hardware or critical software error occurred when the operation was in
progress. This could be a disk error, for example.
6 = NFSERR_NXIO
No such device or address.
13 = NFSERR_ACCES
Permission denied. The caller does not have the correct permission to perform the requested
operation.
17 = NFSERR_EXIST
File exists. The specified file already exists.
19 = NFSERR_NODEV
No such device.
20 = NFSERR_NOTDIR
Not a directory. The caller specified a nondirectory in a directory operation.
21 = NFSERR_ISDIR
Is a directory. The caller specified a directory in a nondirectory operation.
27 = NFSERR_FBIG
File too large. The operation caused a file to grow beyond the server’s limit.
28 = NFSERR_NOSPC
No space left on device. The operation caused the server’s file system (fileset) to reach its
limit.
30 = NFSERR_ROFS
Read-only file system (fileset). A write was attempted on a read-only file system (fileset).
63 = NFSERR_NAMETOOLONG
Filename too long. The filename in an operation was too long.
66 = NFSERR_NOTEMPTY
Directory not empty. An attempt was made to remove a directory that was not empty.
70 = NFSERR_STALE
The “fhandle” given in the arguments was invalid. That is, the file referred to by that file
handle no longer exists, or access to it has been revoked.
filename
The type filename is used to pass filenames or pathname components.
path
The type path is a pathname. The server treats it as a string with no internal structure, but the
client treats it as the name of a node in a file-system tree.
NFS Protocol 25