blob: 6485b8b41b83789a896cb4608f94047e9a21d45b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LINUX_NFS_XDR_H
2#define _LINUX_NFS_XDR_H
3
4#include <linux/sunrpc/xprt.h>
Andreas Gruenbacherb7fa0552005-06-22 17:16:27 +00005#include <linux/nfsacl.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
7struct nfs4_fsid {
8 __u64 major;
9 __u64 minor;
10};
11
12struct nfs_fattr {
13 unsigned short valid; /* which fields are valid */
14 __u64 pre_size; /* pre_op_attr.size */
15 struct timespec pre_mtime; /* pre_op_attr.mtime */
16 struct timespec pre_ctime; /* pre_op_attr.ctime */
17 enum nfs_ftype type; /* always use NFSv2 types */
18 __u32 mode;
19 __u32 nlink;
20 __u32 uid;
21 __u32 gid;
22 __u64 size;
23 union {
24 struct {
25 __u32 blocksize;
26 __u32 blocks;
27 } nfs2;
28 struct {
29 __u64 used;
30 } nfs3;
31 } du;
32 dev_t rdev;
33 union {
34 __u64 nfs3; /* also nfs2 */
35 struct nfs4_fsid nfs4;
36 } fsid_u;
37 __u64 fileid;
38 struct timespec atime;
39 struct timespec mtime;
40 struct timespec ctime;
41 __u32 bitmap[2]; /* NFSv4 returned attribute bitmap */
42 __u64 change_attr; /* NFSv4 change attribute */
43 __u64 pre_change_attr;/* pre-op NFSv4 change attribute */
Trond Myklebust33801142005-10-27 22:12:39 -040044 unsigned long time_start;
Linus Torvalds1da177e2005-04-16 15:20:36 -070045};
46
47#define NFS_ATTR_WCC 0x0001 /* pre-op WCC data */
48#define NFS_ATTR_FATTR 0x0002 /* post-op attributes */
49#define NFS_ATTR_FATTR_V3 0x0004 /* NFSv3 attributes */
50#define NFS_ATTR_FATTR_V4 0x0008
51#define NFS_ATTR_PRE_CHANGE 0x0010
52
53/*
54 * Info on the file system
55 */
56struct nfs_fsinfo {
57 struct nfs_fattr *fattr; /* Post-op attributes */
58 __u32 rtmax; /* max. read transfer size */
59 __u32 rtpref; /* pref. read transfer size */
60 __u32 rtmult; /* reads should be multiple of this */
61 __u32 wtmax; /* max. write transfer size */
62 __u32 wtpref; /* pref. write transfer size */
63 __u32 wtmult; /* writes should be multiple of this */
64 __u32 dtpref; /* pref. readdir transfer size */
65 __u64 maxfilesize;
66 __u32 lease_time; /* in seconds */
67};
68
69struct nfs_fsstat {
70 struct nfs_fattr *fattr; /* Post-op attributes */
71 __u64 tbytes; /* total size in bytes */
72 __u64 fbytes; /* # of free bytes */
73 __u64 abytes; /* # of bytes available to user */
74 __u64 tfiles; /* # of files */
75 __u64 ffiles; /* # of free files */
76 __u64 afiles; /* # of files available to user */
77};
78
79struct nfs2_fsstat {
80 __u32 tsize; /* Server transfer size */
81 __u32 bsize; /* Filesystem block size */
82 __u32 blocks; /* No. of "bsize" blocks on filesystem */
83 __u32 bfree; /* No. of free "bsize" blocks */
84 __u32 bavail; /* No. of available "bsize" blocks */
85};
86
87struct nfs_pathconf {
88 struct nfs_fattr *fattr; /* Post-op attributes */
89 __u32 max_link; /* max # of hard links */
90 __u32 max_namelen; /* max name length */
91};
92
93struct nfs4_change_info {
94 u32 atomic;
95 u64 before;
96 u64 after;
97};
98
Trond Myklebustcee54fc2005-10-18 14:20:12 -070099struct nfs_seqid;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100/*
101 * Arguments to the open call.
102 */
103struct nfs_openargs {
104 const struct nfs_fh * fh;
Trond Myklebustcee54fc2005-10-18 14:20:12 -0700105 struct nfs_seqid * seqid;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106 int open_flags;
107 __u64 clientid;
108 __u32 id;
109 union {
110 struct iattr * attrs; /* UNCHECKED, GUARDED */
111 nfs4_verifier verifier; /* EXCLUSIVE */
112 nfs4_stateid delegation; /* CLAIM_DELEGATE_CUR */
113 int delegation_type; /* CLAIM_PREVIOUS */
114 } u;
115 const struct qstr * name;
116 const struct nfs_server *server; /* Needed for ID mapping */
117 const u32 * bitmask;
118 __u32 claim;
119};
120
121struct nfs_openres {
122 nfs4_stateid stateid;
123 struct nfs_fh fh;
124 struct nfs4_change_info cinfo;
125 __u32 rflags;
126 struct nfs_fattr * f_attr;
Trond Myklebust56ae19f2005-10-27 22:12:40 -0400127 struct nfs_fattr * dir_attr;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128 const struct nfs_server *server;
129 int delegation_type;
130 nfs4_stateid delegation;
131 __u32 do_recall;
132 __u64 maxsize;
133};
134
135/*
136 * Arguments to the open_confirm call.
137 */
138struct nfs_open_confirmargs {
139 const struct nfs_fh * fh;
140 nfs4_stateid stateid;
Trond Myklebustcee54fc2005-10-18 14:20:12 -0700141 struct nfs_seqid * seqid;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142};
143
144struct nfs_open_confirmres {
145 nfs4_stateid stateid;
146};
147
148/*
149 * Arguments to the close call.
150 */
151struct nfs_closeargs {
152 struct nfs_fh * fh;
Trond Myklebust95121352005-10-18 14:20:12 -0700153 nfs4_stateid * stateid;
Trond Myklebustcee54fc2005-10-18 14:20:12 -0700154 struct nfs_seqid * seqid;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700155 int open_flags;
156};
157
158struct nfs_closeres {
159 nfs4_stateid stateid;
160};
161/*
162 * * Arguments to the lock,lockt, and locku call.
163 * */
164struct nfs_lowner {
165 __u64 clientid;
166 u32 id;
167};
168
Linus Torvalds1da177e2005-04-16 15:20:36 -0700169struct nfs_lock_opargs {
Trond Myklebust06735b32005-10-18 14:20:15 -0700170 struct nfs_seqid * lock_seqid;
171 nfs4_stateid * lock_stateid;
172 struct nfs_seqid * open_seqid;
173 nfs4_stateid * open_stateid;
174 struct nfs_lowner lock_owner;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700175 __u32 reclaim;
176 __u32 new_lock_owner;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700177};
178
179struct nfs_locku_opargs {
Trond Myklebustcee54fc2005-10-18 14:20:12 -0700180 struct nfs_seqid * seqid;
Trond Myklebustfaf5f492005-10-18 14:20:15 -0700181 nfs4_stateid * stateid;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700182};
183
184struct nfs_lockargs {
185 struct nfs_fh * fh;
186 __u32 type;
187 __u64 offset;
188 __u64 length;
189 union {
190 struct nfs_lock_opargs *lock; /* LOCK */
191 struct nfs_lowner *lockt; /* LOCKT */
192 struct nfs_locku_opargs *locku; /* LOCKU */
193 } u;
194};
195
196struct nfs_lock_denied {
197 __u64 offset;
198 __u64 length;
199 __u32 type;
200 struct nfs_lowner owner;
201};
202
203struct nfs_lockres {
204 union {
205 nfs4_stateid stateid;/* LOCK success, LOCKU */
206 struct nfs_lock_denied denied; /* LOCK failed, LOCKT success */
207 } u;
208 const struct nfs_server * server;
209};
210
211struct nfs4_delegreturnargs {
212 const struct nfs_fh *fhandle;
213 const nfs4_stateid *stateid;
214};
215
216/*
217 * Arguments to the read call.
218 */
219
220#define NFS_READ_MAXIOV (9U)
221#if (NFS_READ_MAXIOV > (MAX_IOVEC -2))
222#error "NFS_READ_MAXIOV is too large"
223#endif
224
225struct nfs_readargs {
226 struct nfs_fh * fh;
227 struct nfs_open_context *context;
228 __u64 offset;
229 __u32 count;
230 unsigned int pgbase;
231 struct page ** pages;
232};
233
234struct nfs_readres {
235 struct nfs_fattr * fattr;
236 __u32 count;
237 int eof;
238};
239
240/*
241 * Arguments to the write call.
242 */
243#define NFS_WRITE_MAXIOV (9U)
244#if (NFS_WRITE_MAXIOV > (MAX_IOVEC -2))
245#error "NFS_WRITE_MAXIOV is too large"
246#endif
247
248struct nfs_writeargs {
249 struct nfs_fh * fh;
250 struct nfs_open_context *context;
251 __u64 offset;
252 __u32 count;
253 enum nfs3_stable_how stable;
254 unsigned int pgbase;
255 struct page ** pages;
256};
257
258struct nfs_writeverf {
259 enum nfs3_stable_how committed;
260 __u32 verifier[2];
261};
262
263struct nfs_writeres {
264 struct nfs_fattr * fattr;
265 struct nfs_writeverf * verf;
266 __u32 count;
267};
268
269/*
270 * Argument struct for decode_entry function
271 */
272struct nfs_entry {
273 __u64 ino;
274 __u64 cookie,
275 prev_cookie;
276 const char * name;
277 unsigned int len;
278 int eof;
279 struct nfs_fh * fh;
280 struct nfs_fattr * fattr;
281};
282
283/*
284 * The following types are for NFSv2 only.
285 */
286struct nfs_sattrargs {
287 struct nfs_fh * fh;
288 struct iattr * sattr;
289};
290
291struct nfs_diropargs {
292 struct nfs_fh * fh;
293 const char * name;
294 unsigned int len;
295};
296
297struct nfs_createargs {
298 struct nfs_fh * fh;
299 const char * name;
300 unsigned int len;
301 struct iattr * sattr;
302};
303
304struct nfs_renameargs {
305 struct nfs_fh * fromfh;
306 const char * fromname;
307 unsigned int fromlen;
308 struct nfs_fh * tofh;
309 const char * toname;
310 unsigned int tolen;
311};
312
313struct nfs_setattrargs {
314 struct nfs_fh * fh;
315 nfs4_stateid stateid;
316 struct iattr * iap;
317 const struct nfs_server * server; /* Needed for name mapping */
318 const u32 * bitmask;
319};
320
J. Bruce Fields23ec6962005-06-22 17:16:22 +0000321struct nfs_setaclargs {
322 struct nfs_fh * fh;
323 size_t acl_len;
324 unsigned int acl_pgbase;
325 struct page ** acl_pages;
326};
327
J. Bruce Fields029d1052005-06-22 17:16:22 +0000328struct nfs_getaclargs {
329 struct nfs_fh * fh;
330 size_t acl_len;
331 unsigned int acl_pgbase;
332 struct page ** acl_pages;
333};
334
Linus Torvalds1da177e2005-04-16 15:20:36 -0700335struct nfs_setattrres {
336 struct nfs_fattr * fattr;
337 const struct nfs_server * server;
338};
339
340struct nfs_linkargs {
341 struct nfs_fh * fromfh;
342 struct nfs_fh * tofh;
343 const char * toname;
344 unsigned int tolen;
345};
346
347struct nfs_symlinkargs {
348 struct nfs_fh * fromfh;
349 const char * fromname;
350 unsigned int fromlen;
351 const char * topath;
352 unsigned int tolen;
353 struct iattr * sattr;
354};
355
356struct nfs_readdirargs {
357 struct nfs_fh * fh;
358 __u32 cookie;
359 unsigned int count;
360 struct page ** pages;
361};
362
Andreas Gruenbacherb7fa0552005-06-22 17:16:27 +0000363struct nfs3_getaclargs {
364 struct nfs_fh * fh;
365 int mask;
366 struct page ** pages;
367};
368
369struct nfs3_setaclargs {
370 struct inode * inode;
371 int mask;
372 struct posix_acl * acl_access;
373 struct posix_acl * acl_default;
374 struct page ** pages;
375};
376
Linus Torvalds1da177e2005-04-16 15:20:36 -0700377struct nfs_diropok {
378 struct nfs_fh * fh;
379 struct nfs_fattr * fattr;
380};
381
382struct nfs_readlinkargs {
383 struct nfs_fh * fh;
384 unsigned int pgbase;
385 unsigned int pglen;
386 struct page ** pages;
387};
388
389struct nfs3_sattrargs {
390 struct nfs_fh * fh;
391 struct iattr * sattr;
392 unsigned int guard;
393 struct timespec guardtime;
394};
395
396struct nfs3_diropargs {
397 struct nfs_fh * fh;
398 const char * name;
399 unsigned int len;
400};
401
402struct nfs3_accessargs {
403 struct nfs_fh * fh;
404 __u32 access;
405};
406
407struct nfs3_createargs {
408 struct nfs_fh * fh;
409 const char * name;
410 unsigned int len;
411 struct iattr * sattr;
412 enum nfs3_createmode createmode;
413 __u32 verifier[2];
414};
415
416struct nfs3_mkdirargs {
417 struct nfs_fh * fh;
418 const char * name;
419 unsigned int len;
420 struct iattr * sattr;
421};
422
423struct nfs3_symlinkargs {
424 struct nfs_fh * fromfh;
425 const char * fromname;
426 unsigned int fromlen;
427 const char * topath;
428 unsigned int tolen;
429 struct iattr * sattr;
430};
431
432struct nfs3_mknodargs {
433 struct nfs_fh * fh;
434 const char * name;
435 unsigned int len;
436 enum nfs3_ftype type;
437 struct iattr * sattr;
438 dev_t rdev;
439};
440
441struct nfs3_renameargs {
442 struct nfs_fh * fromfh;
443 const char * fromname;
444 unsigned int fromlen;
445 struct nfs_fh * tofh;
446 const char * toname;
447 unsigned int tolen;
448};
449
450struct nfs3_linkargs {
451 struct nfs_fh * fromfh;
452 struct nfs_fh * tofh;
453 const char * toname;
454 unsigned int tolen;
455};
456
457struct nfs3_readdirargs {
458 struct nfs_fh * fh;
459 __u64 cookie;
460 __u32 verf[2];
461 int plus;
462 unsigned int count;
463 struct page ** pages;
464};
465
466struct nfs3_diropres {
467 struct nfs_fattr * dir_attr;
468 struct nfs_fh * fh;
469 struct nfs_fattr * fattr;
470};
471
472struct nfs3_accessres {
473 struct nfs_fattr * fattr;
474 __u32 access;
475};
476
477struct nfs3_readlinkargs {
478 struct nfs_fh * fh;
479 unsigned int pgbase;
480 unsigned int pglen;
481 struct page ** pages;
482};
483
484struct nfs3_renameres {
485 struct nfs_fattr * fromattr;
486 struct nfs_fattr * toattr;
487};
488
489struct nfs3_linkres {
490 struct nfs_fattr * dir_attr;
491 struct nfs_fattr * fattr;
492};
493
494struct nfs3_readdirres {
495 struct nfs_fattr * dir_attr;
496 __u32 * verf;
497 int plus;
498};
499
Andreas Gruenbacherb7fa0552005-06-22 17:16:27 +0000500struct nfs3_getaclres {
501 struct nfs_fattr * fattr;
502 int mask;
503 unsigned int acl_access_count;
504 unsigned int acl_default_count;
505 struct posix_acl * acl_access;
506 struct posix_acl * acl_default;
507};
508
Linus Torvalds1da177e2005-04-16 15:20:36 -0700509#ifdef CONFIG_NFS_V4
510
511typedef u64 clientid4;
512
513struct nfs4_accessargs {
514 const struct nfs_fh * fh;
515 u32 access;
516};
517
518struct nfs4_accessres {
519 u32 supported;
520 u32 access;
521};
522
523struct nfs4_create_arg {
524 u32 ftype;
525 union {
526 struct qstr * symlink; /* NF4LNK */
527 struct {
528 u32 specdata1;
529 u32 specdata2;
530 } device; /* NF4BLK, NF4CHR */
531 } u;
532 const struct qstr * name;
533 const struct nfs_server * server;
534 const struct iattr * attrs;
535 const struct nfs_fh * dir_fh;
536 const u32 * bitmask;
537};
538
539struct nfs4_create_res {
540 const struct nfs_server * server;
541 struct nfs_fh * fh;
542 struct nfs_fattr * fattr;
543 struct nfs4_change_info dir_cinfo;
Trond Myklebust56ae19f2005-10-27 22:12:40 -0400544 struct nfs_fattr * dir_fattr;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700545};
546
547struct nfs4_fsinfo_arg {
548 const struct nfs_fh * fh;
549 const u32 * bitmask;
550};
551
552struct nfs4_getattr_arg {
553 const struct nfs_fh * fh;
554 const u32 * bitmask;
555};
556
557struct nfs4_getattr_res {
558 const struct nfs_server * server;
559 struct nfs_fattr * fattr;
560};
561
562struct nfs4_link_arg {
563 const struct nfs_fh * fh;
564 const struct nfs_fh * dir_fh;
565 const struct qstr * name;
566};
567
568struct nfs4_lookup_arg {
569 const struct nfs_fh * dir_fh;
570 const struct qstr * name;
571 const u32 * bitmask;
572};
573
574struct nfs4_lookup_res {
575 const struct nfs_server * server;
576 struct nfs_fattr * fattr;
577 struct nfs_fh * fh;
578};
579
580struct nfs4_lookup_root_arg {
581 const u32 * bitmask;
582};
583
584struct nfs4_pathconf_arg {
585 const struct nfs_fh * fh;
586 const u32 * bitmask;
587};
588
589struct nfs4_readdir_arg {
590 const struct nfs_fh * fh;
591 u64 cookie;
592 nfs4_verifier verifier;
593 u32 count;
594 struct page ** pages; /* zero-copy data */
595 unsigned int pgbase; /* zero-copy data */
596 const u32 * bitmask;
597};
598
599struct nfs4_readdir_res {
600 nfs4_verifier verifier;
601 unsigned int pgbase;
602};
603
604struct nfs4_readlink {
605 const struct nfs_fh * fh;
606 unsigned int pgbase;
607 unsigned int pglen; /* zero-copy data */
608 struct page ** pages; /* zero-copy data */
609};
610
611struct nfs4_remove_arg {
612 const struct nfs_fh * fh;
613 const struct qstr * name;
614};
615
616struct nfs4_rename_arg {
617 const struct nfs_fh * old_dir;
618 const struct nfs_fh * new_dir;
619 const struct qstr * old_name;
620 const struct qstr * new_name;
621};
622
623struct nfs4_rename_res {
624 struct nfs4_change_info old_cinfo;
625 struct nfs4_change_info new_cinfo;
626};
627
628struct nfs4_setclientid {
629 const nfs4_verifier * sc_verifier; /* request */
630 unsigned int sc_name_len;
631 char sc_name[32]; /* request */
632 u32 sc_prog; /* request */
633 unsigned int sc_netid_len;
634 char sc_netid[4]; /* request */
635 unsigned int sc_uaddr_len;
636 char sc_uaddr[24]; /* request */
637 u32 sc_cb_ident; /* request */
638};
639
640struct nfs4_statfs_arg {
641 const struct nfs_fh * fh;
642 const u32 * bitmask;
643};
644
645struct nfs4_server_caps_res {
646 u32 attr_bitmask[2];
647 u32 acl_bitmask;
648 u32 has_links;
649 u32 has_symlinks;
650};
651
652#endif /* CONFIG_NFS_V4 */
653
654struct nfs_page;
655
656struct nfs_read_data {
657 int flags;
658 struct rpc_task task;
659 struct inode *inode;
660 struct rpc_cred *cred;
661 struct nfs_fattr fattr; /* fattr storage */
662 struct list_head pages; /* Coalesced read requests */
663 struct nfs_page *req; /* multi ops per nfs_page */
664 struct page *pagevec[NFS_READ_MAXIOV];
665 struct nfs_readargs args;
666 struct nfs_readres res;
667#ifdef CONFIG_NFS_V4
668 unsigned long timestamp; /* For lease renewal */
669#endif
670 void (*complete) (struct nfs_read_data *, int);
671};
672
673struct nfs_write_data {
674 int flags;
675 struct rpc_task task;
676 struct inode *inode;
677 struct rpc_cred *cred;
678 struct nfs_fattr fattr;
679 struct nfs_writeverf verf;
680 struct list_head pages; /* Coalesced requests we wish to flush */
681 struct nfs_page *req; /* multi ops per nfs_page */
682 struct page *pagevec[NFS_WRITE_MAXIOV];
683 struct nfs_writeargs args; /* argument struct */
684 struct nfs_writeres res; /* result struct */
685#ifdef CONFIG_NFS_V4
686 unsigned long timestamp; /* For lease renewal */
687#endif
688 void (*complete) (struct nfs_write_data *, int);
689};
690
691struct nfs_access_entry;
692
693/*
694 * RPC procedure vector for NFSv2/NFSv3 demuxing
695 */
696struct nfs_rpc_ops {
697 int version; /* Protocol version */
698 struct dentry_operations *dentry_ops;
699 struct inode_operations *dir_inode_ops;
J. Bruce Fields92cfc622005-06-22 17:16:22 +0000700 struct inode_operations *file_inode_ops;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700701
702 int (*getroot) (struct nfs_server *, struct nfs_fh *,
703 struct nfs_fsinfo *);
704 int (*getattr) (struct nfs_server *, struct nfs_fh *,
705 struct nfs_fattr *);
706 int (*setattr) (struct dentry *, struct nfs_fattr *,
707 struct iattr *);
708 int (*lookup) (struct inode *, struct qstr *,
709 struct nfs_fh *, struct nfs_fattr *);
710 int (*access) (struct inode *, struct nfs_access_entry *);
711 int (*readlink)(struct inode *, struct page *, unsigned int,
712 unsigned int);
713 int (*read) (struct nfs_read_data *);
714 int (*write) (struct nfs_write_data *);
715 int (*commit) (struct nfs_write_data *);
716 int (*create) (struct inode *, struct dentry *,
Trond Myklebust02a913a2005-10-18 14:20:17 -0700717 struct iattr *, int, struct nameidata *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700718 int (*remove) (struct inode *, struct qstr *);
719 int (*unlink_setup) (struct rpc_message *,
720 struct dentry *, struct qstr *);
721 int (*unlink_done) (struct dentry *, struct rpc_task *);
722 int (*rename) (struct inode *, struct qstr *,
723 struct inode *, struct qstr *);
724 int (*link) (struct inode *, struct inode *, struct qstr *);
725 int (*symlink) (struct inode *, struct qstr *, struct qstr *,
726 struct iattr *, struct nfs_fh *,
727 struct nfs_fattr *);
728 int (*mkdir) (struct inode *, struct dentry *, struct iattr *);
729 int (*rmdir) (struct inode *, struct qstr *);
730 int (*readdir) (struct dentry *, struct rpc_cred *,
731 u64, struct page *, unsigned int, int);
732 int (*mknod) (struct inode *, struct dentry *, struct iattr *,
733 dev_t);
734 int (*statfs) (struct nfs_server *, struct nfs_fh *,
735 struct nfs_fsstat *);
736 int (*fsinfo) (struct nfs_server *, struct nfs_fh *,
737 struct nfs_fsinfo *);
738 int (*pathconf) (struct nfs_server *, struct nfs_fh *,
739 struct nfs_pathconf *);
740 u32 * (*decode_dirent)(u32 *, struct nfs_entry *, int plus);
741 void (*read_setup) (struct nfs_read_data *);
742 void (*write_setup) (struct nfs_write_data *, int how);
743 void (*commit_setup) (struct nfs_write_data *, int how);
744 int (*file_open) (struct inode *, struct file *);
745 int (*file_release) (struct inode *, struct file *);
746 int (*lock)(struct file *, int, struct file_lock *);
Trond Myklebustada70d92005-06-22 17:16:22 +0000747 void (*clear_acl_cache)(struct inode *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700748};
749
750/*
751 * NFS_CALL(getattr, inode, (fattr));
752 * into
753 * NFS_PROTO(inode)->getattr(fattr);
754 */
755#define NFS_CALL(op, inode, args) NFS_PROTO(inode)->op args
756
757/*
758 * Function vectors etc. for the NFS client
759 */
760extern struct nfs_rpc_ops nfs_v2_clientops;
761extern struct nfs_rpc_ops nfs_v3_clientops;
762extern struct nfs_rpc_ops nfs_v4_clientops;
763extern struct rpc_version nfs_version2;
764extern struct rpc_version nfs_version3;
765extern struct rpc_version nfs_version4;
766
Andreas Gruenbacherb7fa0552005-06-22 17:16:27 +0000767extern struct rpc_version nfsacl_version3;
768extern struct rpc_program nfsacl_program;
769
Linus Torvalds1da177e2005-04-16 15:20:36 -0700770#endif