1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_NFS_XDR_H
3 #define _LINUX_NFS_XDR_H
5 #include <linux/nfsacl.h>
6 #include <linux/sunrpc/gss_api.h>
9 * To change the maximum rsize and wsize supported by the NFS client, adjust
10 * NFS_MAX_FILE_IO_SIZE. 64KB is a typical maximum, but some servers can
11 * support a megabyte or more. The default is left at 4096 bytes, which is
12 * reasonable for NFS over UDP.
14 #define NFS_MAX_FILE_IO_SIZE (1048576U)
15 #define NFS_DEF_FILE_IO_SIZE (4096U)
16 #define NFS_MIN_FILE_IO_SIZE (1024U)
18 #define NFS_BITMASK_SZ 3
31 * Helper for checking equality between 2 fsids.
33 static inline int nfs_fsid_equal(const struct nfs_fsid *a, const struct nfs_fsid *b)
35 return a->major == b->major && a->minor == b->minor;
38 struct nfs4_threshold {
48 unsigned int valid; /* which fields are valid */
66 __u64 mounted_on_fileid;
67 struct timespec64 atime;
68 struct timespec64 mtime;
69 struct timespec64 ctime;
70 __u64 change_attr; /* NFSv4 change attribute */
71 __u64 pre_change_attr;/* pre-op NFSv4 change attribute */
72 __u64 pre_size; /* pre_op_attr.size */
73 struct timespec64 pre_mtime; /* pre_op_attr.mtime */
74 struct timespec64 pre_ctime; /* pre_op_attr.ctime */
75 unsigned long time_start;
76 unsigned long gencount;
77 struct nfs4_string *owner_name;
78 struct nfs4_string *group_name;
79 struct nfs4_threshold *mdsthreshold; /* pNFS threshold hints */
80 struct nfs4_label *label;
83 #define NFS_ATTR_FATTR_TYPE (1U << 0)
84 #define NFS_ATTR_FATTR_MODE (1U << 1)
85 #define NFS_ATTR_FATTR_NLINK (1U << 2)
86 #define NFS_ATTR_FATTR_OWNER (1U << 3)
87 #define NFS_ATTR_FATTR_GROUP (1U << 4)
88 #define NFS_ATTR_FATTR_RDEV (1U << 5)
89 #define NFS_ATTR_FATTR_SIZE (1U << 6)
90 #define NFS_ATTR_FATTR_PRESIZE (1U << 7)
91 #define NFS_ATTR_FATTR_BLOCKS_USED (1U << 8)
92 #define NFS_ATTR_FATTR_SPACE_USED (1U << 9)
93 #define NFS_ATTR_FATTR_FSID (1U << 10)
94 #define NFS_ATTR_FATTR_FILEID (1U << 11)
95 #define NFS_ATTR_FATTR_ATIME (1U << 12)
96 #define NFS_ATTR_FATTR_MTIME (1U << 13)
97 #define NFS_ATTR_FATTR_CTIME (1U << 14)
98 #define NFS_ATTR_FATTR_PREMTIME (1U << 15)
99 #define NFS_ATTR_FATTR_PRECTIME (1U << 16)
100 #define NFS_ATTR_FATTR_CHANGE (1U << 17)
101 #define NFS_ATTR_FATTR_PRECHANGE (1U << 18)
102 #define NFS_ATTR_FATTR_V4_LOCATIONS (1U << 19)
103 #define NFS_ATTR_FATTR_V4_REFERRAL (1U << 20)
104 #define NFS_ATTR_FATTR_MOUNTPOINT (1U << 21)
105 #define NFS_ATTR_FATTR_MOUNTED_ON_FILEID (1U << 22)
106 #define NFS_ATTR_FATTR_OWNER_NAME (1U << 23)
107 #define NFS_ATTR_FATTR_GROUP_NAME (1U << 24)
108 #define NFS_ATTR_FATTR_V4_SECURITY_LABEL (1U << 25)
110 #define NFS_ATTR_FATTR (NFS_ATTR_FATTR_TYPE \
111 | NFS_ATTR_FATTR_MODE \
112 | NFS_ATTR_FATTR_NLINK \
113 | NFS_ATTR_FATTR_OWNER \
114 | NFS_ATTR_FATTR_GROUP \
115 | NFS_ATTR_FATTR_RDEV \
116 | NFS_ATTR_FATTR_SIZE \
117 | NFS_ATTR_FATTR_FSID \
118 | NFS_ATTR_FATTR_FILEID \
119 | NFS_ATTR_FATTR_ATIME \
120 | NFS_ATTR_FATTR_MTIME \
121 | NFS_ATTR_FATTR_CTIME \
122 | NFS_ATTR_FATTR_CHANGE)
123 #define NFS_ATTR_FATTR_V2 (NFS_ATTR_FATTR \
124 | NFS_ATTR_FATTR_BLOCKS_USED)
125 #define NFS_ATTR_FATTR_V3 (NFS_ATTR_FATTR \
126 | NFS_ATTR_FATTR_SPACE_USED)
127 #define NFS_ATTR_FATTR_V4 (NFS_ATTR_FATTR \
128 | NFS_ATTR_FATTR_SPACE_USED \
129 | NFS_ATTR_FATTR_V4_SECURITY_LABEL)
132 * Maximal number of supported layout drivers.
134 #define NFS_MAX_LAYOUT_TYPES 8
137 * Info on the file system
140 struct nfs_fattr *fattr; /* Post-op attributes */
141 __u32 rtmax; /* max. read transfer size */
142 __u32 rtpref; /* pref. read transfer size */
143 __u32 rtmult; /* reads should be multiple of this */
144 __u32 wtmax; /* max. write transfer size */
145 __u32 wtpref; /* pref. write transfer size */
146 __u32 wtmult; /* writes should be multiple of this */
147 __u32 dtpref; /* pref. readdir transfer size */
149 struct timespec64 time_delta; /* server time granularity */
150 __u32 lease_time; /* in seconds */
151 __u32 nlayouttypes; /* number of layouttypes */
152 __u32 layouttype[NFS_MAX_LAYOUT_TYPES]; /* supported pnfs layout driver */
153 __u32 blksize; /* preferred pnfs io block size */
154 __u32 clone_blksize; /* granularity of a CLONE operation */
155 enum nfs4_change_attr_type
156 change_attr_type; /* Info about change attr */
157 __u32 xattr_support; /* User xattrs supported */
161 struct nfs_fattr *fattr; /* Post-op attributes */
162 __u64 tbytes; /* total size in bytes */
163 __u64 fbytes; /* # of free bytes */
164 __u64 abytes; /* # of bytes available to user */
165 __u64 tfiles; /* # of files */
166 __u64 ffiles; /* # of free files */
167 __u64 afiles; /* # of files available to user */
171 __u32 tsize; /* Server transfer size */
172 __u32 bsize; /* Filesystem block size */
173 __u32 blocks; /* No. of "bsize" blocks on filesystem */
174 __u32 bfree; /* No. of free "bsize" blocks */
175 __u32 bavail; /* No. of available "bsize" blocks */
178 struct nfs_pathconf {
179 struct nfs_fattr *fattr; /* Post-op attributes */
180 __u32 max_link; /* max # of hard links */
181 __u32 max_namelen; /* max name length */
184 struct nfs4_change_info {
192 /* nfs41 sessions channel attributes */
193 struct nfs4_channel_attrs {
196 u32 max_resp_sz_cached;
202 struct nfs4_sequence_args {
203 struct nfs4_slot *sa_slot;
204 u8 sa_cache_this : 1,
208 struct nfs4_sequence_res {
209 struct nfs4_slot *sr_slot; /* slot used to send request */
210 unsigned long sr_timestamp;
211 int sr_status; /* sequence operation status */
213 u32 sr_highest_slotid;
214 u32 sr_target_highest_slotid;
217 struct nfs4_get_lease_time_args {
218 struct nfs4_sequence_args la_seq_args;
221 struct nfs4_get_lease_time_res {
222 struct nfs4_sequence_res lr_seq_res;
223 struct nfs_fsinfo *lr_fsinfo;
227 struct nfs4_xdr_opaque_data;
229 struct nfs4_xdr_opaque_ops {
230 void (*encode)(struct xdr_stream *, const void *args,
231 const struct nfs4_xdr_opaque_data *);
232 void (*free)(struct nfs4_xdr_opaque_data *);
235 struct nfs4_xdr_opaque_data {
236 const struct nfs4_xdr_opaque_ops *ops;
240 #define PNFS_LAYOUT_MAXSIZE 4096
242 struct nfs4_layoutdriver_data {
248 struct pnfs_layout_range {
254 struct nfs4_layoutget_args {
255 struct nfs4_sequence_args seq_args;
257 struct pnfs_layout_range range;
261 struct nfs_open_context *ctx;
262 nfs4_stateid stateid;
263 struct nfs4_layoutdriver_data layout;
266 struct nfs4_layoutget_res {
267 struct nfs4_sequence_res seq_res;
269 __u32 return_on_close;
270 struct pnfs_layout_range range;
272 nfs4_stateid stateid;
273 struct nfs4_layoutdriver_data *layoutp;
276 struct nfs4_layoutget {
277 struct nfs4_layoutget_args args;
278 struct nfs4_layoutget_res res;
279 const struct cred *cred;
280 struct pnfs_layout_hdr *lo;
284 struct nfs4_getdeviceinfo_args {
285 struct nfs4_sequence_args seq_args;
286 struct pnfs_device *pdev;
290 struct nfs4_getdeviceinfo_res {
291 struct nfs4_sequence_res seq_res;
292 struct pnfs_device *pdev;
296 struct nfs4_layoutcommit_args {
297 struct nfs4_sequence_args seq_args;
298 nfs4_stateid stateid;
299 __u64 lastbytewritten;
302 size_t layoutupdate_len;
303 struct page *layoutupdate_page;
304 struct page **layoutupdate_pages;
308 struct nfs4_layoutcommit_res {
309 struct nfs4_sequence_res seq_res;
310 struct nfs_fattr *fattr;
311 const struct nfs_server *server;
315 struct nfs4_layoutcommit_data {
316 struct rpc_task task;
317 struct nfs_fattr fattr;
318 struct list_head lseg_list;
319 const struct cred *cred;
321 struct nfs4_layoutcommit_args args;
322 struct nfs4_layoutcommit_res res;
325 struct nfs4_layoutreturn_args {
326 struct nfs4_sequence_args seq_args;
327 struct pnfs_layout_hdr *layout;
329 struct pnfs_layout_range range;
330 nfs4_stateid stateid;
332 struct nfs4_xdr_opaque_data *ld_private;
335 struct nfs4_layoutreturn_res {
336 struct nfs4_sequence_res seq_res;
338 nfs4_stateid stateid;
341 struct nfs4_layoutreturn {
342 struct nfs4_layoutreturn_args args;
343 struct nfs4_layoutreturn_res res;
344 const struct cred *cred;
345 struct nfs_client *clp;
348 struct nfs4_xdr_opaque_data ld_private;
351 #define PNFS_LAYOUTSTATS_MAXSIZE 256
353 struct nfs42_layoutstat_args;
354 struct nfs42_layoutstat_devinfo;
355 typedef void (*layoutstats_encode_t)(struct xdr_stream *,
356 struct nfs42_layoutstat_args *,
357 struct nfs42_layoutstat_devinfo *);
359 /* Per file per deviceid layoutstats */
360 struct nfs42_layoutstat_devinfo {
361 struct nfs4_deviceid dev_id;
369 struct nfs4_xdr_opaque_data ld_private;
372 struct nfs42_layoutstat_args {
373 struct nfs4_sequence_args seq_args;
376 nfs4_stateid stateid;
378 struct nfs42_layoutstat_devinfo *devinfo;
381 struct nfs42_layoutstat_res {
382 struct nfs4_sequence_res seq_res;
387 struct nfs42_layoutstat_data {
389 struct nfs42_layoutstat_args args;
390 struct nfs42_layoutstat_res res;
393 struct nfs42_device_error {
394 struct nfs4_deviceid dev_id;
396 enum nfs_opnum4 opnum;
399 struct nfs42_layout_error {
402 nfs4_stateid stateid;
403 struct nfs42_device_error errors[1];
406 #define NFS42_LAYOUTERROR_MAX 5
408 struct nfs42_layouterror_args {
409 struct nfs4_sequence_args seq_args;
411 unsigned int num_errors;
412 struct nfs42_layout_error errors[NFS42_LAYOUTERROR_MAX];
415 struct nfs42_layouterror_res {
416 struct nfs4_sequence_res seq_res;
417 unsigned int num_errors;
421 struct nfs42_layouterror_data {
422 struct nfs42_layouterror_args args;
423 struct nfs42_layouterror_res res;
425 struct pnfs_layout_segment *lseg;
428 struct nfs42_clone_args {
429 struct nfs4_sequence_args seq_args;
430 struct nfs_fh *src_fh;
431 struct nfs_fh *dst_fh;
432 nfs4_stateid src_stateid;
433 nfs4_stateid dst_stateid;
437 const u32 *dst_bitmask;
440 struct nfs42_clone_res {
441 struct nfs4_sequence_res seq_res;
442 unsigned int rpc_status;
443 struct nfs_fattr *dst_fattr;
444 const struct nfs_server *server;
447 struct stateowner_id {
453 * Arguments to the open call.
455 struct nfs_openargs {
456 struct nfs4_sequence_args seq_args;
457 const struct nfs_fh * fh;
458 struct nfs_seqid * seqid;
464 struct stateowner_id id;
467 struct iattr * attrs; /* UNCHECKED, GUARDED, EXCLUSIVE4_1 */
468 nfs4_verifier verifier; /* EXCLUSIVE */
470 nfs4_stateid delegation; /* CLAIM_DELEGATE_CUR */
471 fmode_t delegation_type; /* CLAIM_PREVIOUS */
473 const struct qstr * name;
474 const struct nfs_server *server; /* Needed for ID mapping */
476 const u32 * open_bitmap;
477 enum open_claim_type4 claim;
478 enum createmode4 createmode;
479 const struct nfs4_label *label;
481 struct nfs4_layoutget_args *lg_args;
485 struct nfs4_sequence_res seq_res;
486 nfs4_stateid stateid;
488 struct nfs4_change_info cinfo;
490 struct nfs_fattr * f_attr;
491 struct nfs4_label *f_label;
492 struct nfs_seqid * seqid;
493 const struct nfs_server *server;
494 fmode_t delegation_type;
495 nfs4_stateid delegation;
496 unsigned long pagemod_limit;
498 __u32 attrset[NFS4_BITMAP_SIZE];
499 struct nfs4_string *owner;
500 struct nfs4_string *group_owner;
501 __u32 access_request;
502 __u32 access_supported;
504 struct nfs4_layoutget_res *lg_res;
508 * Arguments to the open_confirm call.
510 struct nfs_open_confirmargs {
511 struct nfs4_sequence_args seq_args;
512 const struct nfs_fh * fh;
513 nfs4_stateid * stateid;
514 struct nfs_seqid * seqid;
517 struct nfs_open_confirmres {
518 struct nfs4_sequence_res seq_res;
519 nfs4_stateid stateid;
520 struct nfs_seqid * seqid;
524 * Arguments to the close call.
526 struct nfs_closeargs {
527 struct nfs4_sequence_args seq_args;
529 nfs4_stateid stateid;
530 struct nfs_seqid * seqid;
534 u32 bitmask_store[NFS_BITMASK_SZ];
535 struct nfs4_layoutreturn_args *lr_args;
538 struct nfs_closeres {
539 struct nfs4_sequence_res seq_res;
540 nfs4_stateid stateid;
541 struct nfs_fattr * fattr;
542 struct nfs_seqid * seqid;
543 const struct nfs_server *server;
544 struct nfs4_layoutreturn_res *lr_res;
548 * * Arguments to the lock,lockt, and locku call.
556 struct nfs_lock_args {
557 struct nfs4_sequence_args seq_args;
559 struct file_lock * fl;
560 struct nfs_seqid * lock_seqid;
561 nfs4_stateid lock_stateid;
562 struct nfs_seqid * open_seqid;
563 nfs4_stateid open_stateid;
564 struct nfs_lowner lock_owner;
565 unsigned char block : 1;
566 unsigned char reclaim : 1;
567 unsigned char new_lock : 1;
568 unsigned char new_lock_owner : 1;
571 struct nfs_lock_res {
572 struct nfs4_sequence_res seq_res;
573 nfs4_stateid stateid;
574 struct nfs_seqid * lock_seqid;
575 struct nfs_seqid * open_seqid;
578 struct nfs_locku_args {
579 struct nfs4_sequence_args seq_args;
581 struct file_lock * fl;
582 struct nfs_seqid * seqid;
583 nfs4_stateid stateid;
586 struct nfs_locku_res {
587 struct nfs4_sequence_res seq_res;
588 nfs4_stateid stateid;
589 struct nfs_seqid * seqid;
592 struct nfs_lockt_args {
593 struct nfs4_sequence_args seq_args;
595 struct file_lock * fl;
596 struct nfs_lowner lock_owner;
599 struct nfs_lockt_res {
600 struct nfs4_sequence_res seq_res;
601 struct file_lock * denied; /* LOCK, LOCKT failed */
604 struct nfs_release_lockowner_args {
605 struct nfs4_sequence_args seq_args;
606 struct nfs_lowner lock_owner;
609 struct nfs_release_lockowner_res {
610 struct nfs4_sequence_res seq_res;
613 struct nfs4_delegreturnargs {
614 struct nfs4_sequence_args seq_args;
615 const struct nfs_fh *fhandle;
616 const nfs4_stateid *stateid;
618 u32 bitmask_store[NFS_BITMASK_SZ];
619 struct nfs4_layoutreturn_args *lr_args;
622 struct nfs4_delegreturnres {
623 struct nfs4_sequence_res seq_res;
624 struct nfs_fattr * fattr;
625 struct nfs_server *server;
626 struct nfs4_layoutreturn_res *lr_res;
631 * Arguments to the write call.
633 struct nfs_write_verifier {
637 struct nfs_writeverf {
638 struct nfs_write_verifier verifier;
639 enum nfs3_stable_how committed;
643 * Arguments shared by the read and write call.
645 struct nfs_pgio_args {
646 struct nfs4_sequence_args seq_args;
648 struct nfs_open_context *context;
649 struct nfs_lock_context *lock_context;
650 nfs4_stateid stateid;
654 struct page ** pages;
656 unsigned int replen; /* used by read */
658 const u32 * bitmask; /* used by write */
659 u32 bitmask_store[NFS_BITMASK_SZ]; /* used by write */
660 enum nfs3_stable_how stable; /* used by write */
665 struct nfs_pgio_res {
666 struct nfs4_sequence_res seq_res;
667 struct nfs_fattr * fattr;
672 unsigned int replen; /* used by read */
673 int eof; /* used by read */
676 struct nfs_writeverf * verf; /* used by write */
677 const struct nfs_server *server; /* used by write */
683 * Arguments to the commit call.
685 struct nfs_commitargs {
686 struct nfs4_sequence_args seq_args;
693 struct nfs_commitres {
694 struct nfs4_sequence_res seq_res;
696 struct nfs_fattr *fattr;
697 struct nfs_writeverf *verf;
698 const struct nfs_server *server;
702 * Common arguments to the unlink call
704 struct nfs_removeargs {
705 struct nfs4_sequence_args seq_args;
706 const struct nfs_fh *fh;
710 struct nfs_removeres {
711 struct nfs4_sequence_res seq_res;
712 struct nfs_server *server;
713 struct nfs_fattr *dir_attr;
714 struct nfs4_change_info cinfo;
718 * Common arguments to the rename call
720 struct nfs_renameargs {
721 struct nfs4_sequence_args seq_args;
722 const struct nfs_fh *old_dir;
723 const struct nfs_fh *new_dir;
724 const struct qstr *old_name;
725 const struct qstr *new_name;
728 struct nfs_renameres {
729 struct nfs4_sequence_res seq_res;
730 struct nfs_server *server;
731 struct nfs4_change_info old_cinfo;
732 struct nfs_fattr *old_fattr;
733 struct nfs4_change_info new_cinfo;
734 struct nfs_fattr *new_fattr;
737 /* parsed sec= options */
738 #define NFS_AUTH_INFO_MAX_FLAVORS 12 /* see fs/nfs/super.c */
739 struct nfs_auth_info {
740 unsigned int flavor_len;
741 rpc_authflavor_t flavors[NFS_AUTH_INFO_MAX_FLAVORS];
745 * Argument struct for decode_entry function
755 struct nfs_fattr * fattr;
756 struct nfs4_label *label;
757 unsigned char d_type;
758 struct nfs_server * server;
761 struct nfs_readdir_arg {
762 struct dentry *dentry;
763 const struct cred *cred;
767 unsigned int page_len;
771 struct nfs_readdir_res {
776 * The following types are for NFSv2 only.
778 struct nfs_sattrargs {
780 struct iattr * sattr;
783 struct nfs_diropargs {
789 struct nfs_createargs {
793 struct iattr * sattr;
796 struct nfs_setattrargs {
797 struct nfs4_sequence_args seq_args;
799 nfs4_stateid stateid;
801 const struct nfs_server * server; /* Needed for name mapping */
803 const struct nfs4_label *label;
806 struct nfs_setaclargs {
807 struct nfs4_sequence_args seq_args;
810 struct page ** acl_pages;
813 struct nfs_setaclres {
814 struct nfs4_sequence_res seq_res;
817 struct nfs_getaclargs {
818 struct nfs4_sequence_args seq_args;
821 struct page ** acl_pages;
824 /* getxattr ACL interface flags */
825 #define NFS4_ACL_TRUNC 0x0001 /* ACL was truncated */
826 struct nfs_getaclres {
827 struct nfs4_sequence_res seq_res;
829 size_t acl_data_offset;
831 struct page * acl_scratch;
834 struct nfs_setattrres {
835 struct nfs4_sequence_res seq_res;
836 struct nfs_fattr * fattr;
837 struct nfs4_label *label;
838 const struct nfs_server * server;
841 struct nfs_linkargs {
842 struct nfs_fh * fromfh;
843 struct nfs_fh * tofh;
848 struct nfs_symlinkargs {
849 struct nfs_fh * fromfh;
850 const char * fromname;
851 unsigned int fromlen;
852 struct page ** pages;
853 unsigned int pathlen;
854 struct iattr * sattr;
857 struct nfs_readdirargs {
861 struct page ** pages;
864 struct nfs3_getaclargs {
867 struct page ** pages;
870 struct nfs3_setaclargs {
871 struct inode * inode;
873 struct posix_acl * acl_access;
874 struct posix_acl * acl_default;
877 struct page ** pages;
882 struct nfs_fattr * fattr;
885 struct nfs_readlinkargs {
889 struct page ** pages;
892 struct nfs3_sattrargs {
894 struct iattr * sattr;
896 struct timespec64 guardtime;
899 struct nfs3_diropargs {
905 struct nfs3_accessargs {
910 struct nfs3_createargs {
914 struct iattr * sattr;
915 enum nfs3_createmode createmode;
919 struct nfs3_mkdirargs {
923 struct iattr * sattr;
926 struct nfs3_symlinkargs {
927 struct nfs_fh * fromfh;
928 const char * fromname;
929 unsigned int fromlen;
930 struct page ** pages;
931 unsigned int pathlen;
932 struct iattr * sattr;
935 struct nfs3_mknodargs {
939 enum nfs3_ftype type;
940 struct iattr * sattr;
944 struct nfs3_linkargs {
945 struct nfs_fh * fromfh;
946 struct nfs_fh * tofh;
951 struct nfs3_readdirargs {
957 struct page ** pages;
960 struct nfs3_diropres {
961 struct nfs_fattr * dir_attr;
963 struct nfs_fattr * fattr;
966 struct nfs3_accessres {
967 struct nfs_fattr * fattr;
971 struct nfs3_readlinkargs {
975 struct page ** pages;
978 struct nfs3_linkres {
979 struct nfs_fattr * dir_attr;
980 struct nfs_fattr * fattr;
983 struct nfs3_readdirres {
984 struct nfs_fattr * dir_attr;
989 struct nfs3_getaclres {
990 struct nfs_fattr * fattr;
992 unsigned int acl_access_count;
993 unsigned int acl_default_count;
994 struct posix_acl * acl_access;
995 struct posix_acl * acl_default;
998 #if IS_ENABLED(CONFIG_NFS_V4)
1000 typedef u64 clientid4;
1002 struct nfs4_accessargs {
1003 struct nfs4_sequence_args seq_args;
1004 const struct nfs_fh * fh;
1005 const u32 * bitmask;
1009 struct nfs4_accessres {
1010 struct nfs4_sequence_res seq_res;
1011 const struct nfs_server * server;
1012 struct nfs_fattr * fattr;
1017 struct nfs4_create_arg {
1018 struct nfs4_sequence_args seq_args;
1022 struct page ** pages;
1024 } symlink; /* NF4LNK */
1028 } device; /* NF4BLK, NF4CHR */
1030 const struct qstr * name;
1031 const struct nfs_server * server;
1032 const struct iattr * attrs;
1033 const struct nfs_fh * dir_fh;
1034 const u32 * bitmask;
1035 const struct nfs4_label *label;
1039 struct nfs4_create_res {
1040 struct nfs4_sequence_res seq_res;
1041 const struct nfs_server * server;
1043 struct nfs_fattr * fattr;
1044 struct nfs4_label *label;
1045 struct nfs4_change_info dir_cinfo;
1048 struct nfs4_fsinfo_arg {
1049 struct nfs4_sequence_args seq_args;
1050 const struct nfs_fh * fh;
1051 const u32 * bitmask;
1054 struct nfs4_fsinfo_res {
1055 struct nfs4_sequence_res seq_res;
1056 struct nfs_fsinfo *fsinfo;
1059 struct nfs4_getattr_arg {
1060 struct nfs4_sequence_args seq_args;
1061 const struct nfs_fh * fh;
1062 const u32 * bitmask;
1065 struct nfs4_getattr_res {
1066 struct nfs4_sequence_res seq_res;
1067 const struct nfs_server * server;
1068 struct nfs_fattr * fattr;
1069 struct nfs4_label *label;
1072 struct nfs4_link_arg {
1073 struct nfs4_sequence_args seq_args;
1074 const struct nfs_fh * fh;
1075 const struct nfs_fh * dir_fh;
1076 const struct qstr * name;
1077 const u32 * bitmask;
1080 struct nfs4_link_res {
1081 struct nfs4_sequence_res seq_res;
1082 const struct nfs_server * server;
1083 struct nfs_fattr * fattr;
1084 struct nfs4_label *label;
1085 struct nfs4_change_info cinfo;
1086 struct nfs_fattr * dir_attr;
1089 struct nfs4_lookup_arg {
1090 struct nfs4_sequence_args seq_args;
1091 const struct nfs_fh * dir_fh;
1092 const struct qstr * name;
1093 const u32 * bitmask;
1096 struct nfs4_lookup_res {
1097 struct nfs4_sequence_res seq_res;
1098 const struct nfs_server * server;
1099 struct nfs_fattr * fattr;
1101 struct nfs4_label *label;
1104 struct nfs4_lookupp_arg {
1105 struct nfs4_sequence_args seq_args;
1106 const struct nfs_fh *fh;
1110 struct nfs4_lookupp_res {
1111 struct nfs4_sequence_res seq_res;
1112 const struct nfs_server *server;
1113 struct nfs_fattr *fattr;
1115 struct nfs4_label *label;
1118 struct nfs4_lookup_root_arg {
1119 struct nfs4_sequence_args seq_args;
1120 const u32 * bitmask;
1123 struct nfs4_pathconf_arg {
1124 struct nfs4_sequence_args seq_args;
1125 const struct nfs_fh * fh;
1126 const u32 * bitmask;
1129 struct nfs4_pathconf_res {
1130 struct nfs4_sequence_res seq_res;
1131 struct nfs_pathconf *pathconf;
1134 struct nfs4_readdir_arg {
1135 struct nfs4_sequence_args seq_args;
1136 const struct nfs_fh * fh;
1138 nfs4_verifier verifier;
1140 struct page ** pages; /* zero-copy data */
1141 unsigned int pgbase; /* zero-copy data */
1142 const u32 * bitmask;
1146 struct nfs4_readdir_res {
1147 struct nfs4_sequence_res seq_res;
1148 nfs4_verifier verifier;
1149 unsigned int pgbase;
1152 struct nfs4_readlink {
1153 struct nfs4_sequence_args seq_args;
1154 const struct nfs_fh * fh;
1155 unsigned int pgbase;
1156 unsigned int pglen; /* zero-copy data */
1157 struct page ** pages; /* zero-copy data */
1160 struct nfs4_readlink_res {
1161 struct nfs4_sequence_res seq_res;
1164 struct nfs4_setclientid {
1165 const nfs4_verifier * sc_verifier;
1167 unsigned int sc_netid_len;
1168 char sc_netid[RPCBIND_MAXNETIDLEN + 1];
1169 unsigned int sc_uaddr_len;
1170 char sc_uaddr[RPCBIND_MAXUADDRLEN + 1];
1171 struct nfs_client *sc_clnt;
1172 struct rpc_cred *sc_cred;
1175 struct nfs4_setclientid_res {
1177 nfs4_verifier confirm;
1180 struct nfs4_statfs_arg {
1181 struct nfs4_sequence_args seq_args;
1182 const struct nfs_fh * fh;
1183 const u32 * bitmask;
1186 struct nfs4_statfs_res {
1187 struct nfs4_sequence_res seq_res;
1188 struct nfs_fsstat *fsstat;
1191 struct nfs4_server_caps_arg {
1192 struct nfs4_sequence_args seq_args;
1193 struct nfs_fh *fhandle;
1194 const u32 * bitmask;
1197 struct nfs4_server_caps_res {
1198 struct nfs4_sequence_res seq_res;
1199 u32 attr_bitmask[3];
1200 u32 exclcreat_bitmask[3];
1207 #define NFS4_PATHNAME_MAXCOMPONENTS 512
1208 struct nfs4_pathname {
1209 unsigned int ncomponents;
1210 struct nfs4_string components[NFS4_PATHNAME_MAXCOMPONENTS];
1213 #define NFS4_FS_LOCATION_MAXSERVERS 10
1214 struct nfs4_fs_location {
1215 unsigned int nservers;
1216 struct nfs4_string servers[NFS4_FS_LOCATION_MAXSERVERS];
1217 struct nfs4_pathname rootpath;
1220 #define NFS4_FS_LOCATIONS_MAXENTRIES 10
1221 struct nfs4_fs_locations {
1222 struct nfs_fattr fattr;
1223 const struct nfs_server *server;
1224 struct nfs4_pathname fs_path;
1226 struct nfs4_fs_location locations[NFS4_FS_LOCATIONS_MAXENTRIES];
1229 struct nfs4_fs_locations_arg {
1230 struct nfs4_sequence_args seq_args;
1231 const struct nfs_fh *dir_fh;
1232 const struct nfs_fh *fh;
1233 const struct qstr *name;
1237 unsigned char migration:1, renew:1;
1240 struct nfs4_fs_locations_res {
1241 struct nfs4_sequence_res seq_res;
1242 struct nfs4_fs_locations *fs_locations;
1243 unsigned char migration:1, renew:1;
1246 struct nfs4_secinfo4 {
1248 struct rpcsec_gss_info flavor_info;
1251 struct nfs4_secinfo_flavors {
1252 unsigned int num_flavors;
1253 struct nfs4_secinfo4 flavors[];
1256 struct nfs4_secinfo_arg {
1257 struct nfs4_sequence_args seq_args;
1258 const struct nfs_fh *dir_fh;
1259 const struct qstr *name;
1262 struct nfs4_secinfo_res {
1263 struct nfs4_sequence_res seq_res;
1264 struct nfs4_secinfo_flavors *flavors;
1267 struct nfs4_fsid_present_arg {
1268 struct nfs4_sequence_args seq_args;
1269 const struct nfs_fh *fh;
1271 unsigned char renew:1;
1274 struct nfs4_fsid_present_res {
1275 struct nfs4_sequence_res seq_res;
1277 unsigned char renew:1;
1280 #endif /* CONFIG_NFS_V4 */
1287 #ifdef CONFIG_NFS_V4_1
1289 struct pnfs_commit_bucket {
1290 struct list_head written;
1291 struct list_head committing;
1292 struct pnfs_layout_segment *lseg;
1293 struct nfs_writeverf direct_verf;
1296 struct pnfs_commit_array {
1297 struct list_head cinfo_list;
1298 struct list_head lseg_list;
1299 struct pnfs_layout_segment *lseg;
1300 struct rcu_head rcu;
1301 refcount_t refcount;
1302 unsigned int nbuckets;
1303 struct pnfs_commit_bucket buckets[];
1306 struct pnfs_ds_commit_info {
1307 struct list_head commits;
1308 unsigned int nwritten;
1309 unsigned int ncommitting;
1310 const struct pnfs_commit_ops *ops;
1313 struct nfs41_state_protection {
1315 struct nfs4_op_map enforce;
1316 struct nfs4_op_map allow;
1319 struct nfs41_exchange_id_args {
1320 struct nfs_client *client;
1321 nfs4_verifier verifier;
1323 struct nfs41_state_protection state_protect;
1326 struct nfs41_server_owner {
1328 uint32_t major_id_sz;
1329 char major_id[NFS4_OPAQUE_LIMIT];
1332 struct nfs41_server_scope {
1333 uint32_t server_scope_sz;
1334 char server_scope[NFS4_OPAQUE_LIMIT];
1337 struct nfs41_impl_id {
1338 char domain[NFS4_OPAQUE_LIMIT + 1];
1339 char name[NFS4_OPAQUE_LIMIT + 1];
1340 struct nfstime4 date;
1343 #define MAX_BIND_CONN_TO_SESSION_RETRIES 3
1344 struct nfs41_bind_conn_to_session_args {
1345 struct nfs_client *client;
1346 struct nfs4_sessionid sessionid;
1348 bool use_conn_in_rdma_mode;
1352 struct nfs41_bind_conn_to_session_res {
1353 struct nfs4_sessionid sessionid;
1355 bool use_conn_in_rdma_mode;
1358 struct nfs41_exchange_id_res {
1362 struct nfs41_server_owner *server_owner;
1363 struct nfs41_server_scope *server_scope;
1364 struct nfs41_impl_id *impl_id;
1365 struct nfs41_state_protection state_protect;
1368 struct nfs41_create_session_args {
1369 struct nfs_client *client;
1373 uint32_t cb_program;
1374 struct nfs4_channel_attrs fc_attrs; /* Fore Channel */
1375 struct nfs4_channel_attrs bc_attrs; /* Back Channel */
1378 struct nfs41_create_session_res {
1379 struct nfs4_sessionid sessionid;
1382 struct nfs4_channel_attrs fc_attrs; /* Fore Channel */
1383 struct nfs4_channel_attrs bc_attrs; /* Back Channel */
1386 struct nfs41_reclaim_complete_args {
1387 struct nfs4_sequence_args seq_args;
1388 /* In the future extend to include curr_fh for use with migration */
1389 unsigned char one_fs:1;
1392 struct nfs41_reclaim_complete_res {
1393 struct nfs4_sequence_res seq_res;
1396 #define SECINFO_STYLE_CURRENT_FH 0
1397 #define SECINFO_STYLE_PARENT 1
1398 struct nfs41_secinfo_no_name_args {
1399 struct nfs4_sequence_args seq_args;
1403 struct nfs41_test_stateid_args {
1404 struct nfs4_sequence_args seq_args;
1405 nfs4_stateid *stateid;
1408 struct nfs41_test_stateid_res {
1409 struct nfs4_sequence_res seq_res;
1410 unsigned int status;
1413 struct nfs41_free_stateid_args {
1414 struct nfs4_sequence_args seq_args;
1415 nfs4_stateid stateid;
1418 struct nfs41_free_stateid_res {
1419 struct nfs4_sequence_res seq_res;
1420 unsigned int status;
1425 struct pnfs_ds_commit_info {
1428 #endif /* CONFIG_NFS_V4_1 */
1430 #ifdef CONFIG_NFS_V4_2
1431 struct nfs42_falloc_args {
1432 struct nfs4_sequence_args seq_args;
1434 struct nfs_fh *falloc_fh;
1435 nfs4_stateid falloc_stateid;
1438 const u32 *falloc_bitmask;
1441 struct nfs42_falloc_res {
1442 struct nfs4_sequence_res seq_res;
1443 unsigned int status;
1445 struct nfs_fattr *falloc_fattr;
1446 const struct nfs_server *falloc_server;
1449 struct nfs42_copy_args {
1450 struct nfs4_sequence_args seq_args;
1452 struct nfs_fh *src_fh;
1453 nfs4_stateid src_stateid;
1456 struct nfs_fh *dst_fh;
1457 nfs4_stateid dst_stateid;
1462 struct nl4_server *cp_src;
1465 struct nfs42_write_res {
1466 nfs4_stateid stateid;
1468 struct nfs_writeverf verifier;
1471 struct nfs42_copy_res {
1472 struct nfs4_sequence_res seq_res;
1473 struct nfs42_write_res write_res;
1476 struct nfs_commitres commit_res;
1479 struct nfs42_offload_status_args {
1480 struct nfs4_sequence_args osa_seq_args;
1481 struct nfs_fh *osa_src_fh;
1482 nfs4_stateid osa_stateid;
1485 struct nfs42_offload_status_res {
1486 struct nfs4_sequence_res osr_seq_res;
1491 struct nfs42_copy_notify_args {
1492 struct nfs4_sequence_args cna_seq_args;
1494 struct nfs_fh *cna_src_fh;
1495 nfs4_stateid cna_src_stateid;
1496 struct nl4_server cna_dst;
1499 struct nfs42_copy_notify_res {
1500 struct nfs4_sequence_res cnr_seq_res;
1502 struct nfstime4 cnr_lease_time;
1503 nfs4_stateid cnr_stateid;
1504 struct nl4_server cnr_src;
1507 struct nfs42_seek_args {
1508 struct nfs4_sequence_args seq_args;
1510 struct nfs_fh *sa_fh;
1511 nfs4_stateid sa_stateid;
1516 struct nfs42_seek_res {
1517 struct nfs4_sequence_res seq_res;
1518 unsigned int status;
1524 struct nfs42_setxattrargs {
1525 struct nfs4_sequence_args seq_args;
1527 const char *xattr_name;
1530 struct page **xattr_pages;
1533 struct nfs42_setxattrres {
1534 struct nfs4_sequence_res seq_res;
1535 struct nfs4_change_info cinfo;
1538 struct nfs42_getxattrargs {
1539 struct nfs4_sequence_args seq_args;
1541 const char *xattr_name;
1543 struct page **xattr_pages;
1546 struct nfs42_getxattrres {
1547 struct nfs4_sequence_res seq_res;
1551 struct nfs42_listxattrsargs {
1552 struct nfs4_sequence_args seq_args;
1556 struct page **xattr_pages;
1559 struct nfs42_listxattrsres {
1560 struct nfs4_sequence_res seq_res;
1561 struct page *scratch;
1569 struct nfs42_removexattrargs {
1570 struct nfs4_sequence_args seq_args;
1572 const char *xattr_name;
1575 struct nfs42_removexattrres {
1576 struct nfs4_sequence_res seq_res;
1577 struct nfs4_change_info cinfo;
1580 #endif /* CONFIG_NFS_V4_2 */
1584 #define NFS_PAGEVEC_SIZE (8U)
1586 struct nfs_page_array {
1587 struct page **pagevec;
1588 unsigned int npages; /* Max length of pagevec */
1589 struct page *page_array[NFS_PAGEVEC_SIZE];
1592 /* used as flag bits in nfs_pgio_header */
1594 NFS_IOHDR_ERROR = 0,
1598 NFS_IOHDR_RESEND_PNFS,
1599 NFS_IOHDR_RESEND_MDS,
1602 struct nfs_io_completion;
1603 struct nfs_pgio_header {
1604 struct inode *inode;
1605 const struct cred *cred;
1606 struct list_head pages;
1607 struct nfs_page *req;
1608 struct nfs_writeverf verf; /* Used for writes */
1610 struct pnfs_layout_segment *lseg;
1612 const struct rpc_call_ops *mds_ops;
1613 void (*release) (struct nfs_pgio_header *hdr);
1614 const struct nfs_pgio_completion_ops *completion_ops;
1615 const struct nfs_rw_ops *rw_ops;
1616 struct nfs_io_completion *io_completion;
1617 struct nfs_direct_req *dreq;
1620 int error; /* merge with pnfs_error */
1621 unsigned int good_bytes; /* boundary of good data */
1622 unsigned long flags;
1627 struct rpc_task task;
1628 struct nfs_fattr fattr;
1629 struct nfs_pgio_args args; /* argument struct */
1630 struct nfs_pgio_res res; /* result struct */
1631 unsigned long timestamp; /* For lease renewal */
1632 int (*pgio_done_cb)(struct rpc_task *, struct nfs_pgio_header *);
1633 __u64 mds_offset; /* Filelayout dense stripe */
1634 struct nfs_page_array page_array;
1635 struct nfs_client *ds_clp; /* pNFS data server */
1636 u32 ds_commit_idx; /* ds index if ds_clp is set */
1637 u32 pgio_mirror_idx;/* mirror index in pgio layer */
1640 struct nfs_mds_commit_info {
1642 atomic_long_t ncommit;
1643 struct list_head list;
1646 struct nfs_commit_info;
1647 struct nfs_commit_data;
1649 struct nfs_commit_completion_ops {
1650 void (*completion) (struct nfs_commit_data *data);
1651 void (*resched_write) (struct nfs_commit_info *, struct nfs_page *);
1654 struct nfs_commit_info {
1655 struct inode *inode; /* Needed for inode->i_lock */
1656 struct nfs_mds_commit_info *mds;
1657 struct pnfs_ds_commit_info *ds;
1658 struct nfs_direct_req *dreq; /* O_DIRECT request */
1659 const struct nfs_commit_completion_ops *completion_ops;
1662 struct nfs_commit_data {
1663 struct rpc_task task;
1664 struct inode *inode;
1665 const struct cred *cred;
1666 struct nfs_fattr fattr;
1667 struct nfs_writeverf verf;
1668 struct list_head pages; /* Coalesced requests we wish to flush */
1669 struct list_head list; /* lists of struct nfs_write_data */
1670 struct nfs_direct_req *dreq; /* O_DIRECT request */
1671 struct nfs_commitargs args; /* argument struct */
1672 struct nfs_commitres res; /* result struct */
1673 struct nfs_open_context *context;
1674 struct pnfs_layout_segment *lseg;
1675 struct nfs_client *ds_clp; /* pNFS data server */
1676 int ds_commit_index;
1678 const struct rpc_call_ops *mds_ops;
1679 const struct nfs_commit_completion_ops *completion_ops;
1680 int (*commit_done_cb) (struct rpc_task *task, struct nfs_commit_data *data);
1681 unsigned long flags;
1684 struct nfs_pgio_completion_ops {
1685 void (*error_cleanup)(struct list_head *head, int);
1686 void (*init_hdr)(struct nfs_pgio_header *hdr);
1687 void (*completion)(struct nfs_pgio_header *hdr);
1688 void (*reschedule_io)(struct nfs_pgio_header *hdr);
1691 struct nfs_unlinkdata {
1692 struct nfs_removeargs args;
1693 struct nfs_removeres res;
1694 struct dentry *dentry;
1695 wait_queue_head_t wq;
1696 const struct cred *cred;
1697 struct nfs_fattr dir_attr;
1701 struct nfs_renamedata {
1702 struct nfs_renameargs args;
1703 struct nfs_renameres res;
1704 const struct cred *cred;
1705 struct inode *old_dir;
1706 struct dentry *old_dentry;
1707 struct nfs_fattr old_fattr;
1708 struct inode *new_dir;
1709 struct dentry *new_dentry;
1710 struct nfs_fattr new_fattr;
1711 void (*complete)(struct rpc_task *, struct nfs_renamedata *);
1716 struct nfs_access_entry;
1719 struct nfs_subversion;
1720 struct nfs_mount_info;
1721 struct nfs_client_initdata;
1722 struct nfs_pageio_descriptor;
1726 * RPC procedure vector for NFSv2/NFSv3 demuxing
1728 struct nfs_rpc_ops {
1729 u32 version; /* Protocol version */
1730 const struct dentry_operations *dentry_ops;
1731 const struct inode_operations *dir_inode_ops;
1732 const struct inode_operations *file_inode_ops;
1733 const struct file_operations *file_ops;
1734 const struct nlmclnt_operations *nlmclnt_ops;
1736 int (*getroot) (struct nfs_server *, struct nfs_fh *,
1737 struct nfs_fsinfo *);
1738 int (*submount) (struct fs_context *, struct nfs_server *);
1739 int (*try_get_tree) (struct fs_context *);
1740 int (*getattr) (struct nfs_server *, struct nfs_fh *,
1741 struct nfs_fattr *, struct nfs4_label *,
1743 int (*setattr) (struct dentry *, struct nfs_fattr *,
1745 int (*lookup) (struct inode *, struct dentry *,
1746 struct nfs_fh *, struct nfs_fattr *,
1747 struct nfs4_label *);
1748 int (*lookupp) (struct inode *, struct nfs_fh *,
1749 struct nfs_fattr *, struct nfs4_label *);
1750 int (*access) (struct inode *, struct nfs_access_entry *);
1751 int (*readlink)(struct inode *, struct page *, unsigned int,
1753 int (*create) (struct inode *, struct dentry *,
1754 struct iattr *, int);
1755 int (*remove) (struct inode *, struct dentry *);
1756 void (*unlink_setup) (struct rpc_message *, struct dentry *, struct inode *);
1757 void (*unlink_rpc_prepare) (struct rpc_task *, struct nfs_unlinkdata *);
1758 int (*unlink_done) (struct rpc_task *, struct inode *);
1759 void (*rename_setup) (struct rpc_message *msg,
1760 struct dentry *old_dentry,
1761 struct dentry *new_dentry);
1762 void (*rename_rpc_prepare)(struct rpc_task *task, struct nfs_renamedata *);
1763 int (*rename_done) (struct rpc_task *task, struct inode *old_dir, struct inode *new_dir);
1764 int (*link) (struct inode *, struct inode *, const struct qstr *);
1765 int (*symlink) (struct inode *, struct dentry *, struct page *,
1766 unsigned int, struct iattr *);
1767 int (*mkdir) (struct inode *, struct dentry *, struct iattr *);
1768 int (*rmdir) (struct inode *, const struct qstr *);
1769 int (*readdir) (struct nfs_readdir_arg *, struct nfs_readdir_res *);
1770 int (*mknod) (struct inode *, struct dentry *, struct iattr *,
1772 int (*statfs) (struct nfs_server *, struct nfs_fh *,
1773 struct nfs_fsstat *);
1774 int (*fsinfo) (struct nfs_server *, struct nfs_fh *,
1775 struct nfs_fsinfo *);
1776 int (*pathconf) (struct nfs_server *, struct nfs_fh *,
1777 struct nfs_pathconf *);
1778 int (*set_capabilities)(struct nfs_server *, struct nfs_fh *);
1779 int (*decode_dirent)(struct xdr_stream *, struct nfs_entry *, bool);
1780 int (*pgio_rpc_prepare)(struct rpc_task *,
1781 struct nfs_pgio_header *);
1782 void (*read_setup)(struct nfs_pgio_header *, struct rpc_message *);
1783 int (*read_done)(struct rpc_task *, struct nfs_pgio_header *);
1784 void (*write_setup)(struct nfs_pgio_header *, struct rpc_message *,
1785 struct rpc_clnt **);
1786 int (*write_done)(struct rpc_task *, struct nfs_pgio_header *);
1787 void (*commit_setup) (struct nfs_commit_data *, struct rpc_message *,
1788 struct rpc_clnt **);
1789 void (*commit_rpc_prepare)(struct rpc_task *, struct nfs_commit_data *);
1790 int (*commit_done) (struct rpc_task *, struct nfs_commit_data *);
1791 int (*lock)(struct file *, int, struct file_lock *);
1792 int (*lock_check_bounds)(const struct file_lock *);
1793 void (*clear_acl_cache)(struct inode *);
1794 void (*close_context)(struct nfs_open_context *ctx, int);
1795 struct inode * (*open_context) (struct inode *dir,
1796 struct nfs_open_context *ctx,
1798 struct iattr *iattr,
1800 int (*have_delegation)(struct inode *, fmode_t);
1801 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *);
1802 struct nfs_client *(*init_client) (struct nfs_client *,
1803 const struct nfs_client_initdata *);
1804 void (*free_client) (struct nfs_client *);
1805 struct nfs_server *(*create_server)(struct fs_context *);
1806 struct nfs_server *(*clone_server)(struct nfs_server *, struct nfs_fh *,
1807 struct nfs_fattr *, rpc_authflavor_t);
1811 * NFS_CALL(getattr, inode, (fattr));
1813 * NFS_PROTO(inode)->getattr(fattr);
1815 #define NFS_CALL(op, inode, args) NFS_PROTO(inode)->op args
1818 * Function vectors etc. for the NFS client
1820 extern const struct nfs_rpc_ops nfs_v2_clientops;
1821 extern const struct nfs_rpc_ops nfs_v3_clientops;
1822 extern const struct nfs_rpc_ops nfs_v4_clientops;
1823 extern const struct rpc_version nfs_version2;
1824 extern const struct rpc_version nfs_version3;
1825 extern const struct rpc_version nfs_version4;
1827 extern const struct rpc_version nfsacl_version3;
1828 extern const struct rpc_program nfsacl_program;