Here’s a quickie on the several RPC operations that NFS uses:
| File Operation | Responsible RPC Operation | RPC Operation Number |
|---|---|---|
| Do Nothing | NULL | 0 |
| Get file attributes | getattr | 1 |
| Set file attributes | setattr | 2 |
| Lookup File Name | lookup | 3 |
| Check Access Permissions | access | 4 |
| Read from a Symbolic Link | readlink | 5 |
| Read from a file | read | 6 |
| Write to a file | write | 7 |
| Create a File | create | 8 |
| Create a directory | mkdir | 9 |
| Create a Symbolic Link | symlink | 10 |
| Create a special device | mknod | 11 |
| Remove a file | remove | 12 |
| Remove a directory | rmdir | 13 |
| Rename a file | rename | 14 |
| Create a link to an object | link | 15 |
| Read from a directory | readdir | 16 |
| Extended Read from a directory | readdirplus | 17 |
| Get dynamic file system info | fsstat | 18 |
| Get static file system info | fsinfo | 19 |
| Retrieve POSIX info | pathconf | 20 |
| Commit cached data on a server to stable storage | commit | 21 |











