1 #ifndef _LINUX_NFS_XDR_H
2 #define _LINUX_NFS_XDR_H
4 #include <linux/nfsacl.h>
7 * To change the maximum rsize and wsize supported by the NFS client, adjust
8 * NFS_MAX_FILE_IO_SIZE. 64KB is a typical maximum, but some servers can
9 * support a megabyte or more. The default is left at 4096 bytes, which is
10 * reasonable for NFS over UDP.
12 #define NFS_MAX_FILE_IO_SIZE (1048576U)
13 #define NFS_DEF_FILE_IO_SIZE (4096U)
14 #define NFS_MIN_FILE_IO_SIZE (1024U)
22 * Helper for checking equality between 2 fsids.
24 static inline int nfs_fsid_equal(const struct nfs_fsid *a, const struct nfs_fsid *b)
26 return a->major == b->major && a->minor == b->minor;
30 unsigned int valid; /* which fields are valid */
48 struct timespec atime;
49 struct timespec mtime;
50 struct timespec ctime;
51 __u64 change_attr; /* NFSv4 change attribute */
52 __u64 pre_change_attr;/* pre-op NFSv4 change attribute */
53 __u64 pre_size; /* pre_op_attr.size */
54 struct timespec pre_mtime; /* pre_op_attr.mtime */
55 struct timespec pre_ctime; /* pre_op_attr.ctime */
56 unsigned long time_start;
57 unsigned long gencount;
60 #define NFS_ATTR_FATTR_TYPE (1U << 0)
61 #define NFS_ATTR_FATTR_MODE (1U << 1)
62 #define NFS_ATTR_FATTR_NLINK (1U << 2)
63 #define NFS_ATTR_FATTR_OWNER (1U << 3)
64 #define NFS_ATTR_FATTR_GROUP (1U << 4)
65 #define NFS_ATTR_FATTR_RDEV (1U << 5)
66 #define NFS_ATTR_FATTR_SIZE (1U << 6)
67 #define NFS_ATTR_FATTR_PRESIZE (1U << 7)
68 #define NFS_ATTR_FATTR_BLOCKS_USED (1U << 8)
69 #define NFS_ATTR_FATTR_SPACE_USED (1U << 9)
70 #define NFS_ATTR_FATTR_FSID (1U << 10)
71 #define NFS_ATTR_FATTR_FILEID (1U << 11)
72 #define NFS_ATTR_FATTR_ATIME (1U << 12)
73 #define NFS_ATTR_FATTR_MTIME (1U << 13)
74 #define NFS_ATTR_FATTR_CTIME (1U << 14)
75 #define NFS_ATTR_FATTR_PREMTIME (1U << 15)
76 #define NFS_ATTR_FATTR_PRECTIME (1U << 16)
77 #define NFS_ATTR_FATTR_CHANGE (1U << 17)
78 #define NFS_ATTR_FATTR_PRECHANGE (1U << 18)
79 #define NFS_ATTR_FATTR_V4_REFERRAL (1U << 19) /* NFSv4 referral */
81 #define NFS_ATTR_FATTR (NFS_ATTR_FATTR_TYPE \
82 | NFS_ATTR_FATTR_MODE \
83 | NFS_ATTR_FATTR_NLINK \
84 | NFS_ATTR_FATTR_OWNER \
85 | NFS_ATTR_FATTR_GROUP \
86 | NFS_ATTR_FATTR_RDEV \
87 | NFS_ATTR_FATTR_SIZE \
88 | NFS_ATTR_FATTR_FSID \
89 | NFS_ATTR_FATTR_FILEID \
90 | NFS_ATTR_FATTR_ATIME \
91 | NFS_ATTR_FATTR_MTIME \
92 | NFS_ATTR_FATTR_CTIME)
93 #define NFS_ATTR_FATTR_V2 (NFS_ATTR_FATTR \
94 | NFS_ATTR_FATTR_BLOCKS_USED)
95 #define NFS_ATTR_FATTR_V3 (NFS_ATTR_FATTR \
96 | NFS_ATTR_FATTR_SPACE_USED)
97 #define NFS_ATTR_FATTR_V4 (NFS_ATTR_FATTR \
98 | NFS_ATTR_FATTR_SPACE_USED \
99 | NFS_ATTR_FATTR_CHANGE)
102 * Info on the file system
105 struct nfs_fattr *fattr; /* Post-op attributes */
106 __u32 rtmax; /* max. read transfer size */
107 __u32 rtpref; /* pref. read transfer size */
108 __u32 rtmult; /* reads should be multiple of this */
109 __u32 wtmax; /* max. write transfer size */
110 __u32 wtpref; /* pref. write transfer size */
111 __u32 wtmult; /* writes should be multiple of this */
112 __u32 dtpref; /* pref. readdir transfer size */
114 __u32 lease_time; /* in seconds */
118 struct nfs_fattr *fattr; /* Post-op attributes */
119 __u64 tbytes; /* total size in bytes */
120 __u64 fbytes; /* # of free bytes */
121 __u64 abytes; /* # of bytes available to user */
122 __u64 tfiles; /* # of files */
123 __u64 ffiles; /* # of free files */
124 __u64 afiles; /* # of files available to user */
128 __u32 tsize; /* Server transfer size */
129 __u32 bsize; /* Filesystem block size */
130 __u32 blocks; /* No. of "bsize" blocks on filesystem */
131 __u32 bfree; /* No. of free "bsize" blocks */
132 __u32 bavail; /* No. of available "bsize" blocks */
135 struct nfs_pathconf {
136 struct nfs_fattr *fattr; /* Post-op attributes */
137 __u32 max_link; /* max # of hard links */
138 __u32 max_namelen; /* max name length */
141 struct nfs4_change_info {
149 /* nfs41 sessions channel attributes */
150 struct nfs4_channel_attrs {
154 u32 max_resp_sz_cached;
159 /* nfs41 sessions slot seqid */
164 struct nfs4_sequence_args {
165 struct nfs4_session *sa_session;
170 struct nfs4_sequence_res {
171 struct nfs4_session *sr_session;
172 u8 sr_slotid; /* slot used to send request */
173 unsigned long sr_renewal_time;
174 int sr_status; /* sequence operation status */
178 * Arguments to the open call.
180 struct nfs_openargs {
181 const struct nfs_fh * fh;
182 struct nfs_seqid * seqid;
188 struct iattr * attrs; /* UNCHECKED, GUARDED */
189 nfs4_verifier verifier; /* EXCLUSIVE */
190 nfs4_stateid delegation; /* CLAIM_DELEGATE_CUR */
191 fmode_t delegation_type; /* CLAIM_PREVIOUS */
193 const struct qstr * name;
194 const struct nfs_server *server; /* Needed for ID mapping */
197 struct nfs4_sequence_args seq_args;
201 nfs4_stateid stateid;
203 struct nfs4_change_info cinfo;
205 struct nfs_fattr * f_attr;
206 struct nfs_fattr * dir_attr;
207 struct nfs_seqid * seqid;
208 const struct nfs_server *server;
209 fmode_t delegation_type;
210 nfs4_stateid delegation;
213 __u32 attrset[NFS4_BITMAP_SIZE];
214 struct nfs4_sequence_res seq_res;
218 * Arguments to the open_confirm call.
220 struct nfs_open_confirmargs {
221 const struct nfs_fh * fh;
222 nfs4_stateid * stateid;
223 struct nfs_seqid * seqid;
226 struct nfs_open_confirmres {
227 nfs4_stateid stateid;
228 struct nfs_seqid * seqid;
232 * Arguments to the close call.
234 struct nfs_closeargs {
236 nfs4_stateid * stateid;
237 struct nfs_seqid * seqid;
240 struct nfs4_sequence_args seq_args;
243 struct nfs_closeres {
244 nfs4_stateid stateid;
245 struct nfs_fattr * fattr;
246 struct nfs_seqid * seqid;
247 const struct nfs_server *server;
248 struct nfs4_sequence_res seq_res;
251 * * Arguments to the lock,lockt, and locku call.
258 struct nfs_lock_args {
260 struct file_lock * fl;
261 struct nfs_seqid * lock_seqid;
262 nfs4_stateid * lock_stateid;
263 struct nfs_seqid * open_seqid;
264 nfs4_stateid * open_stateid;
265 struct nfs_lowner lock_owner;
266 unsigned char block : 1;
267 unsigned char reclaim : 1;
268 unsigned char new_lock_owner : 1;
269 struct nfs4_sequence_args seq_args;
272 struct nfs_lock_res {
273 nfs4_stateid stateid;
274 struct nfs_seqid * lock_seqid;
275 struct nfs_seqid * open_seqid;
276 struct nfs4_sequence_res seq_res;
279 struct nfs_locku_args {
281 struct file_lock * fl;
282 struct nfs_seqid * seqid;
283 nfs4_stateid * stateid;
284 struct nfs4_sequence_args seq_args;
287 struct nfs_locku_res {
288 nfs4_stateid stateid;
289 struct nfs_seqid * seqid;
290 struct nfs4_sequence_res seq_res;
293 struct nfs_lockt_args {
295 struct file_lock * fl;
296 struct nfs_lowner lock_owner;
297 struct nfs4_sequence_args seq_args;
300 struct nfs_lockt_res {
301 struct file_lock * denied; /* LOCK, LOCKT failed */
302 struct nfs4_sequence_res seq_res;
305 struct nfs4_delegreturnargs {
306 const struct nfs_fh *fhandle;
307 const nfs4_stateid *stateid;
309 struct nfs4_sequence_args seq_args;
312 struct nfs4_delegreturnres {
313 struct nfs_fattr * fattr;
314 const struct nfs_server *server;
315 struct nfs4_sequence_res seq_res;
319 * Arguments to the read call.
321 struct nfs_readargs {
323 struct nfs_open_context *context;
327 struct page ** pages;
328 struct nfs4_sequence_args seq_args;
332 struct nfs_fattr * fattr;
335 struct nfs4_sequence_res seq_res;
339 * Arguments to the write call.
341 struct nfs_writeargs {
343 struct nfs_open_context *context;
346 enum nfs3_stable_how stable;
348 struct page ** pages;
350 struct nfs4_sequence_args seq_args;
353 struct nfs_writeverf {
354 enum nfs3_stable_how committed;
358 struct nfs_writeres {
359 struct nfs_fattr * fattr;
360 struct nfs_writeverf * verf;
362 const struct nfs_server *server;
363 struct nfs4_sequence_res seq_res;
367 * Common arguments to the unlink call
369 struct nfs_removeargs {
370 const struct nfs_fh *fh;
373 struct nfs4_sequence_args seq_args;
376 struct nfs_removeres {
377 const struct nfs_server *server;
378 struct nfs4_change_info cinfo;
379 struct nfs_fattr dir_attr;
380 struct nfs4_sequence_res seq_res;
384 * Argument struct for decode_entry function
394 struct nfs_fattr * fattr;
398 * The following types are for NFSv2 only.
400 struct nfs_sattrargs {
402 struct iattr * sattr;
405 struct nfs_diropargs {
411 struct nfs_createargs {
415 struct iattr * sattr;
418 struct nfs_renameargs {
419 struct nfs_fh * fromfh;
420 const char * fromname;
421 unsigned int fromlen;
422 struct nfs_fh * tofh;
427 struct nfs_setattrargs {
429 nfs4_stateid stateid;
431 const struct nfs_server * server; /* Needed for name mapping */
433 struct nfs4_sequence_args seq_args;
436 struct nfs_setaclargs {
439 unsigned int acl_pgbase;
440 struct page ** acl_pages;
441 struct nfs4_sequence_args seq_args;
444 struct nfs_setaclres {
445 struct nfs4_sequence_res seq_res;
448 struct nfs_getaclargs {
451 unsigned int acl_pgbase;
452 struct page ** acl_pages;
453 struct nfs4_sequence_args seq_args;
456 struct nfs_getaclres {
458 struct nfs4_sequence_res seq_res;
461 struct nfs_setattrres {
462 struct nfs_fattr * fattr;
463 const struct nfs_server * server;
464 struct nfs4_sequence_res seq_res;
467 struct nfs_linkargs {
468 struct nfs_fh * fromfh;
469 struct nfs_fh * tofh;
474 struct nfs_symlinkargs {
475 struct nfs_fh * fromfh;
476 const char * fromname;
477 unsigned int fromlen;
478 struct page ** pages;
479 unsigned int pathlen;
480 struct iattr * sattr;
483 struct nfs_readdirargs {
487 struct page ** pages;
490 struct nfs3_getaclargs {
493 struct page ** pages;
496 struct nfs3_setaclargs {
497 struct inode * inode;
499 struct posix_acl * acl_access;
500 struct posix_acl * acl_default;
503 struct page ** pages;
508 struct nfs_fattr * fattr;
511 struct nfs_readlinkargs {
515 struct page ** pages;
518 struct nfs3_sattrargs {
520 struct iattr * sattr;
522 struct timespec guardtime;
525 struct nfs3_diropargs {
531 struct nfs3_accessargs {
536 struct nfs3_createargs {
540 struct iattr * sattr;
541 enum nfs3_createmode createmode;
545 struct nfs3_mkdirargs {
549 struct iattr * sattr;
552 struct nfs3_symlinkargs {
553 struct nfs_fh * fromfh;
554 const char * fromname;
555 unsigned int fromlen;
556 struct page ** pages;
557 unsigned int pathlen;
558 struct iattr * sattr;
561 struct nfs3_mknodargs {
565 enum nfs3_ftype type;
566 struct iattr * sattr;
570 struct nfs3_renameargs {
571 struct nfs_fh * fromfh;
572 const char * fromname;
573 unsigned int fromlen;
574 struct nfs_fh * tofh;
579 struct nfs3_linkargs {
580 struct nfs_fh * fromfh;
581 struct nfs_fh * tofh;
586 struct nfs3_readdirargs {
592 struct page ** pages;
595 struct nfs3_diropres {
596 struct nfs_fattr * dir_attr;
598 struct nfs_fattr * fattr;
601 struct nfs3_accessres {
602 struct nfs_fattr * fattr;
606 struct nfs3_readlinkargs {
610 struct page ** pages;
613 struct nfs3_renameres {
614 struct nfs_fattr * fromattr;
615 struct nfs_fattr * toattr;
618 struct nfs3_linkres {
619 struct nfs_fattr * dir_attr;
620 struct nfs_fattr * fattr;
623 struct nfs3_readdirres {
624 struct nfs_fattr * dir_attr;
629 struct nfs3_getaclres {
630 struct nfs_fattr * fattr;
632 unsigned int acl_access_count;
633 unsigned int acl_default_count;
634 struct posix_acl * acl_access;
635 struct posix_acl * acl_default;
640 typedef u64 clientid4;
642 struct nfs4_accessargs {
643 const struct nfs_fh * fh;
646 struct nfs4_sequence_args seq_args;
649 struct nfs4_accessres {
650 const struct nfs_server * server;
651 struct nfs_fattr * fattr;
654 struct nfs4_sequence_res seq_res;
657 struct nfs4_create_arg {
661 struct page ** pages;
663 } symlink; /* NF4LNK */
667 } device; /* NF4BLK, NF4CHR */
669 const struct qstr * name;
670 const struct nfs_server * server;
671 const struct iattr * attrs;
672 const struct nfs_fh * dir_fh;
674 struct nfs4_sequence_args seq_args;
677 struct nfs4_create_res {
678 const struct nfs_server * server;
680 struct nfs_fattr * fattr;
681 struct nfs4_change_info dir_cinfo;
682 struct nfs_fattr * dir_fattr;
683 struct nfs4_sequence_res seq_res;
686 struct nfs4_fsinfo_arg {
687 const struct nfs_fh * fh;
689 struct nfs4_sequence_args seq_args;
692 struct nfs4_fsinfo_res {
693 struct nfs_fsinfo *fsinfo;
694 struct nfs4_sequence_res seq_res;
697 struct nfs4_getattr_arg {
698 const struct nfs_fh * fh;
700 struct nfs4_sequence_args seq_args;
703 struct nfs4_getattr_res {
704 const struct nfs_server * server;
705 struct nfs_fattr * fattr;
706 struct nfs4_sequence_res seq_res;
709 struct nfs4_link_arg {
710 const struct nfs_fh * fh;
711 const struct nfs_fh * dir_fh;
712 const struct qstr * name;
714 struct nfs4_sequence_args seq_args;
717 struct nfs4_link_res {
718 const struct nfs_server * server;
719 struct nfs_fattr * fattr;
720 struct nfs4_change_info cinfo;
721 struct nfs_fattr * dir_attr;
722 struct nfs4_sequence_res seq_res;
726 struct nfs4_lookup_arg {
727 const struct nfs_fh * dir_fh;
728 const struct qstr * name;
730 struct nfs4_sequence_args seq_args;
733 struct nfs4_lookup_res {
734 const struct nfs_server * server;
735 struct nfs_fattr * fattr;
737 struct nfs4_sequence_res seq_res;
740 struct nfs4_lookup_root_arg {
742 struct nfs4_sequence_args seq_args;
745 struct nfs4_pathconf_arg {
746 const struct nfs_fh * fh;
748 struct nfs4_sequence_args seq_args;
751 struct nfs4_pathconf_res {
752 struct nfs_pathconf *pathconf;
753 struct nfs4_sequence_res seq_res;
756 struct nfs4_readdir_arg {
757 const struct nfs_fh * fh;
759 nfs4_verifier verifier;
761 struct page ** pages; /* zero-copy data */
762 unsigned int pgbase; /* zero-copy data */
764 struct nfs4_sequence_args seq_args;
767 struct nfs4_readdir_res {
768 nfs4_verifier verifier;
770 struct nfs4_sequence_res seq_res;
773 struct nfs4_readlink {
774 const struct nfs_fh * fh;
776 unsigned int pglen; /* zero-copy data */
777 struct page ** pages; /* zero-copy data */
778 struct nfs4_sequence_args seq_args;
781 struct nfs4_readlink_res {
782 struct nfs4_sequence_res seq_res;
785 struct nfs4_rename_arg {
786 const struct nfs_fh * old_dir;
787 const struct nfs_fh * new_dir;
788 const struct qstr * old_name;
789 const struct qstr * new_name;
791 struct nfs4_sequence_args seq_args;
794 struct nfs4_rename_res {
795 const struct nfs_server * server;
796 struct nfs4_change_info old_cinfo;
797 struct nfs_fattr * old_fattr;
798 struct nfs4_change_info new_cinfo;
799 struct nfs_fattr * new_fattr;
800 struct nfs4_sequence_res seq_res;
803 #define NFS4_SETCLIENTID_NAMELEN (127)
804 struct nfs4_setclientid {
805 const nfs4_verifier * sc_verifier;
806 unsigned int sc_name_len;
807 char sc_name[NFS4_SETCLIENTID_NAMELEN + 1];
809 unsigned int sc_netid_len;
810 char sc_netid[RPCBIND_MAXNETIDLEN + 1];
811 unsigned int sc_uaddr_len;
812 char sc_uaddr[RPCBIND_MAXUADDRLEN + 1];
816 struct nfs4_statfs_arg {
817 const struct nfs_fh * fh;
819 struct nfs4_sequence_args seq_args;
822 struct nfs4_statfs_res {
823 struct nfs_fsstat *fsstat;
824 struct nfs4_sequence_res seq_res;
827 struct nfs4_server_caps_arg {
828 struct nfs_fh *fhandle;
829 struct nfs4_sequence_args seq_args;
832 struct nfs4_server_caps_res {
837 struct nfs4_sequence_res seq_res;
845 #define NFS4_PATHNAME_MAXCOMPONENTS 512
846 struct nfs4_pathname {
847 unsigned int ncomponents;
848 struct nfs4_string components[NFS4_PATHNAME_MAXCOMPONENTS];
851 #define NFS4_FS_LOCATION_MAXSERVERS 10
852 struct nfs4_fs_location {
853 unsigned int nservers;
854 struct nfs4_string servers[NFS4_FS_LOCATION_MAXSERVERS];
855 struct nfs4_pathname rootpath;
858 #define NFS4_FS_LOCATIONS_MAXENTRIES 10
859 struct nfs4_fs_locations {
860 struct nfs_fattr fattr;
861 const struct nfs_server *server;
862 struct nfs4_pathname fs_path;
864 struct nfs4_fs_location locations[NFS4_FS_LOCATIONS_MAXENTRIES];
867 struct nfs4_fs_locations_arg {
868 const struct nfs_fh *dir_fh;
869 const struct qstr *name;
872 struct nfs4_sequence_args seq_args;
875 struct nfs4_fs_locations_res {
876 struct nfs4_fs_locations *fs_locations;
877 struct nfs4_sequence_res seq_res;
880 #endif /* CONFIG_NFS_V4 */
887 #ifdef CONFIG_NFS_V4_1
888 struct nfs_impl_id4 {
893 struct nfstime4 date;
896 #define NFS4_EXCHANGE_ID_LEN (48)
897 struct nfs41_exchange_id_args {
898 struct nfs_client *client;
899 nfs4_verifier *verifier;
901 char id[NFS4_EXCHANGE_ID_LEN];
905 struct server_owner {
907 uint32_t major_id_sz;
908 char major_id[NFS4_OPAQUE_LIMIT];
911 struct server_scope {
912 uint32_t server_scope_sz;
913 char server_scope[NFS4_OPAQUE_LIMIT];
916 struct nfs41_exchange_id_res {
917 struct nfs_client *client;
920 #endif /* CONFIG_NFS_V4_1 */
924 #define NFS_PAGEVEC_SIZE (8U)
926 struct nfs_read_data {
928 struct rpc_task task;
930 struct rpc_cred *cred;
931 struct nfs_fattr fattr; /* fattr storage */
932 struct list_head pages; /* Coalesced read requests */
933 struct nfs_page *req; /* multi ops per nfs_page */
934 struct page **pagevec;
935 unsigned int npages; /* Max length of pagevec */
936 struct nfs_readargs args;
937 struct nfs_readres res;
939 unsigned long timestamp; /* For lease renewal */
941 struct page *page_array[NFS_PAGEVEC_SIZE];
944 struct nfs_write_data {
946 struct rpc_task task;
948 struct rpc_cred *cred;
949 struct nfs_fattr fattr;
950 struct nfs_writeverf verf;
951 struct list_head pages; /* Coalesced requests we wish to flush */
952 struct nfs_page *req; /* multi ops per nfs_page */
953 struct page **pagevec;
954 unsigned int npages; /* Max length of pagevec */
955 struct nfs_writeargs args; /* argument struct */
956 struct nfs_writeres res; /* result struct */
958 unsigned long timestamp; /* For lease renewal */
960 struct page *page_array[NFS_PAGEVEC_SIZE];
963 struct nfs_access_entry;
966 * RPC procedure vector for NFSv2/NFSv3 demuxing
969 u32 version; /* Protocol version */
970 const struct dentry_operations *dentry_ops;
971 const struct inode_operations *dir_inode_ops;
972 const struct inode_operations *file_inode_ops;
974 int (*getroot) (struct nfs_server *, struct nfs_fh *,
975 struct nfs_fsinfo *);
976 int (*lookupfh)(struct nfs_server *, struct nfs_fh *,
977 struct qstr *, struct nfs_fh *,
979 int (*getattr) (struct nfs_server *, struct nfs_fh *,
981 int (*setattr) (struct dentry *, struct nfs_fattr *,
983 int (*lookup) (struct inode *, struct qstr *,
984 struct nfs_fh *, struct nfs_fattr *);
985 int (*access) (struct inode *, struct nfs_access_entry *);
986 int (*readlink)(struct inode *, struct page *, unsigned int,
988 int (*create) (struct inode *, struct dentry *,
989 struct iattr *, int, struct nameidata *);
990 int (*remove) (struct inode *, struct qstr *);
991 void (*unlink_setup) (struct rpc_message *, struct inode *dir);
992 int (*unlink_done) (struct rpc_task *, struct inode *);
993 int (*rename) (struct inode *, struct qstr *,
994 struct inode *, struct qstr *);
995 int (*link) (struct inode *, struct inode *, struct qstr *);
996 int (*symlink) (struct inode *, struct dentry *, struct page *,
997 unsigned int, struct iattr *);
998 int (*mkdir) (struct inode *, struct dentry *, struct iattr *);
999 int (*rmdir) (struct inode *, struct qstr *);
1000 int (*readdir) (struct dentry *, struct rpc_cred *,
1001 u64, struct page *, unsigned int, int);
1002 int (*mknod) (struct inode *, struct dentry *, struct iattr *,
1004 int (*statfs) (struct nfs_server *, struct nfs_fh *,
1005 struct nfs_fsstat *);
1006 int (*fsinfo) (struct nfs_server *, struct nfs_fh *,
1007 struct nfs_fsinfo *);
1008 int (*pathconf) (struct nfs_server *, struct nfs_fh *,
1009 struct nfs_pathconf *);
1010 int (*set_capabilities)(struct nfs_server *, struct nfs_fh *);
1011 __be32 *(*decode_dirent)(__be32 *, struct nfs_entry *, int plus);
1012 void (*read_setup) (struct nfs_read_data *, struct rpc_message *);
1013 int (*read_done) (struct rpc_task *, struct nfs_read_data *);
1014 void (*write_setup) (struct nfs_write_data *, struct rpc_message *);
1015 int (*write_done) (struct rpc_task *, struct nfs_write_data *);
1016 void (*commit_setup) (struct nfs_write_data *, struct rpc_message *);
1017 int (*commit_done) (struct rpc_task *, struct nfs_write_data *);
1018 int (*lock)(struct file *, int, struct file_lock *);
1019 int (*lock_check_bounds)(const struct file_lock *);
1020 void (*clear_acl_cache)(struct inode *);
1021 void (*close_context)(struct nfs_open_context *ctx, int);
1025 * NFS_CALL(getattr, inode, (fattr));
1027 * NFS_PROTO(inode)->getattr(fattr);
1029 #define NFS_CALL(op, inode, args) NFS_PROTO(inode)->op args
1032 * Function vectors etc. for the NFS client
1034 extern const struct nfs_rpc_ops nfs_v2_clientops;
1035 extern const struct nfs_rpc_ops nfs_v3_clientops;
1036 extern const struct nfs_rpc_ops nfs_v4_clientops;
1037 extern struct rpc_version nfs_version2;
1038 extern struct rpc_version nfs_version3;
1039 extern struct rpc_version nfs_version4;
1041 extern struct rpc_version nfsacl_version3;
1042 extern struct rpc_program nfsacl_program;