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
{
168 struct nfs4_sequence_res
{
173 * Arguments to the open call.
175 struct nfs_openargs
{
176 const struct nfs_fh
* fh
;
177 struct nfs_seqid
* seqid
;
183 struct iattr
* attrs
; /* UNCHECKED, GUARDED */
184 nfs4_verifier verifier
; /* EXCLUSIVE */
185 nfs4_stateid delegation
; /* CLAIM_DELEGATE_CUR */
186 fmode_t delegation_type
; /* CLAIM_PREVIOUS */
188 const struct qstr
* name
;
189 const struct nfs_server
*server
; /* Needed for ID mapping */
192 struct nfs4_sequence_args seq_args
;
196 nfs4_stateid stateid
;
198 struct nfs4_change_info cinfo
;
200 struct nfs_fattr
* f_attr
;
201 struct nfs_fattr
* dir_attr
;
202 struct nfs_seqid
* seqid
;
203 const struct nfs_server
*server
;
204 fmode_t delegation_type
;
205 nfs4_stateid delegation
;
208 __u32 attrset
[NFS4_BITMAP_SIZE
];
209 struct nfs4_sequence_res seq_res
;
213 * Arguments to the open_confirm call.
215 struct nfs_open_confirmargs
{
216 const struct nfs_fh
* fh
;
217 nfs4_stateid
* stateid
;
218 struct nfs_seqid
* seqid
;
221 struct nfs_open_confirmres
{
222 nfs4_stateid stateid
;
223 struct nfs_seqid
* seqid
;
227 * Arguments to the close call.
229 struct nfs_closeargs
{
231 nfs4_stateid
* stateid
;
232 struct nfs_seqid
* seqid
;
235 struct nfs4_sequence_args seq_args
;
238 struct nfs_closeres
{
239 nfs4_stateid stateid
;
240 struct nfs_fattr
* fattr
;
241 struct nfs_seqid
* seqid
;
242 const struct nfs_server
*server
;
243 struct nfs4_sequence_res seq_res
;
246 * * Arguments to the lock,lockt, and locku call.
253 struct nfs_lock_args
{
255 struct file_lock
* fl
;
256 struct nfs_seqid
* lock_seqid
;
257 nfs4_stateid
* lock_stateid
;
258 struct nfs_seqid
* open_seqid
;
259 nfs4_stateid
* open_stateid
;
260 struct nfs_lowner lock_owner
;
261 unsigned char block
: 1;
262 unsigned char reclaim
: 1;
263 unsigned char new_lock_owner
: 1;
264 struct nfs4_sequence_args seq_args
;
267 struct nfs_lock_res
{
268 nfs4_stateid stateid
;
269 struct nfs_seqid
* lock_seqid
;
270 struct nfs_seqid
* open_seqid
;
271 struct nfs4_sequence_res seq_res
;
274 struct nfs_locku_args
{
276 struct file_lock
* fl
;
277 struct nfs_seqid
* seqid
;
278 nfs4_stateid
* stateid
;
279 struct nfs4_sequence_args seq_args
;
282 struct nfs_locku_res
{
283 nfs4_stateid stateid
;
284 struct nfs_seqid
* seqid
;
285 struct nfs4_sequence_res seq_res
;
288 struct nfs_lockt_args
{
290 struct file_lock
* fl
;
291 struct nfs_lowner lock_owner
;
292 struct nfs4_sequence_args seq_args
;
295 struct nfs_lockt_res
{
296 struct file_lock
* denied
; /* LOCK, LOCKT failed */
297 struct nfs4_sequence_res seq_res
;
300 struct nfs4_delegreturnargs
{
301 const struct nfs_fh
*fhandle
;
302 const nfs4_stateid
*stateid
;
304 struct nfs4_sequence_args seq_args
;
307 struct nfs4_delegreturnres
{
308 struct nfs_fattr
* fattr
;
309 const struct nfs_server
*server
;
310 struct nfs4_sequence_res seq_res
;
314 * Arguments to the read call.
316 struct nfs_readargs
{
318 struct nfs_open_context
*context
;
322 struct page
** pages
;
323 struct nfs4_sequence_args seq_args
;
327 struct nfs_fattr
* fattr
;
330 struct nfs4_sequence_res seq_res
;
334 * Arguments to the write call.
336 struct nfs_writeargs
{
338 struct nfs_open_context
*context
;
341 enum nfs3_stable_how stable
;
343 struct page
** pages
;
345 struct nfs4_sequence_args seq_args
;
348 struct nfs_writeverf
{
349 enum nfs3_stable_how committed
;
353 struct nfs_writeres
{
354 struct nfs_fattr
* fattr
;
355 struct nfs_writeverf
* verf
;
357 const struct nfs_server
*server
;
358 struct nfs4_sequence_res seq_res
;
362 * Common arguments to the unlink call
364 struct nfs_removeargs
{
365 const struct nfs_fh
*fh
;
368 struct nfs4_sequence_args seq_args
;
371 struct nfs_removeres
{
372 const struct nfs_server
*server
;
373 struct nfs4_change_info cinfo
;
374 struct nfs_fattr dir_attr
;
375 struct nfs4_sequence_res seq_res
;
379 * Argument struct for decode_entry function
389 struct nfs_fattr
* fattr
;
393 * The following types are for NFSv2 only.
395 struct nfs_sattrargs
{
397 struct iattr
* sattr
;
400 struct nfs_diropargs
{
406 struct nfs_createargs
{
410 struct iattr
* sattr
;
413 struct nfs_renameargs
{
414 struct nfs_fh
* fromfh
;
415 const char * fromname
;
416 unsigned int fromlen
;
417 struct nfs_fh
* tofh
;
422 struct nfs_setattrargs
{
424 nfs4_stateid stateid
;
426 const struct nfs_server
* server
; /* Needed for name mapping */
428 struct nfs4_sequence_args seq_args
;
431 struct nfs_setaclargs
{
434 unsigned int acl_pgbase
;
435 struct page
** acl_pages
;
436 struct nfs4_sequence_args seq_args
;
439 struct nfs_setaclres
{
440 struct nfs4_sequence_res seq_res
;
443 struct nfs_getaclargs
{
446 unsigned int acl_pgbase
;
447 struct page
** acl_pages
;
448 struct nfs4_sequence_args seq_args
;
451 struct nfs_getaclres
{
453 struct nfs4_sequence_res seq_res
;
456 struct nfs_setattrres
{
457 struct nfs_fattr
* fattr
;
458 const struct nfs_server
* server
;
459 struct nfs4_sequence_res seq_res
;
462 struct nfs_linkargs
{
463 struct nfs_fh
* fromfh
;
464 struct nfs_fh
* tofh
;
469 struct nfs_symlinkargs
{
470 struct nfs_fh
* fromfh
;
471 const char * fromname
;
472 unsigned int fromlen
;
473 struct page
** pages
;
474 unsigned int pathlen
;
475 struct iattr
* sattr
;
478 struct nfs_readdirargs
{
482 struct page
** pages
;
485 struct nfs3_getaclargs
{
488 struct page
** pages
;
491 struct nfs3_setaclargs
{
492 struct inode
* inode
;
494 struct posix_acl
* acl_access
;
495 struct posix_acl
* acl_default
;
498 struct page
** pages
;
503 struct nfs_fattr
* fattr
;
506 struct nfs_readlinkargs
{
510 struct page
** pages
;
513 struct nfs3_sattrargs
{
515 struct iattr
* sattr
;
517 struct timespec guardtime
;
520 struct nfs3_diropargs
{
526 struct nfs3_accessargs
{
531 struct nfs3_createargs
{
535 struct iattr
* sattr
;
536 enum nfs3_createmode createmode
;
540 struct nfs3_mkdirargs
{
544 struct iattr
* sattr
;
547 struct nfs3_symlinkargs
{
548 struct nfs_fh
* fromfh
;
549 const char * fromname
;
550 unsigned int fromlen
;
551 struct page
** pages
;
552 unsigned int pathlen
;
553 struct iattr
* sattr
;
556 struct nfs3_mknodargs
{
560 enum nfs3_ftype type
;
561 struct iattr
* sattr
;
565 struct nfs3_renameargs
{
566 struct nfs_fh
* fromfh
;
567 const char * fromname
;
568 unsigned int fromlen
;
569 struct nfs_fh
* tofh
;
574 struct nfs3_linkargs
{
575 struct nfs_fh
* fromfh
;
576 struct nfs_fh
* tofh
;
581 struct nfs3_readdirargs
{
587 struct page
** pages
;
590 struct nfs3_diropres
{
591 struct nfs_fattr
* dir_attr
;
593 struct nfs_fattr
* fattr
;
596 struct nfs3_accessres
{
597 struct nfs_fattr
* fattr
;
601 struct nfs3_readlinkargs
{
605 struct page
** pages
;
608 struct nfs3_renameres
{
609 struct nfs_fattr
* fromattr
;
610 struct nfs_fattr
* toattr
;
613 struct nfs3_linkres
{
614 struct nfs_fattr
* dir_attr
;
615 struct nfs_fattr
* fattr
;
618 struct nfs3_readdirres
{
619 struct nfs_fattr
* dir_attr
;
624 struct nfs3_getaclres
{
625 struct nfs_fattr
* fattr
;
627 unsigned int acl_access_count
;
628 unsigned int acl_default_count
;
629 struct posix_acl
* acl_access
;
630 struct posix_acl
* acl_default
;
635 typedef u64 clientid4
;
637 struct nfs4_accessargs
{
638 const struct nfs_fh
* fh
;
641 struct nfs4_sequence_args seq_args
;
644 struct nfs4_accessres
{
645 const struct nfs_server
* server
;
646 struct nfs_fattr
* fattr
;
649 struct nfs4_sequence_res seq_res
;
652 struct nfs4_create_arg
{
656 struct page
** pages
;
658 } symlink
; /* NF4LNK */
662 } device
; /* NF4BLK, NF4CHR */
664 const struct qstr
* name
;
665 const struct nfs_server
* server
;
666 const struct iattr
* attrs
;
667 const struct nfs_fh
* dir_fh
;
669 struct nfs4_sequence_args seq_args
;
672 struct nfs4_create_res
{
673 const struct nfs_server
* server
;
675 struct nfs_fattr
* fattr
;
676 struct nfs4_change_info dir_cinfo
;
677 struct nfs_fattr
* dir_fattr
;
678 struct nfs4_sequence_res seq_res
;
681 struct nfs4_fsinfo_arg
{
682 const struct nfs_fh
* fh
;
684 struct nfs4_sequence_args seq_args
;
687 struct nfs4_fsinfo_res
{
688 struct nfs_fsinfo
*fsinfo
;
689 struct nfs4_sequence_res seq_res
;
692 struct nfs4_getattr_arg
{
693 const struct nfs_fh
* fh
;
695 struct nfs4_sequence_args seq_args
;
698 struct nfs4_getattr_res
{
699 const struct nfs_server
* server
;
700 struct nfs_fattr
* fattr
;
701 struct nfs4_sequence_res seq_res
;
704 struct nfs4_link_arg
{
705 const struct nfs_fh
* fh
;
706 const struct nfs_fh
* dir_fh
;
707 const struct qstr
* name
;
709 struct nfs4_sequence_args seq_args
;
712 struct nfs4_link_res
{
713 const struct nfs_server
* server
;
714 struct nfs_fattr
* fattr
;
715 struct nfs4_change_info cinfo
;
716 struct nfs_fattr
* dir_attr
;
717 struct nfs4_sequence_res seq_res
;
721 struct nfs4_lookup_arg
{
722 const struct nfs_fh
* dir_fh
;
723 const struct qstr
* name
;
725 struct nfs4_sequence_args seq_args
;
728 struct nfs4_lookup_res
{
729 const struct nfs_server
* server
;
730 struct nfs_fattr
* fattr
;
732 struct nfs4_sequence_res seq_res
;
735 struct nfs4_lookup_root_arg
{
737 struct nfs4_sequence_args seq_args
;
740 struct nfs4_pathconf_arg
{
741 const struct nfs_fh
* fh
;
743 struct nfs4_sequence_args seq_args
;
746 struct nfs4_pathconf_res
{
747 struct nfs_pathconf
*pathconf
;
748 struct nfs4_sequence_res seq_res
;
751 struct nfs4_readdir_arg
{
752 const struct nfs_fh
* fh
;
754 nfs4_verifier verifier
;
756 struct page
** pages
; /* zero-copy data */
757 unsigned int pgbase
; /* zero-copy data */
759 struct nfs4_sequence_args seq_args
;
762 struct nfs4_readdir_res
{
763 nfs4_verifier verifier
;
765 struct nfs4_sequence_res seq_res
;
768 struct nfs4_readlink
{
769 const struct nfs_fh
* fh
;
771 unsigned int pglen
; /* zero-copy data */
772 struct page
** pages
; /* zero-copy data */
773 struct nfs4_sequence_args seq_args
;
776 struct nfs4_readlink_res
{
777 struct nfs4_sequence_res seq_res
;
780 struct nfs4_rename_arg
{
781 const struct nfs_fh
* old_dir
;
782 const struct nfs_fh
* new_dir
;
783 const struct qstr
* old_name
;
784 const struct qstr
* new_name
;
786 struct nfs4_sequence_args seq_args
;
789 struct nfs4_rename_res
{
790 const struct nfs_server
* server
;
791 struct nfs4_change_info old_cinfo
;
792 struct nfs_fattr
* old_fattr
;
793 struct nfs4_change_info new_cinfo
;
794 struct nfs_fattr
* new_fattr
;
795 struct nfs4_sequence_res seq_res
;
798 #define NFS4_SETCLIENTID_NAMELEN (127)
799 struct nfs4_setclientid
{
800 const nfs4_verifier
* sc_verifier
;
801 unsigned int sc_name_len
;
802 char sc_name
[NFS4_SETCLIENTID_NAMELEN
+ 1];
804 unsigned int sc_netid_len
;
805 char sc_netid
[RPCBIND_MAXNETIDLEN
+ 1];
806 unsigned int sc_uaddr_len
;
807 char sc_uaddr
[RPCBIND_MAXUADDRLEN
+ 1];
811 struct nfs4_statfs_arg
{
812 const struct nfs_fh
* fh
;
814 struct nfs4_sequence_args seq_args
;
817 struct nfs4_statfs_res
{
818 struct nfs_fsstat
*fsstat
;
819 struct nfs4_sequence_res seq_res
;
822 struct nfs4_server_caps_arg
{
823 struct nfs_fh
*fhandle
;
824 struct nfs4_sequence_args seq_args
;
827 struct nfs4_server_caps_res
{
832 struct nfs4_sequence_res seq_res
;
840 #define NFS4_PATHNAME_MAXCOMPONENTS 512
841 struct nfs4_pathname
{
842 unsigned int ncomponents
;
843 struct nfs4_string components
[NFS4_PATHNAME_MAXCOMPONENTS
];
846 #define NFS4_FS_LOCATION_MAXSERVERS 10
847 struct nfs4_fs_location
{
848 unsigned int nservers
;
849 struct nfs4_string servers
[NFS4_FS_LOCATION_MAXSERVERS
];
850 struct nfs4_pathname rootpath
;
853 #define NFS4_FS_LOCATIONS_MAXENTRIES 10
854 struct nfs4_fs_locations
{
855 struct nfs_fattr fattr
;
856 const struct nfs_server
*server
;
857 struct nfs4_pathname fs_path
;
859 struct nfs4_fs_location locations
[NFS4_FS_LOCATIONS_MAXENTRIES
];
862 struct nfs4_fs_locations_arg
{
863 const struct nfs_fh
*dir_fh
;
864 const struct qstr
*name
;
867 struct nfs4_sequence_args seq_args
;
870 struct nfs4_fs_locations_res
{
871 struct nfs4_fs_locations
*fs_locations
;
872 struct nfs4_sequence_res seq_res
;
875 #endif /* CONFIG_NFS_V4 */
879 #define NFS_PAGEVEC_SIZE (8U)
881 struct nfs_read_data
{
883 struct rpc_task task
;
885 struct rpc_cred
*cred
;
886 struct nfs_fattr fattr
; /* fattr storage */
887 struct list_head pages
; /* Coalesced read requests */
888 struct nfs_page
*req
; /* multi ops per nfs_page */
889 struct page
**pagevec
;
890 unsigned int npages
; /* Max length of pagevec */
891 struct nfs_readargs args
;
892 struct nfs_readres res
;
894 unsigned long timestamp
; /* For lease renewal */
896 struct page
*page_array
[NFS_PAGEVEC_SIZE
];
899 struct nfs_write_data
{
901 struct rpc_task task
;
903 struct rpc_cred
*cred
;
904 struct nfs_fattr fattr
;
905 struct nfs_writeverf verf
;
906 struct list_head pages
; /* Coalesced requests we wish to flush */
907 struct nfs_page
*req
; /* multi ops per nfs_page */
908 struct page
**pagevec
;
909 unsigned int npages
; /* Max length of pagevec */
910 struct nfs_writeargs args
; /* argument struct */
911 struct nfs_writeres res
; /* result struct */
913 unsigned long timestamp
; /* For lease renewal */
915 struct page
*page_array
[NFS_PAGEVEC_SIZE
];
918 struct nfs_access_entry
;
921 * RPC procedure vector for NFSv2/NFSv3 demuxing
924 u32 version
; /* Protocol version */
925 const struct dentry_operations
*dentry_ops
;
926 const struct inode_operations
*dir_inode_ops
;
927 const struct inode_operations
*file_inode_ops
;
929 int (*getroot
) (struct nfs_server
*, struct nfs_fh
*,
930 struct nfs_fsinfo
*);
931 int (*lookupfh
)(struct nfs_server
*, struct nfs_fh
*,
932 struct qstr
*, struct nfs_fh
*,
934 int (*getattr
) (struct nfs_server
*, struct nfs_fh
*,
936 int (*setattr
) (struct dentry
*, struct nfs_fattr
*,
938 int (*lookup
) (struct inode
*, struct qstr
*,
939 struct nfs_fh
*, struct nfs_fattr
*);
940 int (*access
) (struct inode
*, struct nfs_access_entry
*);
941 int (*readlink
)(struct inode
*, struct page
*, unsigned int,
943 int (*create
) (struct inode
*, struct dentry
*,
944 struct iattr
*, int, struct nameidata
*);
945 int (*remove
) (struct inode
*, struct qstr
*);
946 void (*unlink_setup
) (struct rpc_message
*, struct inode
*dir
);
947 int (*unlink_done
) (struct rpc_task
*, struct inode
*);
948 int (*rename
) (struct inode
*, struct qstr
*,
949 struct inode
*, struct qstr
*);
950 int (*link
) (struct inode
*, struct inode
*, struct qstr
*);
951 int (*symlink
) (struct inode
*, struct dentry
*, struct page
*,
952 unsigned int, struct iattr
*);
953 int (*mkdir
) (struct inode
*, struct dentry
*, struct iattr
*);
954 int (*rmdir
) (struct inode
*, struct qstr
*);
955 int (*readdir
) (struct dentry
*, struct rpc_cred
*,
956 u64
, struct page
*, unsigned int, int);
957 int (*mknod
) (struct inode
*, struct dentry
*, struct iattr
*,
959 int (*statfs
) (struct nfs_server
*, struct nfs_fh
*,
960 struct nfs_fsstat
*);
961 int (*fsinfo
) (struct nfs_server
*, struct nfs_fh
*,
962 struct nfs_fsinfo
*);
963 int (*pathconf
) (struct nfs_server
*, struct nfs_fh
*,
964 struct nfs_pathconf
*);
965 int (*set_capabilities
)(struct nfs_server
*, struct nfs_fh
*);
966 __be32
*(*decode_dirent
)(__be32
*, struct nfs_entry
*, int plus
);
967 void (*read_setup
) (struct nfs_read_data
*, struct rpc_message
*);
968 int (*read_done
) (struct rpc_task
*, struct nfs_read_data
*);
969 void (*write_setup
) (struct nfs_write_data
*, struct rpc_message
*);
970 int (*write_done
) (struct rpc_task
*, struct nfs_write_data
*);
971 void (*commit_setup
) (struct nfs_write_data
*, struct rpc_message
*);
972 int (*commit_done
) (struct rpc_task
*, struct nfs_write_data
*);
973 int (*lock
)(struct file
*, int, struct file_lock
*);
974 int (*lock_check_bounds
)(const struct file_lock
*);
975 void (*clear_acl_cache
)(struct inode
*);
976 void (*close_context
)(struct nfs_open_context
*ctx
, int);
980 * NFS_CALL(getattr, inode, (fattr));
982 * NFS_PROTO(inode)->getattr(fattr);
984 #define NFS_CALL(op, inode, args) NFS_PROTO(inode)->op args
987 * Function vectors etc. for the NFS client
989 extern const struct nfs_rpc_ops nfs_v2_clientops
;
990 extern const struct nfs_rpc_ops nfs_v3_clientops
;
991 extern const struct nfs_rpc_ops nfs_v4_clientops
;
992 extern struct rpc_version nfs_version2
;
993 extern struct rpc_version nfs_version3
;
994 extern struct rpc_version nfs_version4
;
996 extern struct rpc_version nfsacl_version3
;
997 extern struct rpc_program nfsacl_program
;