Table 182: NFS Version 2 and Version 3Server Procedures
Procedure
# (v2)
|
Procedure
# (v3)
|
Procedure
Name
|
Procedure
Summary
|
Description
|
0
|
0
|
null
|
Do Nothing
|
Dummy procedure provided for
testing purposes.
|
1
|
1
|
getattr
|
Get
File Attributes
|
Retrieves the
attributes of a file on a remote server.
|
2
|
2
|
setattr
|
Set File Attributes
|
Sets (changes) the attributes
of a file on a remote server.
|
3
|
|
root
|
Get
Filesystem Root (obsolete)
|
This procedure
was originally defined to allow a client to find the root of a remote
file system, but is now obsolete. This function is instead now implemented
as part of the Mount
protocol. It was removed in NFSv3.
|
4
|
3
|
lookup
|
Look Up File
Name
|
Returns the file handle of a
file for the client to use.
|
5
|
5
|
readlink
|
Read
From Symbolic Link
|
Reads the name
of a file specified using a symbolic link.
|
6
|
6
|
read
|
Read From File
|
Reads data from a file.
|
7
|
|
writecache
|
Write
To Cache
|
Proposed for
future use in version 2 but abandoned and removed from version 3.
|
8
|
7
|
write
|
Write To File
|
Writes data to a file.
|
9
|
8
|
create
|
Create
File
|
Creates a file
on the server.
|
10
|
12
|
remove
|
Remove File
|
Deletes a file from the server.
|
11
|
14
|
rename
|
Rename
File
|
Changes the
name of a file.
|
12
|
15
|
link
|
Create Link
To File
|
Creates a hard' (non-symbolic)
link to a file.
|
13
|
10
|
symlink
|
Create
Symbolic Link
|
Creates a symbolic
link to a file.
|
14
|
9
|
mkdir
|
Create Directory
|
Creates a directory on the server.
|
15
|
13
|
rmdir
|
Remove
Directory
|
Deletes a directory.
|
16
|
16
|
readdir
|
Read From Directory
|
Reads the contents of a directory.
|
17
|
|
statfs
|
Get
File System Attributes
|
Provides to
the client general information about the remote file system, including
the size of the file system and the amount of free space remaining.
In NFSv3 this was replaced by fsstat and fsinfo.
|
|
4
|
access
|
Check Access
Permission
|
(New in NFSv3.) Determines the
access rights that a user has for a particular file system object.
|
|
11
|
mknod
|
Create
A Special Device
|
(New in NFSv3.)
Creates a special file such as a named pipe or device file.
|
|
17
|
readdirplus
|
Extended Read
From Directory
|
(New in NFSv3.) Retrieves additional
information from a directory.
|
|
18
|
fsstat
|
Get
Dynamic File System Information
|
(New in NFSv3.)
Returns volatile (dynamic) file system status information such as the
current amount of file system free space and the number of free file
slots.
|
|
19
|
fsinfo
|
Get Static File
System Information
|
(New in NFSv3.) Returns static
information about the file system, such as general data about how the
file system is used, and parameters for how requests to the server should
be structured.
|
|
20
|
pathconf
|
Retrieve
POSIX Information
|
(New in NFSv3.)
Retrieves additional information for a file or directory.
|
|
21
|
commit
|
Commit Cached
Data On A Server To Stable Storage
|
(New in NFSv3.) Flushes any data
that the server is holding in a write cache to storage. This is used
to ensure that any data that the client has sent to the server but that
the server has held pending write to storage is in fact written out.
|