2 * NFS protocol definitions
7 #include <linux/sunrpc/msg_prot.h>
10 #define NFS_MAXDATA 8192
11 #define NFS_MAXPATHLEN 1024
12 #define NFS_MAXNAMLEN 255
13 #define NFS_MAXGROUPS 16
15 #define NFS_COOKIESIZE 4
16 #define NFS_FIFO_DEV (-1)
17 #define NFSMODE_FMT 0170000
18 #define NFSMODE_DIR 0040000
19 #define NFSMODE_CHR 0020000
20 #define NFSMODE_BLK 0060000
21 #define NFSMODE_REG 0100000
22 #define NFSMODE_LNK 0120000
23 #define NFSMODE_SOCK 0140000
24 #define NFSMODE_FIFO 0010000
40 NFSERR_INVAL
= 22, /* that Sun forgot */
44 NFSERR_OPNOTSUPP
= 45,
45 NFSERR_NAMETOOLONG
= 63,
65 char data
[NFS_FHSIZE
];
68 #define NFS_PROGRAM 100003
70 #define NFSPROC_NULL 0
71 #define NFSPROC_GETATTR 1
72 #define NFSPROC_SETATTR 2
73 #define NFSPROC_ROOT 3
74 #define NFSPROC_LOOKUP 4
75 #define NFSPROC_READLINK 5
76 #define NFSPROC_READ 6
77 #define NFSPROC_WRITECACHE 7
78 #define NFSPROC_WRITE 8
79 #define NFSPROC_CREATE 9
80 #define NFSPROC_REMOVE 10
81 #define NFSPROC_RENAME 11
82 #define NFSPROC_LINK 12
83 #define NFSPROC_SYMLINK 13
84 #define NFSPROC_MKDIR 14
85 #define NFSPROC_RMDIR 15
86 #define NFSPROC_READDIR 16
87 #define NFSPROC_STATFS 17
89 /* Mount support for NFSroot */
91 #define NFS_MNT_PROGRAM 100005
92 #define NFS_MNT_VERSION 1
93 #define NFS_MNT_PORT 627
94 #define NFS_MNTPROC_MNT 1
95 #define NFS_MNTPROC_UMNT 3
98 #if defined(__KERNEL__) || defined(NFS_NEED_KERNEL_TYPES)
100 extern struct rpc_program nfs_program
;
101 extern struct rpc_stat nfs_rpcstat
;
120 struct nfs_time atime
;
121 struct nfs_time mtime
;
122 struct nfs_time ctime
;
133 struct nfs_writeargs
{
140 #ifdef NFS_NEED_XDR_TYPES
142 struct nfs_sattrargs
{
144 struct iattr
* sattr
;
147 struct nfs_diropargs
{
152 struct nfs_readlinkargs
{
157 struct nfs_readargs
{
164 struct nfs_createargs
{
167 struct iattr
* sattr
;
170 struct nfs_renameargs
{
171 struct nfs_fh
* fromfh
;
172 const char * fromname
;
173 struct nfs_fh
* tofh
;
177 struct nfs_linkargs
{
178 struct nfs_fh
* fromfh
;
179 struct nfs_fh
* tofh
;
183 struct nfs_symlinkargs
{
184 struct nfs_fh
* fromfh
;
185 const char * fromname
;
187 struct iattr
* sattr
;
190 struct nfs_readdirargs
{
199 struct nfs_fattr
* fattr
;
203 struct nfs_fattr
* fattr
;
207 struct nfs_readdirres
{
213 #endif /* NFS_NEED_XDR_TYPES */
214 #endif /* __KERNEL__ */