nfs42xdr.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. /*
  2. * Copyright (c) 2014 Anna Schumaker <Anna.Schumaker@Netapp.com>
  3. */
  4. #ifndef __LINUX_FS_NFS_NFS4_2XDR_H
  5. #define __LINUX_FS_NFS_NFS4_2XDR_H
  6. #include "nfs42.h"
  7. #define encode_fallocate_maxsz (encode_stateid_maxsz + \
  8. 2 /* offset */ + \
  9. 2 /* length */)
  10. #define NFS42_WRITE_RES_SIZE (1 /* wr_callback_id size */ +\
  11. XDR_QUADLEN(NFS4_STATEID_SIZE) + \
  12. 2 /* wr_count */ + \
  13. 1 /* wr_committed */ + \
  14. XDR_QUADLEN(NFS4_VERIFIER_SIZE))
  15. #define encode_allocate_maxsz (op_encode_hdr_maxsz + \
  16. encode_fallocate_maxsz)
  17. #define decode_allocate_maxsz (op_decode_hdr_maxsz)
  18. #define encode_copy_maxsz (op_encode_hdr_maxsz + \
  19. XDR_QUADLEN(NFS4_STATEID_SIZE) + \
  20. XDR_QUADLEN(NFS4_STATEID_SIZE) + \
  21. 2 + 2 + 2 + 1 + 1 + 1)
  22. #define decode_copy_maxsz (op_decode_hdr_maxsz + \
  23. NFS42_WRITE_RES_SIZE + \
  24. 1 /* cr_consecutive */ + \
  25. 1 /* cr_synchronous */)
  26. #define encode_deallocate_maxsz (op_encode_hdr_maxsz + \
  27. encode_fallocate_maxsz)
  28. #define decode_deallocate_maxsz (op_decode_hdr_maxsz)
  29. #define encode_seek_maxsz (op_encode_hdr_maxsz + \
  30. encode_stateid_maxsz + \
  31. 2 /* offset */ + \
  32. 1 /* whence */)
  33. #define decode_seek_maxsz (op_decode_hdr_maxsz + \
  34. 1 /* eof */ + \
  35. 1 /* whence */ + \
  36. 2 /* offset */ + \
  37. 2 /* length */)
  38. #define encode_io_info_maxsz 4
  39. #define encode_layoutstats_maxsz (op_decode_hdr_maxsz + \
  40. 2 /* offset */ + \
  41. 2 /* length */ + \
  42. encode_stateid_maxsz + \
  43. encode_io_info_maxsz + \
  44. encode_io_info_maxsz + \
  45. 1 /* opaque devaddr4 length */ + \
  46. XDR_QUADLEN(PNFS_LAYOUTSTATS_MAXSIZE))
  47. #define decode_layoutstats_maxsz (op_decode_hdr_maxsz)
  48. #define encode_clone_maxsz (encode_stateid_maxsz + \
  49. encode_stateid_maxsz + \
  50. 2 /* src offset */ + \
  51. 2 /* dst offset */ + \
  52. 2 /* count */)
  53. #define decode_clone_maxsz (op_decode_hdr_maxsz)
  54. #define NFS4_enc_allocate_sz (compound_encode_hdr_maxsz + \
  55. encode_putfh_maxsz + \
  56. encode_allocate_maxsz + \
  57. encode_getattr_maxsz)
  58. #define NFS4_dec_allocate_sz (compound_decode_hdr_maxsz + \
  59. decode_putfh_maxsz + \
  60. decode_allocate_maxsz + \
  61. decode_getattr_maxsz)
  62. #define NFS4_enc_copy_sz (compound_encode_hdr_maxsz + \
  63. encode_putfh_maxsz + \
  64. encode_savefh_maxsz + \
  65. encode_putfh_maxsz + \
  66. encode_copy_maxsz)
  67. #define NFS4_dec_copy_sz (compound_decode_hdr_maxsz + \
  68. decode_putfh_maxsz + \
  69. decode_savefh_maxsz + \
  70. decode_putfh_maxsz + \
  71. decode_copy_maxsz)
  72. #define NFS4_enc_deallocate_sz (compound_encode_hdr_maxsz + \
  73. encode_putfh_maxsz + \
  74. encode_deallocate_maxsz + \
  75. encode_getattr_maxsz)
  76. #define NFS4_dec_deallocate_sz (compound_decode_hdr_maxsz + \
  77. decode_putfh_maxsz + \
  78. decode_deallocate_maxsz + \
  79. decode_getattr_maxsz)
  80. #define NFS4_enc_seek_sz (compound_encode_hdr_maxsz + \
  81. encode_putfh_maxsz + \
  82. encode_seek_maxsz)
  83. #define NFS4_dec_seek_sz (compound_decode_hdr_maxsz + \
  84. decode_putfh_maxsz + \
  85. decode_seek_maxsz)
  86. #define NFS4_enc_layoutstats_sz (compound_encode_hdr_maxsz + \
  87. encode_sequence_maxsz + \
  88. encode_putfh_maxsz + \
  89. PNFS_LAYOUTSTATS_MAXDEV * encode_layoutstats_maxsz)
  90. #define NFS4_dec_layoutstats_sz (compound_decode_hdr_maxsz + \
  91. decode_sequence_maxsz + \
  92. decode_putfh_maxsz + \
  93. PNFS_LAYOUTSTATS_MAXDEV * decode_layoutstats_maxsz)
  94. #define NFS4_enc_clone_sz (compound_encode_hdr_maxsz + \
  95. encode_sequence_maxsz + \
  96. encode_putfh_maxsz + \
  97. encode_savefh_maxsz + \
  98. encode_putfh_maxsz + \
  99. encode_clone_maxsz + \
  100. encode_getattr_maxsz)
  101. #define NFS4_dec_clone_sz (compound_decode_hdr_maxsz + \
  102. decode_sequence_maxsz + \
  103. decode_putfh_maxsz + \
  104. decode_savefh_maxsz + \
  105. decode_putfh_maxsz + \
  106. decode_clone_maxsz + \
  107. decode_getattr_maxsz)
  108. static void encode_fallocate(struct xdr_stream *xdr,
  109. struct nfs42_falloc_args *args)
  110. {
  111. encode_nfs4_stateid(xdr, &args->falloc_stateid);
  112. encode_uint64(xdr, args->falloc_offset);
  113. encode_uint64(xdr, args->falloc_length);
  114. }
  115. static void encode_allocate(struct xdr_stream *xdr,
  116. struct nfs42_falloc_args *args,
  117. struct compound_hdr *hdr)
  118. {
  119. encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr);
  120. encode_fallocate(xdr, args);
  121. }
  122. static void encode_copy(struct xdr_stream *xdr,
  123. struct nfs42_copy_args *args,
  124. struct compound_hdr *hdr)
  125. {
  126. encode_op_hdr(xdr, OP_COPY, decode_copy_maxsz, hdr);
  127. encode_nfs4_stateid(xdr, &args->src_stateid);
  128. encode_nfs4_stateid(xdr, &args->dst_stateid);
  129. encode_uint64(xdr, args->src_pos);
  130. encode_uint64(xdr, args->dst_pos);
  131. encode_uint64(xdr, args->count);
  132. encode_uint32(xdr, 1); /* consecutive = true */
  133. encode_uint32(xdr, 1); /* synchronous = true */
  134. encode_uint32(xdr, 0); /* src server list */
  135. }
  136. static void encode_deallocate(struct xdr_stream *xdr,
  137. struct nfs42_falloc_args *args,
  138. struct compound_hdr *hdr)
  139. {
  140. encode_op_hdr(xdr, OP_DEALLOCATE, decode_deallocate_maxsz, hdr);
  141. encode_fallocate(xdr, args);
  142. }
  143. static void encode_seek(struct xdr_stream *xdr,
  144. struct nfs42_seek_args *args,
  145. struct compound_hdr *hdr)
  146. {
  147. encode_op_hdr(xdr, OP_SEEK, decode_seek_maxsz, hdr);
  148. encode_nfs4_stateid(xdr, &args->sa_stateid);
  149. encode_uint64(xdr, args->sa_offset);
  150. encode_uint32(xdr, args->sa_what);
  151. }
  152. static void encode_layoutstats(struct xdr_stream *xdr,
  153. struct nfs42_layoutstat_args *args,
  154. struct nfs42_layoutstat_devinfo *devinfo,
  155. struct compound_hdr *hdr)
  156. {
  157. __be32 *p;
  158. encode_op_hdr(xdr, OP_LAYOUTSTATS, decode_layoutstats_maxsz, hdr);
  159. p = reserve_space(xdr, 8 + 8);
  160. p = xdr_encode_hyper(p, devinfo->offset);
  161. p = xdr_encode_hyper(p, devinfo->length);
  162. encode_nfs4_stateid(xdr, &args->stateid);
  163. p = reserve_space(xdr, 4*8 + NFS4_DEVICEID4_SIZE + 4);
  164. p = xdr_encode_hyper(p, devinfo->read_count);
  165. p = xdr_encode_hyper(p, devinfo->read_bytes);
  166. p = xdr_encode_hyper(p, devinfo->write_count);
  167. p = xdr_encode_hyper(p, devinfo->write_bytes);
  168. p = xdr_encode_opaque_fixed(p, devinfo->dev_id.data,
  169. NFS4_DEVICEID4_SIZE);
  170. /* Encode layoutupdate4 */
  171. *p++ = cpu_to_be32(devinfo->layout_type);
  172. if (devinfo->ld_private.ops)
  173. devinfo->ld_private.ops->encode(xdr, args,
  174. &devinfo->ld_private);
  175. else
  176. encode_uint32(xdr, 0);
  177. }
  178. static void encode_clone(struct xdr_stream *xdr,
  179. struct nfs42_clone_args *args,
  180. struct compound_hdr *hdr)
  181. {
  182. __be32 *p;
  183. encode_op_hdr(xdr, OP_CLONE, decode_clone_maxsz, hdr);
  184. encode_nfs4_stateid(xdr, &args->src_stateid);
  185. encode_nfs4_stateid(xdr, &args->dst_stateid);
  186. p = reserve_space(xdr, 3*8);
  187. p = xdr_encode_hyper(p, args->src_offset);
  188. p = xdr_encode_hyper(p, args->dst_offset);
  189. xdr_encode_hyper(p, args->count);
  190. }
  191. /*
  192. * Encode ALLOCATE request
  193. */
  194. static void nfs4_xdr_enc_allocate(struct rpc_rqst *req,
  195. struct xdr_stream *xdr,
  196. struct nfs42_falloc_args *args)
  197. {
  198. struct compound_hdr hdr = {
  199. .minorversion = nfs4_xdr_minorversion(&args->seq_args),
  200. };
  201. encode_compound_hdr(xdr, req, &hdr);
  202. encode_sequence(xdr, &args->seq_args, &hdr);
  203. encode_putfh(xdr, args->falloc_fh, &hdr);
  204. encode_allocate(xdr, args, &hdr);
  205. encode_getfattr(xdr, args->falloc_bitmask, &hdr);
  206. encode_nops(&hdr);
  207. }
  208. /*
  209. * Encode COPY request
  210. */
  211. static void nfs4_xdr_enc_copy(struct rpc_rqst *req,
  212. struct xdr_stream *xdr,
  213. struct nfs42_copy_args *args)
  214. {
  215. struct compound_hdr hdr = {
  216. .minorversion = nfs4_xdr_minorversion(&args->seq_args),
  217. };
  218. encode_compound_hdr(xdr, req, &hdr);
  219. encode_sequence(xdr, &args->seq_args, &hdr);
  220. encode_putfh(xdr, args->src_fh, &hdr);
  221. encode_savefh(xdr, &hdr);
  222. encode_putfh(xdr, args->dst_fh, &hdr);
  223. encode_copy(xdr, args, &hdr);
  224. encode_nops(&hdr);
  225. }
  226. /*
  227. * Encode DEALLOCATE request
  228. */
  229. static void nfs4_xdr_enc_deallocate(struct rpc_rqst *req,
  230. struct xdr_stream *xdr,
  231. struct nfs42_falloc_args *args)
  232. {
  233. struct compound_hdr hdr = {
  234. .minorversion = nfs4_xdr_minorversion(&args->seq_args),
  235. };
  236. encode_compound_hdr(xdr, req, &hdr);
  237. encode_sequence(xdr, &args->seq_args, &hdr);
  238. encode_putfh(xdr, args->falloc_fh, &hdr);
  239. encode_deallocate(xdr, args, &hdr);
  240. encode_getfattr(xdr, args->falloc_bitmask, &hdr);
  241. encode_nops(&hdr);
  242. }
  243. /*
  244. * Encode SEEK request
  245. */
  246. static void nfs4_xdr_enc_seek(struct rpc_rqst *req,
  247. struct xdr_stream *xdr,
  248. struct nfs42_seek_args *args)
  249. {
  250. struct compound_hdr hdr = {
  251. .minorversion = nfs4_xdr_minorversion(&args->seq_args),
  252. };
  253. encode_compound_hdr(xdr, req, &hdr);
  254. encode_sequence(xdr, &args->seq_args, &hdr);
  255. encode_putfh(xdr, args->sa_fh, &hdr);
  256. encode_seek(xdr, args, &hdr);
  257. encode_nops(&hdr);
  258. }
  259. /*
  260. * Encode LAYOUTSTATS request
  261. */
  262. static void nfs4_xdr_enc_layoutstats(struct rpc_rqst *req,
  263. struct xdr_stream *xdr,
  264. struct nfs42_layoutstat_args *args)
  265. {
  266. int i;
  267. struct compound_hdr hdr = {
  268. .minorversion = nfs4_xdr_minorversion(&args->seq_args),
  269. };
  270. encode_compound_hdr(xdr, req, &hdr);
  271. encode_sequence(xdr, &args->seq_args, &hdr);
  272. encode_putfh(xdr, args->fh, &hdr);
  273. WARN_ON(args->num_dev > PNFS_LAYOUTSTATS_MAXDEV);
  274. for (i = 0; i < args->num_dev; i++)
  275. encode_layoutstats(xdr, args, &args->devinfo[i], &hdr);
  276. encode_nops(&hdr);
  277. }
  278. /*
  279. * Encode CLONE request
  280. */
  281. static void nfs4_xdr_enc_clone(struct rpc_rqst *req,
  282. struct xdr_stream *xdr,
  283. struct nfs42_clone_args *args)
  284. {
  285. struct compound_hdr hdr = {
  286. .minorversion = nfs4_xdr_minorversion(&args->seq_args),
  287. };
  288. encode_compound_hdr(xdr, req, &hdr);
  289. encode_sequence(xdr, &args->seq_args, &hdr);
  290. encode_putfh(xdr, args->src_fh, &hdr);
  291. encode_savefh(xdr, &hdr);
  292. encode_putfh(xdr, args->dst_fh, &hdr);
  293. encode_clone(xdr, args, &hdr);
  294. encode_getfattr(xdr, args->dst_bitmask, &hdr);
  295. encode_nops(&hdr);
  296. }
  297. static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res)
  298. {
  299. return decode_op_hdr(xdr, OP_ALLOCATE);
  300. }
  301. static int decode_write_response(struct xdr_stream *xdr,
  302. struct nfs42_write_res *res)
  303. {
  304. __be32 *p;
  305. p = xdr_inline_decode(xdr, 4 + 8 + 4);
  306. if (unlikely(!p))
  307. goto out_overflow;
  308. /*
  309. * We never use asynchronous mode, so warn if a server returns
  310. * a stateid.
  311. */
  312. if (unlikely(*p != 0)) {
  313. pr_err_once("%s: server has set unrequested "
  314. "asynchronous mode\n", __func__);
  315. return -EREMOTEIO;
  316. }
  317. p++;
  318. p = xdr_decode_hyper(p, &res->count);
  319. res->verifier.committed = be32_to_cpup(p);
  320. return decode_verifier(xdr, &res->verifier.verifier);
  321. out_overflow:
  322. print_overflow_msg(__func__, xdr);
  323. return -EIO;
  324. }
  325. static int decode_copy_requirements(struct xdr_stream *xdr,
  326. struct nfs42_copy_res *res) {
  327. __be32 *p;
  328. p = xdr_inline_decode(xdr, 4 + 4);
  329. if (unlikely(!p))
  330. goto out_overflow;
  331. res->consecutive = be32_to_cpup(p++);
  332. res->synchronous = be32_to_cpup(p++);
  333. return 0;
  334. out_overflow:
  335. print_overflow_msg(__func__, xdr);
  336. return -EIO;
  337. }
  338. static int decode_copy(struct xdr_stream *xdr, struct nfs42_copy_res *res)
  339. {
  340. int status;
  341. status = decode_op_hdr(xdr, OP_COPY);
  342. if (status == NFS4ERR_OFFLOAD_NO_REQS) {
  343. status = decode_copy_requirements(xdr, res);
  344. if (status)
  345. return status;
  346. return NFS4ERR_OFFLOAD_NO_REQS;
  347. } else if (status)
  348. return status;
  349. status = decode_write_response(xdr, &res->write_res);
  350. if (status)
  351. return status;
  352. return decode_copy_requirements(xdr, res);
  353. }
  354. static int decode_deallocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res)
  355. {
  356. return decode_op_hdr(xdr, OP_DEALLOCATE);
  357. }
  358. static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res)
  359. {
  360. int status;
  361. __be32 *p;
  362. status = decode_op_hdr(xdr, OP_SEEK);
  363. if (status)
  364. return status;
  365. p = xdr_inline_decode(xdr, 4 + 8);
  366. if (unlikely(!p))
  367. goto out_overflow;
  368. res->sr_eof = be32_to_cpup(p++);
  369. p = xdr_decode_hyper(p, &res->sr_offset);
  370. return 0;
  371. out_overflow:
  372. print_overflow_msg(__func__, xdr);
  373. return -EIO;
  374. }
  375. static int decode_layoutstats(struct xdr_stream *xdr)
  376. {
  377. return decode_op_hdr(xdr, OP_LAYOUTSTATS);
  378. }
  379. static int decode_clone(struct xdr_stream *xdr)
  380. {
  381. return decode_op_hdr(xdr, OP_CLONE);
  382. }
  383. /*
  384. * Decode ALLOCATE request
  385. */
  386. static int nfs4_xdr_dec_allocate(struct rpc_rqst *rqstp,
  387. struct xdr_stream *xdr,
  388. struct nfs42_falloc_res *res)
  389. {
  390. struct compound_hdr hdr;
  391. int status;
  392. status = decode_compound_hdr(xdr, &hdr);
  393. if (status)
  394. goto out;
  395. status = decode_sequence(xdr, &res->seq_res, rqstp);
  396. if (status)
  397. goto out;
  398. status = decode_putfh(xdr);
  399. if (status)
  400. goto out;
  401. status = decode_allocate(xdr, res);
  402. if (status)
  403. goto out;
  404. decode_getfattr(xdr, res->falloc_fattr, res->falloc_server);
  405. out:
  406. return status;
  407. }
  408. /*
  409. * Decode COPY response
  410. */
  411. static int nfs4_xdr_dec_copy(struct rpc_rqst *rqstp,
  412. struct xdr_stream *xdr,
  413. struct nfs42_copy_res *res)
  414. {
  415. struct compound_hdr hdr;
  416. int status;
  417. status = decode_compound_hdr(xdr, &hdr);
  418. if (status)
  419. goto out;
  420. status = decode_sequence(xdr, &res->seq_res, rqstp);
  421. if (status)
  422. goto out;
  423. status = decode_putfh(xdr);
  424. if (status)
  425. goto out;
  426. status = decode_savefh(xdr);
  427. if (status)
  428. goto out;
  429. status = decode_putfh(xdr);
  430. if (status)
  431. goto out;
  432. status = decode_copy(xdr, res);
  433. out:
  434. return status;
  435. }
  436. /*
  437. * Decode DEALLOCATE request
  438. */
  439. static int nfs4_xdr_dec_deallocate(struct rpc_rqst *rqstp,
  440. struct xdr_stream *xdr,
  441. struct nfs42_falloc_res *res)
  442. {
  443. struct compound_hdr hdr;
  444. int status;
  445. status = decode_compound_hdr(xdr, &hdr);
  446. if (status)
  447. goto out;
  448. status = decode_sequence(xdr, &res->seq_res, rqstp);
  449. if (status)
  450. goto out;
  451. status = decode_putfh(xdr);
  452. if (status)
  453. goto out;
  454. status = decode_deallocate(xdr, res);
  455. if (status)
  456. goto out;
  457. decode_getfattr(xdr, res->falloc_fattr, res->falloc_server);
  458. out:
  459. return status;
  460. }
  461. /*
  462. * Decode SEEK request
  463. */
  464. static int nfs4_xdr_dec_seek(struct rpc_rqst *rqstp,
  465. struct xdr_stream *xdr,
  466. struct nfs42_seek_res *res)
  467. {
  468. struct compound_hdr hdr;
  469. int status;
  470. status = decode_compound_hdr(xdr, &hdr);
  471. if (status)
  472. goto out;
  473. status = decode_sequence(xdr, &res->seq_res, rqstp);
  474. if (status)
  475. goto out;
  476. status = decode_putfh(xdr);
  477. if (status)
  478. goto out;
  479. status = decode_seek(xdr, res);
  480. out:
  481. return status;
  482. }
  483. /*
  484. * Decode LAYOUTSTATS request
  485. */
  486. static int nfs4_xdr_dec_layoutstats(struct rpc_rqst *rqstp,
  487. struct xdr_stream *xdr,
  488. struct nfs42_layoutstat_res *res)
  489. {
  490. struct compound_hdr hdr;
  491. int status, i;
  492. status = decode_compound_hdr(xdr, &hdr);
  493. if (status)
  494. goto out;
  495. status = decode_sequence(xdr, &res->seq_res, rqstp);
  496. if (status)
  497. goto out;
  498. status = decode_putfh(xdr);
  499. if (status)
  500. goto out;
  501. WARN_ON(res->num_dev > PNFS_LAYOUTSTATS_MAXDEV);
  502. for (i = 0; i < res->num_dev; i++) {
  503. status = decode_layoutstats(xdr);
  504. if (status)
  505. goto out;
  506. }
  507. out:
  508. res->rpc_status = status;
  509. return status;
  510. }
  511. /*
  512. * Decode CLONE request
  513. */
  514. static int nfs4_xdr_dec_clone(struct rpc_rqst *rqstp,
  515. struct xdr_stream *xdr,
  516. struct nfs42_clone_res *res)
  517. {
  518. struct compound_hdr hdr;
  519. int status;
  520. status = decode_compound_hdr(xdr, &hdr);
  521. if (status)
  522. goto out;
  523. status = decode_sequence(xdr, &res->seq_res, rqstp);
  524. if (status)
  525. goto out;
  526. status = decode_putfh(xdr);
  527. if (status)
  528. goto out;
  529. status = decode_savefh(xdr);
  530. if (status)
  531. goto out;
  532. status = decode_putfh(xdr);
  533. if (status)
  534. goto out;
  535. status = decode_clone(xdr);
  536. if (status)
  537. goto out;
  538. status = decode_getfattr(xdr, res->dst_fattr, res->server);
  539. out:
  540. res->rpc_status = status;
  541. return status;
  542. }
  543. #endif /* __LINUX_FS_NFS_NFS4_2XDR_H */