nfs_xdr.h 16 KB

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