]> err.no Git - linux-2.6/blob - include/linux/nfs_xdr.h
6485b8b41b83789a896cb4608f94047e9a21d45b
[linux-2.6] / include / linux / nfs_xdr.h
1 #ifndef _LINUX_NFS_XDR_H
2 #define _LINUX_NFS_XDR_H
3
4 #include <linux/sunrpc/xprt.h>
5 #include <linux/nfsacl.h>
6
7 struct nfs4_fsid {
8         __u64 major;
9         __u64 minor;
10 };
11
12 struct 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 */
44         unsigned long           time_start;
45 };
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  */
56 struct 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
69 struct 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
79 struct 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
87 struct 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
93 struct nfs4_change_info {
94         u32                     atomic;
95         u64                     before;
96         u64                     after;
97 };
98
99 struct nfs_seqid;
100 /*
101  * Arguments to the open call.
102  */
103 struct nfs_openargs {
104         const struct nfs_fh *   fh;
105         struct nfs_seqid *      seqid;
106         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
121 struct 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;
127         struct nfs_fattr *      dir_attr;
128         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  */
138 struct nfs_open_confirmargs {
139         const struct nfs_fh *   fh;
140         nfs4_stateid            stateid;
141         struct nfs_seqid *      seqid;
142 };
143
144 struct nfs_open_confirmres {
145         nfs4_stateid            stateid;
146 };
147
148 /*
149  * Arguments to the close call.
150  */
151 struct nfs_closeargs {
152         struct nfs_fh *         fh;
153         nfs4_stateid *          stateid;
154         struct nfs_seqid *      seqid;
155         int                     open_flags;
156 };
157
158 struct nfs_closeres {
159         nfs4_stateid            stateid;
160 };
161 /*
162  *  * Arguments to the lock,lockt, and locku call.
163  *   */
164 struct nfs_lowner {
165         __u64           clientid;
166         u32                     id;
167 };
168
169 struct nfs_lock_opargs {
170         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;
175         __u32                   reclaim;
176         __u32                   new_lock_owner;
177 };
178
179 struct nfs_locku_opargs {
180         struct nfs_seqid *      seqid;
181         nfs4_stateid *          stateid;
182 };
183
184 struct 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
196 struct nfs_lock_denied {
197         __u64                   offset;
198         __u64                   length;
199         __u32                   type;
200         struct nfs_lowner       owner;
201 };
202
203 struct 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
211 struct 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
225 struct 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
234 struct 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
248 struct 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
258 struct nfs_writeverf {
259         enum nfs3_stable_how    committed;
260         __u32                   verifier[2];
261 };
262
263 struct 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  */
272 struct 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  */
286 struct nfs_sattrargs {
287         struct nfs_fh *         fh;
288         struct iattr *          sattr;
289 };
290
291 struct nfs_diropargs {
292         struct nfs_fh *         fh;
293         const char *            name;
294         unsigned int            len;
295 };
296
297 struct nfs_createargs {
298         struct nfs_fh *         fh;
299         const char *            name;
300         unsigned int            len;
301         struct iattr *          sattr;
302 };
303
304 struct 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
313 struct 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
321 struct nfs_setaclargs {
322         struct nfs_fh *                 fh;
323         size_t                          acl_len;
324         unsigned int                    acl_pgbase;
325         struct page **                  acl_pages;
326 };
327
328 struct nfs_getaclargs {
329         struct nfs_fh *                 fh;
330         size_t                          acl_len;
331         unsigned int                    acl_pgbase;
332         struct page **                  acl_pages;
333 };
334
335 struct nfs_setattrres {
336         struct nfs_fattr *              fattr;
337         const struct nfs_server *       server;
338 };
339
340 struct nfs_linkargs {
341         struct nfs_fh *         fromfh;
342         struct nfs_fh *         tofh;
343         const char *            toname;
344         unsigned int            tolen;
345 };
346
347 struct 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
356 struct nfs_readdirargs {
357         struct nfs_fh *         fh;
358         __u32                   cookie;
359         unsigned int            count;
360         struct page **          pages;
361 };
362
363 struct nfs3_getaclargs {
364         struct nfs_fh *         fh;
365         int                     mask;
366         struct page **          pages;
367 };
368
369 struct 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
377 struct nfs_diropok {
378         struct nfs_fh *         fh;
379         struct nfs_fattr *      fattr;
380 };
381
382 struct nfs_readlinkargs {
383         struct nfs_fh *         fh;
384         unsigned int            pgbase;
385         unsigned int            pglen;
386         struct page **          pages;
387 };
388
389 struct nfs3_sattrargs {
390         struct nfs_fh *         fh;
391         struct iattr *          sattr;
392         unsigned int            guard;
393         struct timespec         guardtime;
394 };
395
396 struct nfs3_diropargs {
397         struct nfs_fh *         fh;
398         const char *            name;
399         unsigned int            len;
400 };
401
402 struct nfs3_accessargs {
403         struct nfs_fh *         fh;
404         __u32                   access;
405 };
406
407 struct 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
416 struct nfs3_mkdirargs {
417         struct nfs_fh *         fh;
418         const char *            name;
419         unsigned int            len;
420         struct iattr *          sattr;
421 };
422
423 struct 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
432 struct 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
441 struct 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
450 struct nfs3_linkargs {
451         struct nfs_fh *         fromfh;
452         struct nfs_fh *         tofh;
453         const char *            toname;
454         unsigned int            tolen;
455 };
456
457 struct 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
466 struct nfs3_diropres {
467         struct nfs_fattr *      dir_attr;
468         struct nfs_fh *         fh;
469         struct nfs_fattr *      fattr;
470 };
471
472 struct nfs3_accessres {
473         struct nfs_fattr *      fattr;
474         __u32                   access;
475 };
476
477 struct nfs3_readlinkargs {
478         struct nfs_fh *         fh;
479         unsigned int            pgbase;
480         unsigned int            pglen;
481         struct page **          pages;
482 };
483
484 struct nfs3_renameres {
485         struct nfs_fattr *      fromattr;
486         struct nfs_fattr *      toattr;
487 };
488
489 struct nfs3_linkres {
490         struct nfs_fattr *      dir_attr;
491         struct nfs_fattr *      fattr;
492 };
493
494 struct nfs3_readdirres {
495         struct nfs_fattr *      dir_attr;
496         __u32 *                 verf;
497         int                     plus;
498 };
499
500 struct 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
509 #ifdef CONFIG_NFS_V4
510
511 typedef u64 clientid4;
512
513 struct nfs4_accessargs {
514         const struct nfs_fh *           fh;
515         u32                             access;
516 };
517
518 struct nfs4_accessres {
519         u32                             supported;
520         u32                             access;
521 };
522
523 struct 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
539 struct 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;
544         struct nfs_fattr *              dir_fattr;
545 };
546
547 struct nfs4_fsinfo_arg {
548         const struct nfs_fh *           fh;
549         const u32 *                     bitmask;
550 };
551
552 struct nfs4_getattr_arg {
553         const struct nfs_fh *           fh;
554         const u32 *                     bitmask;
555 };
556
557 struct nfs4_getattr_res {
558         const struct nfs_server *       server;
559         struct nfs_fattr *              fattr;
560 };
561
562 struct nfs4_link_arg {
563         const struct nfs_fh *           fh;
564         const struct nfs_fh *           dir_fh;
565         const struct qstr *             name;
566 };
567
568 struct nfs4_lookup_arg {
569         const struct nfs_fh *           dir_fh;
570         const struct qstr *             name;
571         const u32 *                     bitmask;
572 };
573
574 struct nfs4_lookup_res {
575         const struct nfs_server *       server;
576         struct nfs_fattr *              fattr;
577         struct nfs_fh *                 fh;
578 };
579
580 struct nfs4_lookup_root_arg {
581         const u32 *                     bitmask;
582 };
583
584 struct nfs4_pathconf_arg {
585         const struct nfs_fh *           fh;
586         const u32 *                     bitmask;
587 };
588
589 struct 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
599 struct nfs4_readdir_res {
600         nfs4_verifier                   verifier;
601         unsigned int                    pgbase;
602 };
603
604 struct 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
611 struct nfs4_remove_arg {
612         const struct nfs_fh *           fh;
613         const struct qstr *             name;
614 };
615
616 struct 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
623 struct nfs4_rename_res {
624         struct nfs4_change_info         old_cinfo;
625         struct nfs4_change_info         new_cinfo;
626 };
627
628 struct 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
640 struct nfs4_statfs_arg {
641         const struct nfs_fh *           fh;
642         const u32 *                     bitmask;
643 };
644
645 struct 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
654 struct nfs_page;
655
656 struct 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
673 struct 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
691 struct nfs_access_entry;
692
693 /*
694  * RPC procedure vector for NFSv2/NFSv3 demuxing
695  */
696 struct nfs_rpc_ops {
697         int     version;                /* Protocol version */
698         struct dentry_operations *dentry_ops;
699         struct inode_operations *dir_inode_ops;
700         struct inode_operations *file_inode_ops;
701
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 *,
717                             struct iattr *, int, struct nameidata *);
718         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 *);
747         void    (*clear_acl_cache)(struct inode *);
748 };
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  */
760 extern struct nfs_rpc_ops       nfs_v2_clientops;
761 extern struct nfs_rpc_ops       nfs_v3_clientops;
762 extern struct nfs_rpc_ops       nfs_v4_clientops;
763 extern struct rpc_version       nfs_version2;
764 extern struct rpc_version       nfs_version3;
765 extern struct rpc_version       nfs_version4;
766
767 extern struct rpc_version       nfsacl_version3;
768 extern struct rpc_program       nfsacl_program;
769
770 #endif