Connected: An Internet Encyclopedia
RFC 1813 - 3. Server Procedures

Top: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1813
Prev: 2.6 Defined Error Numbers
Next: 3.1 General comments on attributes and consistency data on failure

### 3. Server Procedures

The following sections define the RPC procedures that are supplied by an NFS version 3 protocol server. The RPC procedure number is given at the top of the page with the name. The SYNOPSIS provides the name of the procedure, the list of the names of the arguments, the list of the names of the results, followed by the XDR argument declarations and results declarations. The information in the SYNOPSIS is specified in RPC Data Description Language as defined in [RFC1014]. The DESCRIPTION section tells what the procedure is expected to do and how its arguments and results are used. The ERRORS section lists the errors returned for specific types of failures. These lists are not intended to be the definitive statement of all of the errors which can be returned by any specific procedure, but as a guide for the more common errors which may be returned. Client implementations should be prepared to deal with unexpected errors coming from a server. The IMPLEMENTATION field gives information about how the procedure is expected to work and how it should be used by clients.

          program NFS_PROGRAM {
             version NFS_V3 {

                void
                 NFSPROC3_NULL(void)                    = 0;

                GETATTR3res
                 NFSPROC3_GETATTR(GETATTR3args)         = 1;

                SETATTR3res
                 NFSPROC3_SETATTR(SETATTR3args)         = 2;

                LOOKUP3res
                 NFSPROC3_LOOKUP(LOOKUP3args)           = 3;

                ACCESS3res
                 NFSPROC3_ACCESS(ACCESS3args)           = 4;

                READLINK3res
                 NFSPROC3_READLINK(READLINK3args)       = 5;

                READ3res
                 NFSPROC3_READ(READ3args)               = 6;

                WRITE3res
                 NFSPROC3_WRITE(WRITE3args)             = 7;

                CREATE3res
                 NFSPROC3_CREATE(CREATE3args)           = 8;

                MKDIR3res
                 NFSPROC3_MKDIR(MKDIR3args)             = 9;

                SYMLINK3res
                 NFSPROC3_SYMLINK(SYMLINK3args)         = 10;

                MKNOD3res
                 NFSPROC3_MKNOD(MKNOD3args)             = 11;

                REMOVE3res
                 NFSPROC3_REMOVE(REMOVE3args)           = 12;

                RMDIR3res
                 NFSPROC3_RMDIR(RMDIR3args)             = 13;

                RENAME3res
                 NFSPROC3_RENAME(RENAME3args)           = 14;

                LINK3res
                 NFSPROC3_LINK(LINK3args)               = 15;

                READDIR3res
                 NFSPROC3_READDIR(READDIR3args)         = 16;

                READDIRPLUS3res
                 NFSPROC3_READDIRPLUS(READDIRPLUS3args) = 17;

                FSSTAT3res
                 NFSPROC3_FSSTAT(FSSTAT3args)           = 18;

                FSINFO3res
                 NFSPROC3_FSINFO(FSINFO3args)           = 19;

                PATHCONF3res
                 NFSPROC3_PATHCONF(PATHCONF3args)       = 20;

                COMMIT3res
                 NFSPROC3_COMMIT(COMMIT3args)           = 21;

             } = 3;
          } = 100003;

Out of range (undefined) procedure numbers result in RPC errors. Refer to [RFC1057] for more detail.

3.1 General comments on attributes and consistency data on failure
3.2 General comments on filenames
3.3. Procedure Descriptions

3.3.0 Procedure 0: NULL - Do nothing
3.3.1 Procedure 1: GETATTR - Get file attributes
3.3.2 Procedure 2: SETATTR - Set file attributes
3.3.3 Procedure 3: LOOKUP - Lookup filename
3.3.4 Procedure 4: ACCESS - Check Access Permission
3.3.5 Procedure 5: READLINK - Read from symbolic link
3.3.6 Procedure 6: READ - Read From file
3.3.7 Procedure 7: WRITE - Write to file
3.3.8 Procedure 8: CREATE - Create a file
3.3.9 Procedure 9: MKDIR - Create a directory
3.3.10 Procedure 10: SYMLINK - Create a symbolic link
3.3.11 Procedure 11: MKNOD - Create a special device
3.3.12 Procedure 12: REMOVE - Remove a File
3.3.13 Procedure 13: RMDIR - Remove a Directory
3.3.14 Procedure 14: RENAME - Rename a File or Directory
3.3.15 Procedure 15: LINK - Create Link to an object
3.3.16 Procedure 16: READDIR - Read From Directory
3.3.17 Procedure 17: READDIRPLUS - Extended read from directory
3.3.18 Procedure 18: FSSTAT - Get dynamic file system information
3.3.19 Procedure 19: FSINFO - Get static file system Information
3.3.20 Procedure 20: PATHCONF - Retrieve POSIX information
3.3.21 Procedure 21: COMMIT - Commit cached data on a server to stable storage

Next: 3.1 General comments on attributes and consistency data on failure

Connected: An Internet Encyclopedia
RFC 1813 - 3. Server Procedures