nfsv41-sys 0.1.1

Bindings for the NFSv4.1 protocol structs and XDR codecs (nfsv41.h)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
/*
 * The content of this file is a mix of rpcgen-generated
 * and hand-edited program text.  It is not automatically
 * generated by, e.g., build processes.
 *
 * This file is under version control.
 */

#ifndef _NFSV41_H_RPCGEN
#define _NFSV41_H_RPCGEN
#ifdef __cplusplus
extern "C" {
#endif

#ifndef RPCSEC_GSS
#define RPCSEC_GSS 6
#endif

#ifndef _AUTH_SYS_DEFINE_FOR_NFSv41
#define _AUTH_SYS_DEFINE_FOR_NFSv41

#include "ganesha_rpc.h"

	typedef struct authsys_parms authsys_parms;
#endif				/* _AUTH_SYS_DEFINE_FOR_NFSv41 */

#define NFS4_FHSIZE 128
#define NFS4_VERIFIER_SIZE 8
#define NFS4_OPAQUE_LIMIT 1024
#define NFS4_SESSIONID_SIZE 16
#define NFS4_INT64_MAX 0x7fffffffffffffff
#define NFS4_UINT64_MAX 0xffffffffffffffff
#define NFS4_INT32_MAX 0x7fffffff
#define NFS4_UINT32_MAX 0xffffffff
#define NFS4_MAXFILELEN 0xffffffffffffffff
#define NFS4_MAXFILEOFF 0xfffffffffffffffe

	enum nfs_ftype4 {
		NF4REG = 1,
		NF4DIR = 2,
		NF4BLK = 3,
		NF4CHR = 4,
		NF4LNK = 5,
		NF4SOCK = 6,
		NF4FIFO = 7,
		NF4ATTRDIR = 8,
		NF4NAMEDATTR = 9,
	};
	typedef enum nfs_ftype4 nfs_ftype4;

	enum nfsstat4 {
		NFS4_OK = 0,
		NFS4ERR_PERM = 1,
		NFS4ERR_NOENT = 2,
		NFS4ERR_IO = 5,
		NFS4ERR_NXIO = 6,
		NFS4ERR_ACCESS = 13,
		NFS4ERR_EXIST = 17,
		NFS4ERR_XDEV = 18,
		NFS4ERR_NOTDIR = 20,
		NFS4ERR_ISDIR = 21,
		NFS4ERR_INVAL = 22,
		NFS4ERR_FBIG = 27,
		NFS4ERR_NOSPC = 28,
		NFS4ERR_ROFS = 30,
		NFS4ERR_MLINK = 31,
		NFS4ERR_NAMETOOLONG = 63,
		NFS4ERR_NOTEMPTY = 66,
		NFS4ERR_DQUOT = 69,
		NFS4ERR_STALE = 70,
		NFS4ERR_BADHANDLE = 10001,
		NFS4ERR_BAD_COOKIE = 10003,
		NFS4ERR_NOTSUPP = 10004,
		NFS4ERR_TOOSMALL = 10005,
		NFS4ERR_SERVERFAULT = 10006,
		NFS4ERR_BADTYPE = 10007,
		NFS4ERR_DELAY = 10008,
		NFS4ERR_SAME = 10009,
		NFS4ERR_DENIED = 10010,
		NFS4ERR_EXPIRED = 10011,
		NFS4ERR_LOCKED = 10012,
		NFS4ERR_GRACE = 10013,
		NFS4ERR_FHEXPIRED = 10014,
		NFS4ERR_SHARE_DENIED = 10015,
		NFS4ERR_WRONGSEC = 10016,
		NFS4ERR_CLID_INUSE = 10017,
		NFS4ERR_RESOURCE = 10018,
		NFS4ERR_MOVED = 10019,
		NFS4ERR_NOFILEHANDLE = 10020,
		NFS4ERR_MINOR_VERS_MISMATCH = 10021,
		NFS4ERR_STALE_CLIENTID = 10022,
		NFS4ERR_STALE_STATEID = 10023,
		NFS4ERR_OLD_STATEID = 10024,
		NFS4ERR_BAD_STATEID = 10025,
		NFS4ERR_BAD_SEQID = 10026,
		NFS4ERR_NOT_SAME = 10027,
		NFS4ERR_LOCK_RANGE = 10028,
		NFS4ERR_SYMLINK = 10029,
		NFS4ERR_RESTOREFH = 10030,
		NFS4ERR_LEASE_MOVED = 10031,
		NFS4ERR_ATTRNOTSUPP = 10032,
		NFS4ERR_NO_GRACE = 10033,
		NFS4ERR_RECLAIM_BAD = 10034,
		NFS4ERR_RECLAIM_CONFLICT = 10035,
		NFS4ERR_BADXDR = 10036,
		NFS4ERR_LOCKS_HELD = 10037,
		NFS4ERR_OPENMODE = 10038,
		NFS4ERR_BADOWNER = 10039,
		NFS4ERR_BADCHAR = 10040,
		NFS4ERR_BADNAME = 10041,
		NFS4ERR_BAD_RANGE = 10042,
		NFS4ERR_LOCK_NOTSUPP = 10043,
		NFS4ERR_OP_ILLEGAL = 10044,
		NFS4ERR_DEADLOCK = 10045,
		NFS4ERR_FILE_OPEN = 10046,
		NFS4ERR_ADMIN_REVOKED = 10047,
		NFS4ERR_CB_PATH_DOWN = 10048,
		NFS4ERR_BADIOMODE = 10049,
		NFS4ERR_BADLAYOUT = 10050,
		NFS4ERR_BAD_SESSION_DIGEST = 10051,
		NFS4ERR_BADSESSION = 10052,
		NFS4ERR_BADSLOT = 10053,
		NFS4ERR_COMPLETE_ALREADY = 10054,
		NFS4ERR_CONN_NOT_BOUND_TO_SESSION = 10055,
		NFS4ERR_DELEG_ALREADY_WANTED = 10056,
		NFS4ERR_BACK_CHAN_BUSY = 10057,
		NFS4ERR_LAYOUTTRYLATER = 10058,
		NFS4ERR_LAYOUTUNAVAILABLE = 10059,
		NFS4ERR_NOMATCHING_LAYOUT = 10060,
		NFS4ERR_RECALLCONFLICT = 10061,
		NFS4ERR_UNKNOWN_LAYOUTTYPE = 10062,
		NFS4ERR_SEQ_MISORDERED = 10063,
		NFS4ERR_SEQUENCE_POS = 10064,
		NFS4ERR_REQ_TOO_BIG = 10065,
		NFS4ERR_REP_TOO_BIG = 10066,
		NFS4ERR_REP_TOO_BIG_TO_CACHE = 10067,
		NFS4ERR_RETRY_UNCACHED_REP = 10068,
		NFS4ERR_UNSAFE_COMPOUND = 10069,
		NFS4ERR_TOO_MANY_OPS = 10070,
		NFS4ERR_OP_NOT_IN_SESSION = 10071,
		NFS4ERR_HASH_ALG_UNSUPP = 10072,
		NFS4ERR_CLIENTID_BUSY = 10074,
		NFS4ERR_PNFS_IO_HOLE = 10075,
		NFS4ERR_SEQ_FALSE_RETRY = 10076,
		NFS4ERR_BAD_HIGH_SLOT = 10077,
		NFS4ERR_DEADSESSION = 10078,
		NFS4ERR_ENCR_ALG_UNSUPP = 10079,
		NFS4ERR_PNFS_NO_LAYOUT = 10080,
		NFS4ERR_NOT_ONLY_OP = 10081,
		NFS4ERR_WRONG_CRED = 10082,
		NFS4ERR_WRONG_TYPE = 10083,
		NFS4ERR_DIRDELEG_UNAVAIL = 10084,
		NFS4ERR_REJECT_DELEG = 10085,
		NFS4ERR_RETURNCONFLICT = 10086,
		NFS4ERR_DELEG_REVOKED = 10087,

		/* NFSv4.2 */
		NFS4ERR_PARTNER_NOTSUPP = 10088,
		NFS4ERR_PARTNER_NO_AUTH = 10089,
		NFS4ERR_UNION_NOTSUPP = 10090,
		NFS4ERR_OFFLOAD_DENIED = 10091,
		NFS4ERR_WRONG_LFS = 10092,
		NFS4ERR_BADLABEL = 10093,

		/* NFS End-to-end Data Integrity */
		NFS4ERR_PROT_NOTSUPP = 10200,
		NFS4ERR_PROT_INVAL = 10201,
		NFS4ERR_PROT_FAIL = 10202,
		NFS4ERR_PROT_LATFAIL = 10203,

		NFS4ERR_REPLAY = 11001,
	};
	typedef enum nfsstat4 nfsstat4;

	typedef struct {
		u_int attrlist4_len;
		char *attrlist4_val;
	} attrlist4;

	struct bitmap4 {
		u_int bitmap4_len;
		uint32_t map[3];
	};
	typedef struct bitmap4 bitmap4;

	typedef uint64_t changeid4;

	typedef uint64_t clientid4;

	typedef uint32_t count4;

	typedef uint64_t length4;

	typedef uint32_t mode4;

	typedef uint64_t nfs_cookie4;

	typedef struct {
		u_int nfs_fh4_len;
		char *nfs_fh4_val;
	} nfs_fh4;

	typedef uint64_t offset4;

	typedef uint32_t qop4;

	typedef struct {
		u_int sec_oid4_len;
		char *sec_oid4_val;
	} sec_oid4;

	typedef uint32_t sequenceid4;

	typedef uint32_t seqid4;

	typedef char sessionid4[NFS4_SESSIONID_SIZE];

	typedef uint32_t slotid4;

	typedef struct {
		u_int utf8string_len;
		char *utf8string_val;
	} utf8string;

	typedef utf8string utf8str_cis;

	typedef utf8string utf8str_cs;

	typedef utf8string utf8str_mixed;

	typedef utf8str_cs component4;

	typedef utf8str_cs linktext4;

	typedef struct {
		u_int pathname4_len;
		component4 *pathname4_val;
	} pathname4;

	typedef char verifier4[NFS4_VERIFIER_SIZE];

	struct nfstime4 {
		int64_t seconds;
		uint32_t nseconds;
	};
	typedef struct nfstime4 nfstime4;

	enum time_how4 {
		SET_TO_SERVER_TIME4 = 0,
		SET_TO_CLIENT_TIME4 = 1,
	};
	typedef enum time_how4 time_how4;

	struct settime4 {
		time_how4 set_it;
		union {
			nfstime4 time;
		} settime4_u;
	};
	typedef struct settime4 settime4;

	typedef uint32_t nfs_lease4;

	struct fsid4 {
		uint64_t major;
		uint64_t minor;
	};
	typedef struct fsid4 fsid4;

	struct change_policy4 {
		uint64_t cp_major;
		uint64_t cp_minor;
	};
	typedef struct change_policy4 change_policy4;

	struct fs_location4 {
		struct {
			u_int server_len;
			utf8str_cis *server_val;
		} server;
		pathname4 rootpath;
	};
	typedef struct fs_location4 fs_location4;

	struct fs_locations4 {
		pathname4 fs_root;
		struct {
			u_int locations_len;
			fs_location4 *locations_val;
		} locations;
	};
	typedef struct fs_locations4 fs_locations4;
#define ACL4_SUPPORT_ALLOW_ACL 0x00000001
#define ACL4_SUPPORT_DENY_ACL 0x00000002
#define ACL4_SUPPORT_AUDIT_ACL 0x00000004
#define ACL4_SUPPORT_ALARM_ACL 0x00000008

	typedef uint32_t acetype4;
#define ACE4_ACCESS_ALLOWED_ACE_TYPE 0x00000000
#define ACE4_ACCESS_DENIED_ACE_TYPE 0x00000001
#define ACE4_SYSTEM_AUDIT_ACE_TYPE 0x00000002
#define ACE4_SYSTEM_ALARM_ACE_TYPE 0x00000003

	typedef uint32_t aceflag4;
#define ACE4_FILE_INHERIT_ACE 0x00000001
#define ACE4_DIRECTORY_INHERIT_ACE 0x00000002
#define ACE4_NO_PROPAGATE_INHERIT_ACE 0x00000004
#define ACE4_INHERIT_ONLY_ACE 0x00000008
#define ACE4_SUCCESSFUL_ACCESS_ACE_FLAG 0x00000010
#define ACE4_FAILED_ACCESS_ACE_FLAG 0x00000020
#define ACE4_IDENTIFIER_GROUP 0x00000040
#define ACE4_INHERITED_ACE 0x00000080

	typedef uint32_t acemask4;
#define ACE4_READ_DATA 0x00000001
#define ACE4_LIST_DIRECTORY 0x00000001
#define ACE4_WRITE_DATA 0x00000002
#define ACE4_ADD_FILE 0x00000002
#define ACE4_APPEND_DATA 0x00000004
#define ACE4_ADD_SUBDIRECTORY 0x00000004
#define ACE4_READ_NAMED_ATTRS 0x00000008
#define ACE4_WRITE_NAMED_ATTRS 0x00000010
#define ACE4_EXECUTE 0x00000020
#define ACE4_DELETE_CHILD 0x00000040
#define ACE4_READ_ATTRIBUTES 0x00000080
#define ACE4_WRITE_ATTRIBUTES 0x00000100
#define ACE4_WRITE_RETENTION 0x00000200
#define ACE4_WRITE_RETENTION_HOLD 0x00000400
#define ACE4_DELETE 0x00010000
#define ACE4_READ_ACL 0x00020000
#define ACE4_WRITE_ACL 0x00040000
#define ACE4_WRITE_OWNER 0x00080000
#define ACE4_SYNCHRONIZE 0x00100000
#define ACE4_GENERIC_READ 0x00120081
#define ACE4_GENERIC_WRITE 0x00160106
#define ACE4_GENERIC_EXECUTE 0x001200A0

	struct nfsace4 {
		acetype4 type;
		aceflag4 flag;
		acemask4 access_mask;
		utf8str_mixed who;
	};
	typedef struct nfsace4 nfsace4;

	typedef uint32_t aclflag4;
#define ACL4_AUTO_INHERIT 0x00000001
#define ACL4_PROTECTED 0x00000002
#define ACL4_DEFAULTED 0x00000004

	struct nfsacl41 {
		aclflag4 na41_flag;
		struct {
			u_int na41_aces_len;
			nfsace4 *na41_aces_val;
		} na41_aces;
	};
	typedef struct nfsacl41 nfsacl41;
#define MODE4_SUID 0x800
#define MODE4_SGID 0x400
#define MODE4_SVTX 0x200
#define MODE4_RUSR 0x100
#define MODE4_WUSR 0x080
#define MODE4_XUSR 0x040
#define MODE4_RGRP 0x020
#define MODE4_WGRP 0x010
#define MODE4_XGRP 0x008
#define MODE4_ROTH 0x004
#define MODE4_WOTH 0x002
#define MODE4_XOTH 0x001

	struct mode_masked4 {
		mode4 mm_value_to_set;
		mode4 mm_mask_bits;
	};
	typedef struct mode_masked4 mode_masked4;

	struct specdata4 {
		uint32_t specdata1;
		uint32_t specdata2;
	};
	typedef struct specdata4 specdata4;
#define FH4_PERSISTENT 0x00000000
#define FH4_NOEXPIRE_WITH_OPEN 0x00000001
#define FH4_VOLATILE_ANY 0x00000002
#define FH4_VOL_MIGRATION 0x00000004
#define FH4_VOL_RENAME 0x00000008

	struct netaddr4 {
		char *r_netid;
		char *r_addr;
	};
	typedef struct netaddr4 netaddr4;

	struct nfs_impl_id4 {
		utf8str_cis nii_domain;
		utf8str_cs nii_name;
		nfstime4 nii_date;
	};
	typedef struct nfs_impl_id4 nfs_impl_id4;

	struct stateid4 {
		uint32_t seqid;
		char other[12];
	};
	typedef struct stateid4 stateid4;

	enum layouttype4 {
		LAYOUT4_NFSV4_1_FILES = 0x1,
		LAYOUT4_OSD2_OBJECTS = 0x2,
		LAYOUT4_BLOCK_VOLUME = 0x3,
	};
	typedef enum layouttype4 layouttype4;

	struct layout_content4 {
		layouttype4 loc_type;
		struct {
			u_int loc_body_len;
			char *loc_body_val;
		} loc_body;
	};
	typedef struct layout_content4 layout_content4;
/*
 * LAYOUT4_OSD2_OBJECTS loc_body description
 * is in a separate .x file
 */

/*
 * LAYOUT4_BLOCK_VOLUME loc_body description
 * is in a separate .x file
 */

	struct layouthint4 {
		layouttype4 loh_type;
		struct {
			u_int loh_body_len;
			char *loh_body_val;
		} loh_body;
	};
	typedef struct layouthint4 layouthint4;

	enum layoutiomode4 {
		LAYOUTIOMODE4_READ = 1,
		LAYOUTIOMODE4_RW = 2,
		LAYOUTIOMODE4_ANY = 3,
	};
	typedef enum layoutiomode4 layoutiomode4;

	struct layout4 {
		offset4 lo_offset;
		length4 lo_length;
		layoutiomode4 lo_iomode;
		layout_content4 lo_content;
	};
	typedef struct layout4 layout4;
#define NFS4_DEVICEID4_SIZE 16

	typedef char deviceid4[NFS4_DEVICEID4_SIZE];

	struct device_addr4 {
		layouttype4 da_layout_type;
		struct {
			u_int da_addr_body_len;
			char *da_addr_body_val;
		} da_addr_body;
	};
	typedef struct device_addr4 device_addr4;

	struct layoutupdate4 {
		layouttype4 lou_type;
		struct {
			u_int lou_body_len;
			char *lou_body_val;
		} lou_body;
	};
	typedef struct layoutupdate4 layoutupdate4;

#define LAYOUT4_RET_REC_FILE 1
#define LAYOUT4_RET_REC_FSID 2
#define LAYOUT4_RET_REC_ALL 3

	enum layoutreturn_type4 {
		LAYOUTRETURN4_FILE = LAYOUT4_RET_REC_FILE,
		LAYOUTRETURN4_FSID = LAYOUT4_RET_REC_FSID,
		LAYOUTRETURN4_ALL = LAYOUT4_RET_REC_ALL,
	};
	typedef enum layoutreturn_type4 layoutreturn_type4;
	/* layouttype4 specific data */

	struct layoutreturn_file4 {
		offset4 lrf_offset;
		length4 lrf_length;
		stateid4 lrf_stateid;
		struct {
			u_int lrf_body_len;
			char *lrf_body_val;
		} lrf_body;
	};
	typedef struct layoutreturn_file4 layoutreturn_file4;

	struct layoutreturn4 {
		layoutreturn_type4 lr_returntype;
		union {
			layoutreturn_file4 lr_layout;
		} layoutreturn4_u;
	};
	typedef struct layoutreturn4 layoutreturn4;

	enum fs4_status_type {
		STATUS4_FIXED = 1,
		STATUS4_UPDATED = 2,
		STATUS4_VERSIONED = 3,
		STATUS4_WRITABLE = 4,
		STATUS4_REFERRAL = 5,
	};
	typedef enum fs4_status_type fs4_status_type;

	struct fs4_status {
		bool_t fss_absent;
		fs4_status_type fss_type;
		utf8str_cs fss_source;
		utf8str_cs fss_current;
		int32_t fss_age;
		nfstime4 fss_version;
	};
	typedef struct fs4_status fs4_status;
#define TH4_READ_SIZE 0
#define TH4_WRITE_SIZE 1
#define TH4_READ_IOSIZE 2
#define TH4_WRITE_IOSIZE 3

	typedef length4 threshold4_read_size;

	typedef length4 threshold4_write_size;

	typedef length4 threshold4_read_iosize;

	typedef length4 threshold4_write_iosize;

	struct threshold_item4 {
		layouttype4 thi_layout_type;
		struct bitmap4 thi_hintset;
		struct {
			u_int thi_hintlist_len;
			char *thi_hintlist_val;
		} thi_hintlist;
	};
	typedef struct threshold_item4 threshold_item4;

	struct mdsthreshold4 {
		struct {
			u_int mth_hints_len;
			threshold_item4 *mth_hints_val;
		} mth_hints;
	};
	typedef struct mdsthreshold4 mdsthreshold4;
#define RET4_DURATION_INFINITE 0xffffffffffffffff

	struct retention_get4 {
		uint64_t rg_duration;
		struct {
			u_int rg_begin_time_len;
			nfstime4 *rg_begin_time_val;
		} rg_begin_time;
	};
	typedef struct retention_get4 retention_get4;

	struct retention_set4 {
		bool_t rs_enable;
		struct {
			u_int rs_duration_len;
			uint64_t *rs_duration_val;
		} rs_duration;
	};
	typedef struct retention_set4 retention_set4;
#define FSCHARSET_CAP4_CONTAINS_NON_UTF8 0x1
#define FSCHARSET_CAP4_ALLOWS_ONLY_UTF8 0x2

	typedef uint32_t fs_charset_cap4;

	typedef struct bitmap4 fattr4_supported_attrs;

	typedef nfs_ftype4 fattr4_type;

	typedef uint32_t fattr4_fh_expire_type;

	typedef changeid4 fattr4_change;

	typedef uint64_t fattr4_size;

	typedef bool_t fattr4_link_support;

	typedef bool_t fattr4_symlink_support;

	typedef bool_t fattr4_named_attr;

	typedef fsid4 fattr4_fsid;

	typedef bool_t fattr4_unique_handles;

	typedef nfs_lease4 fattr4_lease_time;

	typedef nfsstat4 fattr4_rdattr_error;

	typedef struct {
		u_int fattr4_acl_len;
		nfsace4 *fattr4_acl_val;
	} fattr4_acl;

	typedef uint32_t fattr4_aclsupport;

	typedef bool_t fattr4_archive;

	typedef bool_t fattr4_cansettime;

	typedef bool_t fattr4_case_insensitive;

	typedef bool_t fattr4_case_preserving;

	typedef bool_t fattr4_chown_restricted;

	typedef uint64_t fattr4_fileid;

	typedef uint64_t fattr4_files_avail;

	typedef nfs_fh4 fattr4_filehandle;

	typedef uint64_t fattr4_files_free;

	typedef uint64_t fattr4_files_total;

	typedef fs_locations4 fattr4_fs_locations;

	typedef bool_t fattr4_hidden;

	typedef bool_t fattr4_homogeneous;

	typedef uint64_t fattr4_maxfilesize;

	typedef uint32_t fattr4_maxlink;

	typedef uint32_t fattr4_maxname;

	typedef uint64_t fattr4_maxread;

	typedef uint64_t fattr4_maxwrite;

	typedef utf8str_cs fattr4_mimetype;

	typedef mode4 fattr4_mode;

	typedef mode_masked4 fattr4_mode_set_masked;

	typedef uint64_t fattr4_mounted_on_fileid;

	typedef bool_t fattr4_no_trunc;

	typedef uint32_t fattr4_numlinks;

	typedef utf8str_mixed fattr4_owner;

	typedef utf8str_mixed fattr4_owner_group;

	typedef uint64_t fattr4_quota_avail_hard;

	typedef uint64_t fattr4_quota_avail_soft;

	typedef uint64_t fattr4_quota_used;

	typedef specdata4 fattr4_rawdev;

	typedef uint64_t fattr4_space_avail;

	typedef uint64_t fattr4_space_free;

	typedef uint64_t fattr4_space_total;

	typedef uint64_t fattr4_space_used;

	typedef bool_t fattr4_system;

	typedef nfstime4 fattr4_time_access;

	typedef settime4 fattr4_time_access_set;

	typedef nfstime4 fattr4_time_backup;

	typedef nfstime4 fattr4_time_create;

	typedef nfstime4 fattr4_time_delta;

	typedef nfstime4 fattr4_time_metadata;

	typedef nfstime4 fattr4_time_modify;

	typedef settime4 fattr4_time_modify_set;

	typedef struct bitmap4 fattr4_suppattr_exclcreat;

	typedef nfstime4 fattr4_dir_notif_delay;

	typedef nfstime4 fattr4_dirent_notif_delay;

	typedef struct {
		u_int fattr4_fs_layout_types_len;
		layouttype4 *fattr4_fs_layout_types_val;
	} fattr4_fs_layout_types;

	typedef fs4_status fattr4_fs_status;

	typedef fs_charset_cap4 fattr4_fs_charset_cap;

	typedef uint32_t fattr4_layout_alignment;

	typedef uint32_t fattr4_layout_blksize;

	typedef layouthint4 fattr4_layout_hint;

	typedef struct {
		u_int fattr4_layout_types_len;
		layouttype4 *fattr4_layout_types_val;
	} fattr4_layout_types;

	typedef mdsthreshold4 fattr4_mdsthreshold;

	typedef retention_get4 fattr4_retention_get;

	typedef retention_set4 fattr4_retention_set;

	typedef retention_get4 fattr4_retentevt_get;

	typedef retention_set4 fattr4_retentevt_set;

	typedef uint64_t fattr4_retention_hold;

	typedef nfsacl41 fattr4_dacl;

	typedef nfsacl41 fattr4_sacl;

	typedef change_policy4 fattr4_change_policy;
/*
 * REQUIRED Attributes
 */
#define FATTR4_SUPPORTED_ATTRS 0
#define FATTR4_TYPE 1
#define FATTR4_FH_EXPIRE_TYPE 2
#define FATTR4_CHANGE 3
#define FATTR4_SIZE 4
#define FATTR4_LINK_SUPPORT 5
#define FATTR4_SYMLINK_SUPPORT 6
#define FATTR4_NAMED_ATTR 7
#define FATTR4_FSID 8
#define FATTR4_UNIQUE_HANDLES 9
#define FATTR4_LEASE_TIME 10
#define FATTR4_RDATTR_ERROR 11
#define FATTR4_FILEHANDLE 19
/* new to NFSV4.1 */
#define FATTR4_SUPPATTR_EXCLCREAT 75
/*
 * RECOMMENDED Attributes
 */
#define FATTR4_ACL 12
#define FATTR4_ACLSUPPORT 13
#define FATTR4_ARCHIVE 14
#define FATTR4_CANSETTIME 15
#define FATTR4_CASE_INSENSITIVE 16
#define FATTR4_CASE_PRESERVING 17
#define FATTR4_CHOWN_RESTRICTED 18
#define FATTR4_FILEID 20
#define FATTR4_FILES_AVAIL 21
#define FATTR4_FILES_FREE 22
#define FATTR4_FILES_TOTAL 23
#define FATTR4_FS_LOCATIONS 24
#define FATTR4_HIDDEN 25
#define FATTR4_HOMOGENEOUS 26
#define FATTR4_MAXFILESIZE 27
#define FATTR4_MAXLINK 28
#define FATTR4_MAXNAME 29
#define FATTR4_MAXREAD 30
#define FATTR4_MAXWRITE 31
#define FATTR4_MIMETYPE 32
#define FATTR4_MODE 33
#define FATTR4_NO_TRUNC 34
#define FATTR4_NUMLINKS 35
#define FATTR4_OWNER 36
#define FATTR4_OWNER_GROUP 37
#define FATTR4_QUOTA_AVAIL_HARD 38
#define FATTR4_QUOTA_AVAIL_SOFT 39
#define FATTR4_QUOTA_USED 40
#define FATTR4_RAWDEV 41
#define FATTR4_SPACE_AVAIL 42
#define FATTR4_SPACE_FREE 43
#define FATTR4_SPACE_TOTAL 44
#define FATTR4_SPACE_USED 45
#define FATTR4_SYSTEM 46
#define FATTR4_TIME_ACCESS 47
#define FATTR4_TIME_ACCESS_SET 48
#define FATTR4_TIME_BACKUP 49
#define FATTR4_TIME_CREATE 50
#define FATTR4_TIME_DELTA 51
#define FATTR4_TIME_METADATA 52
#define FATTR4_TIME_MODIFY 53
#define FATTR4_TIME_MODIFY_SET 54
#define FATTR4_MOUNTED_ON_FILEID 55

/* new to NFSV4.1 */

#define FATTR4_DIR_NOTIF_DELAY 56
#define FATTR4_DIRENT_NOTIF_DELAY 57
#define FATTR4_DACL 58
#define FATTR4_SACL 59
#define FATTR4_CHANGE_POLICY 60
#define FATTR4_FS_STATUS 61
#define FATTR4_FS_LAYOUT_TYPES 62
#define FATTR4_LAYOUT_HINT 63
#define FATTR4_LAYOUT_TYPES 64
#define FATTR4_LAYOUT_BLKSIZE 65
#define FATTR4_LAYOUT_ALIGNMENT 66
#define FATTR4_FS_LOCATIONS_INFO 67
#define FATTR4_MDSTHRESHOLD 68
#define FATTR4_RETENTION_GET 69
#define FATTR4_RETENTION_SET 70
#define FATTR4_RETENTEVT_GET 71
#define FATTR4_RETENTEVT_SET 72
#define FATTR4_RETENTION_HOLD 73
#define FATTR4_MODE_SET_MASKED 74
#define FATTR4_FS_CHARSET_CAP 76

/* NFSv4.2 */
#define FATTR4_SPACE_RESERVED 77
#define FATTR4_SPACE_FREED 78
#define FATTR4_CHANGE_ATTR_TYPE 79
#define FATTR4_SEC_LABEL 80
#define FATTR4_CHANGE_SEC_LABEL 81

/* new to NFS end-to-end integrity */
#define FATTR4_PROTECTION_TYPES 82

#define FATTR4_MAX 82

	struct fattr4 {
		struct bitmap4 attrmask;
		attrlist4 attr_vals;
	};
	typedef struct fattr4 fattr4;

	struct change_info4 {
		bool_t atomic;
		changeid4 before;
		changeid4 after;
	};
	typedef struct change_info4 change_info4;

	typedef netaddr4 clientaddr4;

	struct cb_client4 {
		uint32_t cb_program;
		netaddr4 cb_location;
	};
	typedef struct cb_client4 cb_client4;

	struct nfs_client_id4 {
		verifier4 verifier;
		struct {
			u_int id_len;
			char *id_val;
		} id;
	};
	typedef struct nfs_client_id4 nfs_client_id4;

	struct client_owner4 {
		verifier4 co_verifier;
		struct {
			u_int co_ownerid_len;
			char *co_ownerid_val;
		} co_ownerid;
	};
	typedef struct client_owner4 client_owner4;

	struct server_owner4 {
		uint64_t so_minor_id;
		struct {
			u_int so_major_id_len;
			char *so_major_id_val;
		} so_major_id;
	};
	typedef struct server_owner4 server_owner4;

	struct state_owner4 {
		clientid4 clientid;
		struct {
			u_int owner_len;
			char *owner_val;
		} owner;
	};
	typedef struct state_owner4 state_owner4;

	typedef state_owner4 open_owner4;

	typedef state_owner4 lock_owner4;

	enum nfs_lock_type4 {
		READ_LT = 1,
		WRITE_LT = 2,
		READW_LT = 3,
		WRITEW_LT = 4,
	};
	typedef enum nfs_lock_type4 nfs_lock_type4;

/* Input for computing subkeys */

	enum ssv_subkey4 {
		SSV4_SUBKEY_MIC_I2T = 1,
		SSV4_SUBKEY_MIC_T2I = 2,
		SSV4_SUBKEY_SEAL_I2T = 3,
		SSV4_SUBKEY_SEAL_T2I = 4,
	};
	typedef enum ssv_subkey4 ssv_subkey4;

/* Input for computing smt_hmac */

	struct ssv_mic_plain_tkn4 {
		uint32_t smpt_ssv_seq;
		struct {
			u_int smpt_orig_plain_len;
			char *smpt_orig_plain_val;
		} smpt_orig_plain;
	};
	typedef struct ssv_mic_plain_tkn4 ssv_mic_plain_tkn4;

/* SSV GSS PerMsgToken token */

	struct ssv_mic_tkn4 {
		uint32_t smt_ssv_seq;
		struct {
			u_int smt_hmac_len;
			char *smt_hmac_val;
		} smt_hmac;
	};
	typedef struct ssv_mic_tkn4 ssv_mic_tkn4;

/* Input for computing ssct_encr_data and ssct_hmac */

	struct ssv_seal_plain_tkn4 {
		struct {
			u_int sspt_confounder_len;
			char *sspt_confounder_val;
		} sspt_confounder;
		uint32_t sspt_ssv_seq;
		struct {
			u_int sspt_orig_plain_len;
			char *sspt_orig_plain_val;
		} sspt_orig_plain;
		struct {
			u_int sspt_pad_len;
			char *sspt_pad_val;
		} sspt_pad;
	};
	typedef struct ssv_seal_plain_tkn4 ssv_seal_plain_tkn4;

/* SSV GSS SealedMessage token */

	struct ssv_seal_cipher_tkn4 {
		uint32_t ssct_ssv_seq;
		struct {
			u_int ssct_iv_len;
			char *ssct_iv_val;
		} ssct_iv;
		struct {
			u_int ssct_encr_data_len;
			char *ssct_encr_data_val;
		} ssct_encr_data;
		struct {
			u_int ssct_hmac_len;
			char *ssct_hmac_val;
		} ssct_hmac;
	};
	typedef struct ssv_seal_cipher_tkn4 ssv_seal_cipher_tkn4;

	struct fs_locations_server4 {
		int32_t fls_currency;
		struct {
			u_int fls_info_len;
			char *fls_info_val;
		} fls_info;
		utf8str_cis fls_server;
	};
	typedef struct fs_locations_server4 fs_locations_server4;
#define FSLI4BX_GFLAGS 0
#define FSLI4BX_TFLAGS 1
#define FSLI4BX_CLSIMUL 2
#define FSLI4BX_CLHANDLE 3
#define FSLI4BX_CLFILEID 4
#define FSLI4BX_CLWRITEVER 5
#define FSLI4BX_CLCHANGE 6
#define FSLI4BX_CLREADDIR 7
#define FSLI4BX_READRANK 8
#define FSLI4BX_WRITERANK 9
#define FSLI4BX_READORDER 10
#define FSLI4BX_WRITEORDER 11
#define FSLI4GF_WRITABLE 0x01
#define FSLI4GF_CUR_REQ 0x02
#define FSLI4GF_ABSENT 0x04
#define FSLI4GF_GOING 0x08
#define FSLI4GF_SPLIT 0x10
#define FSLI4TF_RDMA 0x01

	struct fs_locations_item4 {
		struct {
			u_int fli_entries_len;
			fs_locations_server4 *fli_entries_val;
		} fli_entries;
		pathname4 fli_rootpath;
	};
	typedef struct fs_locations_item4 fs_locations_item4;

	struct fs_locations_info4 {
		uint32_t fli_flags;
		int32_t fli_valid_for;
		pathname4 fli_fs_root;
		struct {
			u_int fli_items_len;
			fs_locations_item4 *fli_items_val;
		} fli_items;
	};
	typedef struct fs_locations_info4 fs_locations_info4;
#define FSLI4IF_VAR_SUB 0x00000001

	typedef fs_locations_info4 fattr4_fs_locations_info;
#define NFL4_UFLG_MASK 0x0000003F
#define NFL4_UFLG_DENSE 0x00000001
#define NFL4_UFLG_COMMIT_THRU_MDS 0x00000002
#define NFL4_UFLG_STRIPE_UNIT_SIZE_MASK 0xFFFFFFC0

	typedef uint32_t nfl_util4;

	enum filelayout_hint_care4 {
		NFLH4_CARE_DENSE = NFL4_UFLG_DENSE,
		NFLH4_CARE_COMMIT_THRU_MDS = NFL4_UFLG_COMMIT_THRU_MDS,
		NFLH4_CARE_STRIPE_UNIT_SIZE = 0x00000040,
		NFLH4_CARE_STRIPE_COUNT = 0x00000080,
	};
	typedef enum filelayout_hint_care4 filelayout_hint_care4;

/* Encoded in the loh_body field of data type layouthint4: */

	struct nfsv4_1_file_layouthint4 {
		uint32_t nflh_care;
		nfl_util4 nflh_util;
		count4 nflh_stripe_count;
	};
	typedef struct nfsv4_1_file_layouthint4 nfsv4_1_file_layouthint4;

	typedef struct {
		u_int multipath_list4_len;
		netaddr4 *multipath_list4_val;
	} multipath_list4;

/*
 * Encoded in the da_addr_body field of
 * data type device_addr4:
 */

	struct nfsv4_1_file_layout_ds_addr4 {
		struct {
			u_int nflda_stripe_indices_len;
			uint32_t *nflda_stripe_indices_val;
		} nflda_stripe_indices;
		struct {
			u_int nflda_multipath_ds_list_len;
			multipath_list4 *nflda_multipath_ds_list_val;
		} nflda_multipath_ds_list;
	};
	typedef struct nfsv4_1_file_layout_ds_addr4
	    nfsv4_1_file_layout_ds_addr4;

/*
 * Encoded in the loc_body field of
 * data type layout_content4:
 */

	struct nfsv4_1_file_layout4 {
		deviceid4 nfl_deviceid;
		nfl_util4 nfl_util;
		uint32_t nfl_first_stripe_index;
		offset4 nfl_pattern_offset;
		struct {
			u_int nfl_fh_list_len;
			nfs_fh4 *nfl_fh_list_val;
		} nfl_fh_list;
	};
	typedef struct nfsv4_1_file_layout4 nfsv4_1_file_layout4;

/*
 * Encoded in the lou_body field of data type layoutupdate4:
 *      Nothing. lou_body is a zero length array of bytes.
 */

/*
 * Encoded in the lrf_body field of
 * data type layoutreturn_file4:
 *      Nothing. lrf_body is a zero length array of bytes.
 */

#define ACCESS4_READ 0x00000001
#define ACCESS4_LOOKUP 0x00000002
#define ACCESS4_MODIFY 0x00000004
#define ACCESS4_EXTEND 0x00000008
#define ACCESS4_DELETE 0x00000010
#define ACCESS4_EXECUTE 0x00000020

	struct ACCESS4args {
		uint32_t access;
	};
	typedef struct ACCESS4args ACCESS4args;

	struct ACCESS4resok {
		uint32_t supported;
		uint32_t access;
	};
	typedef struct ACCESS4resok ACCESS4resok;

	struct ACCESS4res {
		nfsstat4 status;
		union {
			ACCESS4resok resok4;
		} ACCESS4res_u;
	};
	typedef struct ACCESS4res ACCESS4res;

	struct CLOSE4args {
		seqid4 seqid;
		stateid4 open_stateid;
	};
	typedef struct CLOSE4args CLOSE4args;

	struct CLOSE4res {
		nfsstat4 status;
		union {
			stateid4 open_stateid;
		} CLOSE4res_u;
	};
	typedef struct CLOSE4res CLOSE4res;

	struct COMMIT4args {
		offset4 offset;
		count4 count;
	};
	typedef struct COMMIT4args COMMIT4args;

	struct COMMIT4resok {
		verifier4 writeverf;
	};
	typedef struct COMMIT4resok COMMIT4resok;

	struct COMMIT4res {
		nfsstat4 status;
		union {
			COMMIT4resok resok4;
		} COMMIT4res_u;
	};
	typedef struct COMMIT4res COMMIT4res;

	struct createtype4 {
		nfs_ftype4 type;
		union {
			linktext4 linkdata;
			specdata4 devdata;
		} createtype4_u;
	};
	typedef struct createtype4 createtype4;

	struct CREATE4args {
		createtype4 objtype;
		component4 objname;
		fattr4 createattrs;
	};
	typedef struct CREATE4args CREATE4args;

	struct CREATE4resok {
		change_info4 cinfo;
		struct bitmap4 attrset;
	};
	typedef struct CREATE4resok CREATE4resok;

	struct CREATE4res {
		nfsstat4 status;
		union {
			CREATE4resok resok4;
		} CREATE4res_u;
	};
	typedef struct CREATE4res CREATE4res;

	struct DELEGPURGE4args {
		clientid4 clientid;
	};
	typedef struct DELEGPURGE4args DELEGPURGE4args;

	struct DELEGPURGE4res {
		nfsstat4 status;
	};
	typedef struct DELEGPURGE4res DELEGPURGE4res;

	struct DELEGRETURN4args {
		stateid4 deleg_stateid;
	};
	typedef struct DELEGRETURN4args DELEGRETURN4args;

	struct DELEGRETURN4res {
		nfsstat4 status;
	};
	typedef struct DELEGRETURN4res DELEGRETURN4res;

	struct GETATTR4args {
		struct bitmap4 attr_request;
	};
	typedef struct GETATTR4args GETATTR4args;

	struct GETATTR4resok {
		fattr4 obj_attributes;
	};
	typedef struct GETATTR4resok GETATTR4resok;

	struct GETATTR4res {
		nfsstat4 status;
		union {
			GETATTR4resok resok4;
		} GETATTR4res_u;
	};
	typedef struct GETATTR4res GETATTR4res;

	struct GETFH4resok {
		nfs_fh4 object;
	};
	typedef struct GETFH4resok GETFH4resok;

	struct GETFH4res {
		nfsstat4 status;
		union {
			GETFH4resok resok4;
		} GETFH4res_u;
	};
	typedef struct GETFH4res GETFH4res;

	struct LINK4args {
		component4 newname;
	};
	typedef struct LINK4args LINK4args;

	struct LINK4resok {
		change_info4 cinfo;
	};
	typedef struct LINK4resok LINK4resok;

	struct LINK4res {
		nfsstat4 status;
		union {
			LINK4resok resok4;
		} LINK4res_u;
	};
	typedef struct LINK4res LINK4res;

	struct open_to_lock_owner4 {
		seqid4 open_seqid;
		stateid4 open_stateid;
		seqid4 lock_seqid;
		lock_owner4 lock_owner;
	};
	typedef struct open_to_lock_owner4 open_to_lock_owner4;

	struct exist_lock_owner4 {
		stateid4 lock_stateid;
		seqid4 lock_seqid;
	};
	typedef struct exist_lock_owner4 exist_lock_owner4;

	struct locker4 {
		bool_t new_lock_owner;
		union {
			open_to_lock_owner4 open_owner;
			exist_lock_owner4 lock_owner;
		} locker4_u;
	};
	typedef struct locker4 locker4;

	struct LOCK4args {
		nfs_lock_type4 locktype;
		bool_t reclaim;
		offset4 offset;
		length4 length;
		locker4 locker;
	};
	typedef struct LOCK4args LOCK4args;

	struct LOCK4denied {
		offset4 offset;
		length4 length;
		nfs_lock_type4 locktype;
		lock_owner4 owner;
	};
	typedef struct LOCK4denied LOCK4denied;

	struct LOCK4resok {
		stateid4 lock_stateid;
	};
	typedef struct LOCK4resok LOCK4resok;

	struct LOCK4res {
		nfsstat4 status;
		union {
			LOCK4resok resok4;
			LOCK4denied denied;
		} LOCK4res_u;
	};
	typedef struct LOCK4res LOCK4res;

	struct LOCKT4args {
		nfs_lock_type4 locktype;
		offset4 offset;
		length4 length;
		lock_owner4 owner;
	};
	typedef struct LOCKT4args LOCKT4args;

	struct LOCKT4res {
		nfsstat4 status;
		union {
			LOCK4denied denied;
		} LOCKT4res_u;
	};
	typedef struct LOCKT4res LOCKT4res;

	struct LOCKU4args {
		nfs_lock_type4 locktype;
		seqid4 seqid;
		stateid4 lock_stateid;
		offset4 offset;
		length4 length;
	};
	typedef struct LOCKU4args LOCKU4args;

	struct LOCKU4res {
		nfsstat4 status;
		union {
			stateid4 lock_stateid;
		} LOCKU4res_u;
	};
	typedef struct LOCKU4res LOCKU4res;

	struct LOOKUP4args {
		component4 objname;
	};
	typedef struct LOOKUP4args LOOKUP4args;

	struct LOOKUP4res {
		nfsstat4 status;
	};
	typedef struct LOOKUP4res LOOKUP4res;

	struct LOOKUPP4res {
		nfsstat4 status;
	};
	typedef struct LOOKUPP4res LOOKUPP4res;

	struct NVERIFY4args {
		fattr4 obj_attributes;
	};
	typedef struct NVERIFY4args NVERIFY4args;

	struct NVERIFY4res {
		nfsstat4 status;
	};
	typedef struct NVERIFY4res NVERIFY4res;

	enum createmode4 {
		UNCHECKED4 = 0,
		GUARDED4 = 1,
		EXCLUSIVE4 = 2,
		EXCLUSIVE4_1 = 3,
	};
	typedef enum createmode4 createmode4;

	struct creatverfattr {
		verifier4 cva_verf;
		fattr4 cva_attrs;
	};
	typedef struct creatverfattr creatverfattr;

	struct createhow4 {
		createmode4 mode;
		union {
			fattr4 createattrs;
			verifier4 createverf;
			creatverfattr ch_createboth;
		} createhow4_u;
	};
	typedef struct createhow4 createhow4;

	enum opentype4 {
		OPEN4_NOCREATE = 0,
		OPEN4_CREATE = 1,
	};
	typedef enum opentype4 opentype4;

	struct openflag4 {
		opentype4 opentype;
		union {
			createhow4 how;
		} openflag4_u;
	};
	typedef struct openflag4 openflag4;

	enum limit_by4 {
		NFS_LIMIT_SIZE = 1,
		NFS_LIMIT_BLOCKS = 2,
	};
	typedef enum limit_by4 limit_by4;

	struct nfs_modified_limit4 {
		uint32_t num_blocks;
		uint32_t bytes_per_block;
	};
	typedef struct nfs_modified_limit4 nfs_modified_limit4;

	struct nfs_space_limit4 {
		limit_by4 limitby;
		union {
			uint64_t filesize;
			nfs_modified_limit4 mod_blocks;
		} nfs_space_limit4_u;
	};
	typedef struct nfs_space_limit4 nfs_space_limit4;
#define OPEN4_SHARE_ACCESS_READ 0x00000001
#define OPEN4_SHARE_ACCESS_WRITE 0x00000002
#define OPEN4_SHARE_ACCESS_BOTH 0x00000003
#define OPEN4_SHARE_DENY_NONE 0x00000000
#define OPEN4_SHARE_DENY_READ 0x00000001
#define OPEN4_SHARE_DENY_WRITE 0x00000002
#define OPEN4_SHARE_DENY_BOTH 0x00000003
#define OPEN4_SHARE_ACCESS_WANT_DELEG_MASK 0xFF00
#define OPEN4_SHARE_ACCESS_WANT_NO_PREFERENCE 0x0000
#define OPEN4_SHARE_ACCESS_WANT_READ_DELEG 0x0100
#define OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG 0x0200
#define OPEN4_SHARE_ACCESS_WANT_ANY_DELEG 0x0300
#define OPEN4_SHARE_ACCESS_WANT_NO_DELEG 0x0400
#define OPEN4_SHARE_ACCESS_WANT_CANCEL 0x0500
#define OPEN4_SHARE_ACCESS_WANT_SIGNAL_DELEG_WHEN_RESRC_AVAIL 0x10000
#define OPEN4_SHARE_ACCESS_WANT_PUSH_DELEG_WHEN_UNCONTENDED 0x20000

	enum open_delegation_type4 {
		OPEN_DELEGATE_NONE = 0,
		OPEN_DELEGATE_READ = 1,
		OPEN_DELEGATE_WRITE = 2,
		OPEN_DELEGATE_NONE_EXT = 3,
	};
	typedef enum open_delegation_type4 open_delegation_type4;

	enum open_claim_type4 {
		CLAIM_NULL = 0,
		CLAIM_PREVIOUS = 1,
		CLAIM_DELEGATE_CUR = 2,
		CLAIM_DELEGATE_PREV = 3,
		CLAIM_FH = 4,
		CLAIM_DELEG_CUR_FH = 5,
		CLAIM_DELEG_PREV_FH = 6,
	};
	typedef enum open_claim_type4 open_claim_type4;

	struct open_claim_delegate_cur4 {
		stateid4 delegate_stateid;
		component4 file;
	};
	typedef struct open_claim_delegate_cur4 open_claim_delegate_cur4;

	struct open_claim4 {
		open_claim_type4 claim;
		union {
			component4 file;
			open_delegation_type4 delegate_type;
			open_claim_delegate_cur4 delegate_cur_info;
			component4 file_delegate_prev;
			stateid4 oc_delegate_stateid;
		} open_claim4_u;
	};
	typedef struct open_claim4 open_claim4;

	struct OPEN4args {
		seqid4 seqid;
		uint32_t share_access;
		uint32_t share_deny;
		open_owner4 owner;
		openflag4 openhow;
		open_claim4 claim;
	};
	typedef struct OPEN4args OPEN4args;

	struct open_read_delegation4 {
		stateid4 stateid;
		bool_t recall;
		nfsace4 permissions;
	};
	typedef struct open_read_delegation4 open_read_delegation4;

	struct open_write_delegation4 {
		stateid4 stateid;
		bool_t recall;
		nfs_space_limit4 space_limit;
		nfsace4 permissions;
	};
	typedef struct open_write_delegation4 open_write_delegation4;

	enum why_no_delegation4 {
		WND4_NOT_WANTED = 0,
		WND4_CONTENTION = 1,
		WND4_RESOURCE = 2,
		WND4_NOT_SUPP_FTYPE = 3,
		WND4_WRITE_DELEG_NOT_SUPP_FTYPE = 4,
		WND4_NOT_SUPP_UPGRADE = 5,
		WND4_NOT_SUPP_DOWNGRADE = 6,
		WND4_CANCELLED = 7,
		WND4_IS_DIR = 8,
	};
	typedef enum why_no_delegation4 why_no_delegation4;

	struct open_none_delegation4 {
		why_no_delegation4 ond_why;
		union {
			bool_t ond_server_will_push_deleg;
			bool_t ond_server_will_signal_avail;
		} open_none_delegation4_u;
	};
	typedef struct open_none_delegation4 open_none_delegation4;

	struct open_delegation4 {
		open_delegation_type4 delegation_type;
		union {
			open_read_delegation4 read;
			open_write_delegation4 write;
			open_none_delegation4 od_whynone;
		} open_delegation4_u;
	};
	typedef struct open_delegation4 open_delegation4;
#define OPEN4_RESULT_CONFIRM 0x00000002
#define OPEN4_RESULT_LOCKTYPE_POSIX 0x00000004
#define OPEN4_RESULT_PRESERVE_UNLINKED 0x00000008
#define OPEN4_RESULT_MAY_NOTIFY_LOCK 0x00000020

	struct OPEN4resok {
		stateid4 stateid;
		change_info4 cinfo;
		uint32_t rflags;
		struct bitmap4 attrset;
		open_delegation4 delegation;
	};
	typedef struct OPEN4resok OPEN4resok;

	struct OPEN4res {
		nfsstat4 status;
		union {
			OPEN4resok resok4;
		} OPEN4res_u;
	};
	typedef struct OPEN4res OPEN4res;

	struct OPENATTR4args {
		bool_t createdir;
	};
	typedef struct OPENATTR4args OPENATTR4args;

	struct OPENATTR4res {
		nfsstat4 status;
	};
	typedef struct OPENATTR4res OPENATTR4res;

	struct OPEN_CONFIRM4args {
		stateid4 open_stateid;
		seqid4 seqid;
	};
	typedef struct OPEN_CONFIRM4args OPEN_CONFIRM4args;

	struct OPEN_CONFIRM4resok {
		stateid4 open_stateid;
	};
	typedef struct OPEN_CONFIRM4resok OPEN_CONFIRM4resok;

	struct OPEN_CONFIRM4res {
		nfsstat4 status;
		union {
			OPEN_CONFIRM4resok resok4;
		} OPEN_CONFIRM4res_u;
	};
	typedef struct OPEN_CONFIRM4res OPEN_CONFIRM4res;

	struct OPEN_DOWNGRADE4args {
		stateid4 open_stateid;
		seqid4 seqid;
		uint32_t share_access;
		uint32_t share_deny;
	};
	typedef struct OPEN_DOWNGRADE4args OPEN_DOWNGRADE4args;

	struct OPEN_DOWNGRADE4resok {
		stateid4 open_stateid;
	};
	typedef struct OPEN_DOWNGRADE4resok OPEN_DOWNGRADE4resok;

	struct OPEN_DOWNGRADE4res {
		nfsstat4 status;
		union {
			OPEN_DOWNGRADE4resok resok4;
		} OPEN_DOWNGRADE4res_u;
	};
	typedef struct OPEN_DOWNGRADE4res OPEN_DOWNGRADE4res;

	struct PUTFH4args {
		nfs_fh4 object;
	};
	typedef struct PUTFH4args PUTFH4args;

	struct PUTFH4res {
		nfsstat4 status;
	};
	typedef struct PUTFH4res PUTFH4res;

	struct PUTPUBFH4res {
		nfsstat4 status;
	};
	typedef struct PUTPUBFH4res PUTPUBFH4res;

	struct PUTROOTFH4res {
		nfsstat4 status;
	};
	typedef struct PUTROOTFH4res PUTROOTFH4res;

	struct READ4args {
		stateid4 stateid;
		offset4 offset;
		count4 count;
	};
	typedef struct READ4args READ4args;

	struct READ4resok {
		bool_t eof;
		struct {
			u_int data_len;
			char *data_val;
		} data;
	};
	typedef struct READ4resok READ4resok;

	struct READ4res {
		nfsstat4 status;
		union {
			READ4resok resok4;
		} READ4res_u;
	};
	typedef struct READ4res READ4res;

	struct READDIR4args {
		nfs_cookie4 cookie;
		verifier4 cookieverf;
		count4 dircount;
		count4 maxcount;
		struct bitmap4 attr_request;
	};
	typedef struct READDIR4args READDIR4args;

	struct entry4 {
		nfs_cookie4 cookie;
		component4 name;
		fattr4 attrs;
		struct entry4 *nextentry;
	};
	typedef struct entry4 entry4;

	struct dirlist4 {
		entry4 *entries;
		bool_t eof;
	};
	typedef struct dirlist4 dirlist4;

	struct READDIR4resok {
		verifier4 cookieverf;
		dirlist4 reply;
	};
	typedef struct READDIR4resok READDIR4resok;

	struct READDIR4res {
		nfsstat4 status;
		union {
			READDIR4resok resok4;
		} READDIR4res_u;
	};
	typedef struct READDIR4res READDIR4res;

	struct READLINK4resok {
		linktext4 link;
	};
	typedef struct READLINK4resok READLINK4resok;

	struct READLINK4res {
		nfsstat4 status;
		union {
			READLINK4resok resok4;
		} READLINK4res_u;
	};
	typedef struct READLINK4res READLINK4res;

	struct REMOVE4args {
		component4 target;
	};
	typedef struct REMOVE4args REMOVE4args;

	struct REMOVE4resok {
		change_info4 cinfo;
	};
	typedef struct REMOVE4resok REMOVE4resok;

	struct REMOVE4res {
		nfsstat4 status;
		union {
			REMOVE4resok resok4;
		} REMOVE4res_u;
	};
	typedef struct REMOVE4res REMOVE4res;

	struct RENAME4args {
		component4 oldname;
		component4 newname;
	};
	typedef struct RENAME4args RENAME4args;

	struct RENAME4resok {
		change_info4 source_cinfo;
		change_info4 target_cinfo;
	};
	typedef struct RENAME4resok RENAME4resok;

	struct RENAME4res {
		nfsstat4 status;
		union {
			RENAME4resok resok4;
		} RENAME4res_u;
	};
	typedef struct RENAME4res RENAME4res;

	struct RENEW4args {
		clientid4 clientid;
	};
	typedef struct RENEW4args RENEW4args;

	struct RENEW4res {
		nfsstat4 status;
	};
	typedef struct RENEW4res RENEW4res;

	struct RESTOREFH4res {
		nfsstat4 status;
	};
	typedef struct RESTOREFH4res RESTOREFH4res;

	struct SAVEFH4res {
		nfsstat4 status;
	};
	typedef struct SAVEFH4res SAVEFH4res;

	struct SECINFO4args {
		component4 name;
	};
	typedef struct SECINFO4args SECINFO4args;

	struct rpcsec_gss_info {
		sec_oid4 oid;
		qop4 qop;
		rpc_gss_svc_t service;
	};
	typedef struct rpcsec_gss_info rpcsec_gss_info;

	struct secinfo4 {
		uint32_t flavor;
		union {
			rpcsec_gss_info flavor_info;
		} secinfo4_u;
	};
	typedef struct secinfo4 secinfo4;

	typedef struct {
		u_int SECINFO4resok_len;
		secinfo4 *SECINFO4resok_val;
	} SECINFO4resok;

	struct SECINFO4res {
		nfsstat4 status;
		union {
			SECINFO4resok resok4;
		} SECINFO4res_u;
	};
	typedef struct SECINFO4res SECINFO4res;

	struct SETATTR4args {
		stateid4 stateid;
		fattr4 obj_attributes;
	};
	typedef struct SETATTR4args SETATTR4args;

	struct SETATTR4res {
		nfsstat4 status;
		struct bitmap4 attrsset;
	};
	typedef struct SETATTR4res SETATTR4res;

	struct SETCLIENTID4args {
		nfs_client_id4 client;
		cb_client4 callback;
		uint32_t callback_ident;
	};
	typedef struct SETCLIENTID4args SETCLIENTID4args;

	struct SETCLIENTID4resok {
		clientid4 clientid;
		verifier4 setclientid_confirm;
	};
	typedef struct SETCLIENTID4resok SETCLIENTID4resok;

	struct SETCLIENTID4res {
		nfsstat4 status;
		union {
			SETCLIENTID4resok resok4;
			clientaddr4 client_using;
		} SETCLIENTID4res_u;
	};
	typedef struct SETCLIENTID4res SETCLIENTID4res;

	struct SETCLIENTID_CONFIRM4args {
		clientid4 clientid;
		verifier4 setclientid_confirm;
	};
	typedef struct SETCLIENTID_CONFIRM4args SETCLIENTID_CONFIRM4args;

	struct SETCLIENTID_CONFIRM4res {
		nfsstat4 status;
	};
	typedef struct SETCLIENTID_CONFIRM4res SETCLIENTID_CONFIRM4res;

	struct VERIFY4args {
		fattr4 obj_attributes;
	};
	typedef struct VERIFY4args VERIFY4args;

	struct VERIFY4res {
		nfsstat4 status;
	};
	typedef struct VERIFY4res VERIFY4res;

	enum stable_how4 {
		UNSTABLE4 = 0,
		DATA_SYNC4 = 1,
		FILE_SYNC4 = 2,
	};
	typedef enum stable_how4 stable_how4;

	struct WRITE4args {
		stateid4 stateid;
		offset4 offset;
		stable_how4 stable;
		struct {
			u_int data_len;
			char *data_val;
		} data;
	};
	typedef struct WRITE4args WRITE4args;

	struct WRITE4resok {
		count4 count;
		stable_how4 committed;
		verifier4 writeverf;
	};
	typedef struct WRITE4resok WRITE4resok;

	struct WRITE4res {
		nfsstat4 status;
		union {
			WRITE4resok resok4;
		} WRITE4res_u;
	};
	typedef struct WRITE4res WRITE4res;

	struct RELEASE_LOCKOWNER4args {
		lock_owner4 lock_owner;
	};
	typedef struct RELEASE_LOCKOWNER4args RELEASE_LOCKOWNER4args;

	struct RELEASE_LOCKOWNER4res {
		nfsstat4 status;
	};
	typedef struct RELEASE_LOCKOWNER4res RELEASE_LOCKOWNER4res;

	struct ILLEGAL4res {
		nfsstat4 status;
	};
	typedef struct ILLEGAL4res ILLEGAL4res;

	typedef struct {
		u_int gsshandle4_t_len;
		char *gsshandle4_t_val;
	} gsshandle4_t;

	struct gss_cb_handles4 {
		rpc_gss_svc_t gcbp_service;
		gsshandle4_t gcbp_handle_from_server;
		gsshandle4_t gcbp_handle_from_client;
	};
	typedef struct gss_cb_handles4 gss_cb_handles4;

	struct callback_sec_parms4 {
		uint32_t cb_secflavor;
		union {
			struct authunix_parms cbsp_sys_cred;
			gss_cb_handles4 cbsp_gss_handles;
		} callback_sec_parms4_u;
	};
	typedef struct callback_sec_parms4 callback_sec_parms4;

	struct BACKCHANNEL_CTL4args {
		uint32_t bca_cb_program;
		struct {
			u_int bca_sec_parms_len;
			callback_sec_parms4 *bca_sec_parms_val;
		} bca_sec_parms;
	};
	typedef struct BACKCHANNEL_CTL4args BACKCHANNEL_CTL4args;

	struct BACKCHANNEL_CTL4res {
		nfsstat4 bcr_status;
	};
	typedef struct BACKCHANNEL_CTL4res BACKCHANNEL_CTL4res;

	enum channel_dir_from_client4 {
		CDFC4_FORE = 0x1,
		CDFC4_BACK = 0x2,
		CDFC4_FORE_OR_BOTH = 0x3,
		CDFC4_BACK_OR_BOTH = 0x7,
	};
	typedef enum channel_dir_from_client4 channel_dir_from_client4;

	struct BIND_CONN_TO_SESSION4args {
		sessionid4 bctsa_sessid;
		channel_dir_from_client4 bctsa_dir;
		bool_t bctsa_use_conn_in_rdma_mode;
	};
	typedef struct BIND_CONN_TO_SESSION4args BIND_CONN_TO_SESSION4args;

	enum channel_dir_from_server4 {
		CDFS4_FORE = 0x1,
		CDFS4_BACK = 0x2,
		CDFS4_BOTH = 0x3,
	};
	typedef enum channel_dir_from_server4 channel_dir_from_server4;

	struct BIND_CONN_TO_SESSION4resok {
		sessionid4 bctsr_sessid;
		channel_dir_from_server4 bctsr_dir;
		bool_t bctsr_use_conn_in_rdma_mode;
	};
	typedef struct BIND_CONN_TO_SESSION4resok BIND_CONN_TO_SESSION4resok;

	struct BIND_CONN_TO_SESSION4res {
		nfsstat4 bctsr_status;
		union {
			BIND_CONN_TO_SESSION4resok bctsr_resok4;
		} BIND_CONN_TO_SESSION4res_u;
	};
	typedef struct BIND_CONN_TO_SESSION4res BIND_CONN_TO_SESSION4res;
#define EXCHGID4_FLAG_SUPP_MOVED_REFER 0x00000001
#define EXCHGID4_FLAG_SUPP_MOVED_MIGR 0x00000002
#define EXCHGID4_FLAG_BIND_PRINC_STATEID 0x00000100
#define EXCHGID4_FLAG_USE_NON_PNFS 0x00010000
#define EXCHGID4_FLAG_USE_PNFS_MDS 0x00020000
#define EXCHGID4_FLAG_USE_PNFS_DS 0x00040000
#define EXCHGID4_FLAG_MASK_PNFS 0x00070000
#define EXCHGID4_FLAG_UPD_CONFIRMED_REC_A 0x40000000
#define EXCHGID4_FLAG_CONFIRMED_R 0x80000000

	struct state_protect_ops4 {
		struct bitmap4 spo_must_enforce;
		struct bitmap4 spo_must_allow;
	};
	typedef struct state_protect_ops4 state_protect_ops4;

	struct ssv_sp_parms4 {
		state_protect_ops4 ssp_ops;
		struct {
			u_int ssp_hash_algs_len;
			sec_oid4 *ssp_hash_algs_val;
		} ssp_hash_algs;
		struct {
			u_int ssp_encr_algs_len;
			sec_oid4 *ssp_encr_algs_val;
		} ssp_encr_algs;
		uint32_t ssp_window;
		uint32_t ssp_num_gss_handles;
	};
	typedef struct ssv_sp_parms4 ssv_sp_parms4;

	enum state_protect_how4 {
		SP4_NONE = 0,
		SP4_MACH_CRED = 1,
		SP4_SSV = 2,
	};
	typedef enum state_protect_how4 state_protect_how4;

	struct state_protect4_a {
		state_protect_how4 spa_how;
		union {
			state_protect_ops4 spa_mach_ops;
			ssv_sp_parms4 spa_ssv_parms;
		} state_protect4_a_u;
	};
	typedef struct state_protect4_a state_protect4_a;

	struct EXCHANGE_ID4args {
		client_owner4 eia_clientowner;
		uint32_t eia_flags;
		state_protect4_a eia_state_protect;
		struct {
			u_int eia_client_impl_id_len;
			nfs_impl_id4 *eia_client_impl_id_val;
		} eia_client_impl_id;
	};
	typedef struct EXCHANGE_ID4args EXCHANGE_ID4args;

	struct ssv_prot_info4 {
		state_protect_ops4 spi_ops;
		uint32_t spi_hash_alg;
		uint32_t spi_encr_alg;
		uint32_t spi_ssv_len;
		uint32_t spi_window;
		struct {
			u_int spi_handles_len;
			gsshandle4_t *spi_handles_val;
		} spi_handles;
	};
	typedef struct ssv_prot_info4 ssv_prot_info4;

	struct state_protect4_r {
		state_protect_how4 spr_how;
		union {
			state_protect_ops4 spr_mach_ops;
			ssv_prot_info4 spr_ssv_info;
		} state_protect4_r_u;
	};
	typedef struct state_protect4_r state_protect4_r;

	struct EXCHANGE_ID4resok {
		clientid4 eir_clientid;
		sequenceid4 eir_sequenceid;
		uint32_t eir_flags;
		state_protect4_r eir_state_protect;
		server_owner4 eir_server_owner;
		struct {
			u_int eir_server_scope_len;
			char *eir_server_scope_val;
		} eir_server_scope;
		struct {
			u_int eir_server_impl_id_len;
			nfs_impl_id4 *eir_server_impl_id_val;
		} eir_server_impl_id;
	};
	typedef struct EXCHANGE_ID4resok EXCHANGE_ID4resok;

	struct EXCHANGE_ID4res {
		nfsstat4 eir_status;
		union {
			EXCHANGE_ID4resok eir_resok4;
		} EXCHANGE_ID4res_u;
	};
	typedef struct EXCHANGE_ID4res EXCHANGE_ID4res;

	struct channel_attrs4 {
		count4 ca_headerpadsize;
		count4 ca_maxrequestsize;
		count4 ca_maxresponsesize;
		count4 ca_maxresponsesize_cached;
		count4 ca_maxoperations;
		count4 ca_maxrequests;
		struct {
			u_int ca_rdma_ird_len;
			uint32_t *ca_rdma_ird_val;
		} ca_rdma_ird;
	};
	typedef struct channel_attrs4 channel_attrs4;
#define CREATE_SESSION4_FLAG_PERSIST 0x00000001
#define CREATE_SESSION4_FLAG_CONN_BACK_CHAN 0x00000002
#define CREATE_SESSION4_FLAG_CONN_RDMA 0x00000004

	struct CREATE_SESSION4args {
		clientid4 csa_clientid;
		sequenceid4 csa_sequence;
		uint32_t csa_flags;
		channel_attrs4 csa_fore_chan_attrs;
		channel_attrs4 csa_back_chan_attrs;
		uint32_t csa_cb_program;
		struct {
			u_int csa_sec_parms_len;
			callback_sec_parms4 *csa_sec_parms_val;
		} csa_sec_parms;
	};
	typedef struct CREATE_SESSION4args CREATE_SESSION4args;

	struct CREATE_SESSION4resok {
		sessionid4 csr_sessionid;
		sequenceid4 csr_sequence;
		uint32_t csr_flags;
		channel_attrs4 csr_fore_chan_attrs;
		channel_attrs4 csr_back_chan_attrs;
	};
	typedef struct CREATE_SESSION4resok CREATE_SESSION4resok;

	struct CREATE_SESSION4res {
		nfsstat4 csr_status;
		union {
			CREATE_SESSION4resok csr_resok4;
		} CREATE_SESSION4res_u;
	};
	typedef struct CREATE_SESSION4res CREATE_SESSION4res;

	struct DESTROY_SESSION4args {
		sessionid4 dsa_sessionid;
	};
	typedef struct DESTROY_SESSION4args DESTROY_SESSION4args;

	struct DESTROY_SESSION4res {
		nfsstat4 dsr_status;
	};
	typedef struct DESTROY_SESSION4res DESTROY_SESSION4res;

	struct FREE_STATEID4args {
		stateid4 fsa_stateid;
	};
	typedef struct FREE_STATEID4args FREE_STATEID4args;

	struct FREE_STATEID4res {
		nfsstat4 fsr_status;
	};
	typedef struct FREE_STATEID4res FREE_STATEID4res;

	typedef nfstime4 attr_notice4;

	struct GET_DIR_DELEGATION4args {
		bool_t gdda_signal_deleg_avail;
		struct bitmap4 gdda_notification_types;
		attr_notice4 gdda_child_attr_delay;
		attr_notice4 gdda_dir_attr_delay;
		struct bitmap4 gdda_child_attributes;
		struct bitmap4 gdda_dir_attributes;
	};
	typedef struct GET_DIR_DELEGATION4args GET_DIR_DELEGATION4args;

	struct GET_DIR_DELEGATION4resok {
		verifier4 gddr_cookieverf;
		stateid4 gddr_stateid;
		struct bitmap4 gddr_notification;
		struct bitmap4 gddr_child_attributes;
		struct bitmap4 gddr_dir_attributes;
	};
	typedef struct GET_DIR_DELEGATION4resok GET_DIR_DELEGATION4resok;

	enum gddrnf4_status {
		GDD4_OK = 0,
		GDD4_UNAVAIL = 1,
	};
	typedef enum gddrnf4_status gddrnf4_status;

	struct GET_DIR_DELEGATION4res_non_fatal {
		gddrnf4_status gddrnf_status;
		union {
			GET_DIR_DELEGATION4resok gddrnf_resok4;
			bool_t gddrnf_will_signal_deleg_avail;
		} GET_DIR_DELEGATION4res_non_fatal_u;
	};
	typedef struct GET_DIR_DELEGATION4res_non_fatal
	    GET_DIR_DELEGATION4res_non_fatal;

	struct GET_DIR_DELEGATION4res {
		nfsstat4 gddr_status;
		union {
			GET_DIR_DELEGATION4res_non_fatal gddr_res_non_fatal4;
		} GET_DIR_DELEGATION4res_u;
	};
	typedef struct GET_DIR_DELEGATION4res GET_DIR_DELEGATION4res;

	struct GETDEVICEINFO4args {
		deviceid4 gdia_device_id;
		layouttype4 gdia_layout_type;
		count4 gdia_maxcount;
		struct bitmap4 gdia_notify_types;
	};
	typedef struct GETDEVICEINFO4args GETDEVICEINFO4args;

	struct GETDEVICEINFO4resok {
		device_addr4 gdir_device_addr;
		struct bitmap4 gdir_notification;
	};
	typedef struct GETDEVICEINFO4resok GETDEVICEINFO4resok;

	struct GETDEVICEINFO4res {
		nfsstat4 gdir_status;
		union {
			GETDEVICEINFO4resok gdir_resok4;
			count4 gdir_mincount;
		} GETDEVICEINFO4res_u;
	};
	typedef struct GETDEVICEINFO4res GETDEVICEINFO4res;

	struct GETDEVICELIST4args {
		layouttype4 gdla_layout_type;
		count4 gdla_maxdevices;
		nfs_cookie4 gdla_cookie;
		verifier4 gdla_cookieverf;
	};
	typedef struct GETDEVICELIST4args GETDEVICELIST4args;

	struct GETDEVICELIST4resok {
		nfs_cookie4 gdlr_cookie;
		verifier4 gdlr_cookieverf;
		struct {
			u_int gdlr_deviceid_list_len;
			deviceid4 *gdlr_deviceid_list_val;
		} gdlr_deviceid_list;
		bool_t gdlr_eof;
	};
	typedef struct GETDEVICELIST4resok GETDEVICELIST4resok;

	struct GETDEVICELIST4res {
		nfsstat4 gdlr_status;
		union {
			GETDEVICELIST4resok gdlr_resok4;
		} GETDEVICELIST4res_u;
	};
	typedef struct GETDEVICELIST4res GETDEVICELIST4res;

	struct newtime4 {
		bool_t nt_timechanged;
		union {
			nfstime4 nt_time;
		} newtime4_u;
	};
	typedef struct newtime4 newtime4;

	struct newoffset4 {
		bool_t no_newoffset;
		union {
			offset4 no_offset;
		} newoffset4_u;
	};
	typedef struct newoffset4 newoffset4;

	struct LAYOUTCOMMIT4args {
		offset4 loca_offset;
		length4 loca_length;
		bool_t loca_reclaim;
		stateid4 loca_stateid;
		newoffset4 loca_last_write_offset;
		newtime4 loca_time_modify;
		layoutupdate4 loca_layoutupdate;
	};
	typedef struct LAYOUTCOMMIT4args LAYOUTCOMMIT4args;

	struct newsize4 {
		bool_t ns_sizechanged;
		union {
			length4 ns_size;
		} newsize4_u;
	};
	typedef struct newsize4 newsize4;

	struct LAYOUTCOMMIT4resok {
		newsize4 locr_newsize;
	};
	typedef struct LAYOUTCOMMIT4resok LAYOUTCOMMIT4resok;

	struct LAYOUTCOMMIT4res {
		nfsstat4 locr_status;
		union {
			LAYOUTCOMMIT4resok locr_resok4;
		} LAYOUTCOMMIT4res_u;
	};
	typedef struct LAYOUTCOMMIT4res LAYOUTCOMMIT4res;

	struct LAYOUTGET4args {
		bool_t loga_signal_layout_avail;
		layouttype4 loga_layout_type;
		layoutiomode4 loga_iomode;
		offset4 loga_offset;
		length4 loga_length;
		length4 loga_minlength;
		stateid4 loga_stateid;
		count4 loga_maxcount;
	};
	typedef struct LAYOUTGET4args LAYOUTGET4args;

	struct LAYOUTGET4resok {
		bool_t logr_return_on_close;
		stateid4 logr_stateid;
		struct {
			u_int logr_layout_len;
			layout4 *logr_layout_val;
		} logr_layout;
	};
	typedef struct LAYOUTGET4resok LAYOUTGET4resok;

	struct LAYOUTGET4res {
		nfsstat4 logr_status;
		union {
			LAYOUTGET4resok logr_resok4;
			bool_t logr_will_signal_layout_avail;
		} LAYOUTGET4res_u;
	};
	typedef struct LAYOUTGET4res LAYOUTGET4res;

	struct LAYOUTRETURN4args {
		bool_t lora_reclaim;
		layouttype4 lora_layout_type;
		layoutiomode4 lora_iomode;
		layoutreturn4 lora_layoutreturn;
	};
	typedef struct LAYOUTRETURN4args LAYOUTRETURN4args;

	struct layoutreturn_stateid {
		bool_t lrs_present;
		union {
			stateid4 lrs_stateid;
		} layoutreturn_stateid_u;
	};
	typedef struct layoutreturn_stateid layoutreturn_stateid;

	struct LAYOUTRETURN4res {
		nfsstat4 lorr_status;
		union {
			layoutreturn_stateid lorr_stateid;
		} LAYOUTRETURN4res_u;
	};
	typedef struct LAYOUTRETURN4res LAYOUTRETURN4res;

	enum secinfo_style4 {
		SECINFO_STYLE4_CURRENT_FH = 0,
		SECINFO_STYLE4_PARENT = 1,
	};
	typedef enum secinfo_style4 secinfo_style4;

	typedef secinfo_style4 SECINFO_NO_NAME4args;

	typedef SECINFO4res SECINFO_NO_NAME4res;

	struct SEQUENCE4args {
		sessionid4 sa_sessionid;
		sequenceid4 sa_sequenceid;
		slotid4 sa_slotid;
		slotid4 sa_highest_slotid;
		bool_t sa_cachethis;
	};
	typedef struct SEQUENCE4args SEQUENCE4args;
#define SEQ4_STATUS_CB_PATH_DOWN 0x00000001
#define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING 0x00000002
#define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED 0x00000004
#define SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED 0x00000008
#define SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED 0x00000010
#define SEQ4_STATUS_ADMIN_STATE_REVOKED 0x00000020
#define SEQ4_STATUS_RECALLABLE_STATE_REVOKED 0x00000040
#define SEQ4_STATUS_LEASE_MOVED 0x00000080
#define SEQ4_STATUS_RESTART_RECLAIM_NEEDED 0x00000100
#define SEQ4_STATUS_CB_PATH_DOWN_SESSION 0x00000200
#define SEQ4_STATUS_BACKCHANNEL_FAULT 0x00000400
#define SEQ4_STATUS_DEVID_CHANGED 0x00000800
#define SEQ4_STATUS_DEVID_DELETED 0x00001000

	struct SEQUENCE4resok {
		sessionid4 sr_sessionid;
		sequenceid4 sr_sequenceid;
		slotid4 sr_slotid;
		slotid4 sr_highest_slotid;
		slotid4 sr_target_highest_slotid;
		uint32_t sr_status_flags;
	};
	typedef struct SEQUENCE4resok SEQUENCE4resok;

	struct SEQUENCE4res {
		nfsstat4 sr_status;
		union {
			SEQUENCE4resok sr_resok4;
		} SEQUENCE4res_u;
	};
	typedef struct SEQUENCE4res SEQUENCE4res;

	struct ssa_digest_input4 {
		SEQUENCE4args sdi_seqargs;
	};
	typedef struct ssa_digest_input4 ssa_digest_input4;

	struct SET_SSV4args {
		struct {
			u_int ssa_ssv_len;
			char *ssa_ssv_val;
		} ssa_ssv;
		struct {
			u_int ssa_digest_len;
			char *ssa_digest_val;
		} ssa_digest;
	};
	typedef struct SET_SSV4args SET_SSV4args;

	struct ssr_digest_input4 {
		SEQUENCE4res sdi_seqres;
	};
	typedef struct ssr_digest_input4 ssr_digest_input4;

	struct SET_SSV4resok {
		struct {
			u_int ssr_digest_len;
			char *ssr_digest_val;
		} ssr_digest;
	};
	typedef struct SET_SSV4resok SET_SSV4resok;

	struct SET_SSV4res {
		nfsstat4 ssr_status;
		union {
			SET_SSV4resok ssr_resok4;
		} SET_SSV4res_u;
	};
	typedef struct SET_SSV4res SET_SSV4res;

	struct TEST_STATEID4args {
		struct {
			u_int ts_stateids_len;
			stateid4 *ts_stateids_val;
		} ts_stateids;
	};
	typedef struct TEST_STATEID4args TEST_STATEID4args;

	struct TEST_STATEID4resok {
		struct {
			u_int tsr_status_codes_len;
			nfsstat4 *tsr_status_codes_val;
		} tsr_status_codes;
	};
	typedef struct TEST_STATEID4resok TEST_STATEID4resok;

	struct TEST_STATEID4res {
		nfsstat4 tsr_status;
		union {
			TEST_STATEID4resok tsr_resok4;
		} TEST_STATEID4res_u;
	};
	typedef struct TEST_STATEID4res TEST_STATEID4res;

	struct deleg_claim4 {
		open_claim_type4 dc_claim;
		union {
			open_delegation_type4 dc_delegate_type;
		} deleg_claim4_u;
	};
	typedef struct deleg_claim4 deleg_claim4;

	struct WANT_DELEGATION4args {
		uint32_t wda_want;
		deleg_claim4 wda_claim;
	};
	typedef struct WANT_DELEGATION4args WANT_DELEGATION4args;

	struct WANT_DELEGATION4res {
		nfsstat4 wdr_status;
		union {
			open_delegation4 wdr_resok4;
		} WANT_DELEGATION4res_u;
	};
	typedef struct WANT_DELEGATION4res WANT_DELEGATION4res;

	struct DESTROY_CLIENTID4args {
		clientid4 dca_clientid;
	};
	typedef struct DESTROY_CLIENTID4args DESTROY_CLIENTID4args;

	struct DESTROY_CLIENTID4res {
		nfsstat4 dcr_status;
	};
	typedef struct DESTROY_CLIENTID4res DESTROY_CLIENTID4res;

	struct RECLAIM_COMPLETE4args {
		bool_t rca_one_fs;
	};
	typedef struct RECLAIM_COMPLETE4args RECLAIM_COMPLETE4args;

	struct RECLAIM_COMPLETE4res {
		nfsstat4 rcr_status;
	};
	typedef struct RECLAIM_COMPLETE4res RECLAIM_COMPLETE4res;

	/* NFS End-to-end Integrity */
	enum nfs_protection_type4 {
		NFS_PI_NOT_SUPPORTED = 0,
		NFS_PI_TYPE1 = 1,
		NFS_PI_TYPE2 = 2,
		NFS_PI_TYPE3 = 3,
		NFS_PI_TYPE4 = 4,
		NFS_PI_TYPE5 = 5,
		__NFS_PI_TYPELIMIT = 6,
	};
	typedef enum nfs_protection_type4 nfs_protection_type4;

	struct nfs_protection_info4 {
		nfs_protection_type4 pi_type;
		uint32_t pi_intvl_size;
		uint64_t pi_other_data;
	};
	typedef struct nfs_protection_info4 nfs_protection_info4;
	typedef nfs_protection_info4 fattr4_protection_types;

	struct INITPROTINFO4args {
		nfs_protection_type4 ipi_type;
		struct {
			u_int ipi_data_len;
			char *ipi_data_val;
		} ipi_data;
	};
	typedef struct INITPROTINFO4args INITPROTINFO4args;

	struct INITPROTINFO4res {
		nfsstat4 status;
	};
	typedef struct INITPROTINFO4res INITPROTINFO4res;

	/* NFSv4.2 */
	enum netloc_type4 {
		NL4_NAME        = 0,
		NL4_URL         = 1,
		NL4_NETADDR     = 2
	};
	typedef enum netloc_type4 netloc_type4;

	typedef struct {
		netloc_type4 nl_type;
		union {
			utf8str_cis nl_name;
			utf8str_cis nl_url;
			netaddr4    nl_addr;
		};
	} netloc4;

	enum data_content4 {
		NFS4_CONTENT_DATA = 0,
		NFS4_CONTENT_APP_DATA_HOLE = 1,
		NFS4_CONTENT_HOLE = 2,
		NFS4_CONTENT_PROTECTED_DATA = 3,
		NFS4_CONTENT_PROTECT_INFO = 5,
	};
	typedef enum data_content4 data_content4;

	typedef struct {
		offset4         d_offset;
		bool_t          d_allocated;
		struct {
			u_int data_len;
			char *data_val;
		} d_data;
	} data4;

	typedef struct {
		offset4         adh_offset;
		length4         adh_block_size;
		length4         adh_block_count;
		length4         adh_reloff_blocknum;
		count4          adh_block_num;
		length4         adh_reloff_pattern;
		struct {
			u_int data_len;
			char *data_val;
		} adh_data;
	} app_data_hole4;

	typedef struct {
		offset4         di_offset;
		length4         di_length;
		bool_t          di_allocated;
	} data_info4;

	typedef struct {
		count4          wr_ids;
		stateid4        wr_callback_id;
		length4         wr_count;
		stable_how4     wr_committed;
		verifier4       wr_writeverf;
	} write_response4;

	struct data_protected4 {
		nfs_protection_info4 pd_type;
		offset4 pd_offset;
		bool_t pd_allocated;
		struct {
			u_int pd_info_len;
			char *pd_info_val;
		} pd_info;
		struct {
			u_int pd_data_len;
			char *pd_data_val;
		} pd_data;
	};
	typedef struct data_protected4 data_protected4;

	struct data_protect_info4 {
		nfs_protection_info4 pi_type;
		offset4 pi_offset;
		bool_t pi_allocated;
		struct {
			u_int pi_data_len;
			char *pi_data_val;
		} pi_data;
	};
	typedef struct data_protect_info4 data_protect_info4;

	typedef struct {
		data_content4   what;
		union {
			data4           data;
			app_data_hole4  adh;
			data_info4      hole;
			data_protected4 pdata;
			data_protect_info4      pinfo;
		};
	} contents;

	typedef struct {
		bool_t            rpr_eof;
		struct {
			u_int rpr_contents_len;
			contents *rpr_contents_val;
		};
	} read_plus_res4;

	typedef struct {
		bool_t          sr_eof;
		contents        sr_contents;
	} seek_res4;

	typedef struct OFFLOAD_STATUS4resok {
		length4         osr_bytes_copied;
		count4          osr_count_complete;
		nfsstat4        osr_complete;
	} OFFLOAD_STATUS4resok;

	struct COPY_NOTIFY4args {
		stateid4 cna_stateid;
		netloc_type4        cna_type;
		union {
			utf8str_cis cna_name;
			utf8str_cis cna_url;
			netaddr4    cna_addr;
		};
	};
	typedef struct COPY_NOTIFY4args COPY_NOTIFY4args;

	struct COPY_NOTIFY4res {
		nfstime4 cnr_time;
		netloc_type4        cna_type;
		union {
			utf8str_cis cnr_name;
			utf8str_cis cnr_url;
			netaddr4    cnr_addr;
		};
	};
	typedef struct COPY_NOTIFY4res COPY_NOTIFY4res;

	struct OFFLOAD_REVOKE4args {
		netloc_type4        ora_type;
		union {
			utf8str_cis ora_name;
			utf8str_cis ora_url;
			netaddr4    ora_addr;
		};
	};
	typedef struct OFFLOAD_REVOKE4args OFFLOAD_REVOKE4args;

	struct OFFLOAD_REVOKE4res {
		netloc_type4        orr_type;
	};
	typedef struct OFFLOAD_REVOKE4res OFFLOAD_REVOKE4res;

	struct COPY4args {
		stateid4        ca_src_stateid;
		stateid4        ca_dst_stateid;
		offset4         ca_src_offset;
		offset4         ca_dst_offset;
		length4         ca_count;
		struct {
			u_int ca_netloc_len;
			netloc4* ca_netlocs;
		};
	};
	typedef struct COPY4args COPY4args;

	struct COPY4res {
		nfsstat4 cr_status;
		union {
			write_response4 cr_resok4;
			length4         cr_bytes_copied;
		} COPY4res_u;
	};
	typedef struct COPY4res COPY4res;

	struct OFFLOAD_ABORT4args {
		stateid4        oaa_stateid;
	};
	typedef struct OFFLOAD_ABORT4args OFFLOAD_ABORT4args;

	struct OFFLOAD_ABORT4res {
		stateid4        oar_stateid;
	};
	typedef struct OFFLOAD_ABORT4res OFFLOAD_ABORT4res;

	struct OFFLOAD_STATUS4args {
		stateid4        osa_stateid;
	};
	typedef struct OFFLOAD_STATUS4args OFFLOAD_STATUS4args;

	struct OFFLOAD_STATUS4res {
		nfsstat4 osr_status;
		union {
			OFFLOAD_STATUS4resok osr_resok4;
		} OFFLOAD_STATUS4res_u;
	};
	typedef struct OFFLOAD_STATUS4res OFFLOAD_STATUS4res;

	struct WRITE_PLUS4args {
		stateid4        wp_stateid;
		stable_how4     wp_stable;
		struct {
			u_int wp_data_len;
			contents *wp_data_val;
		} wp_data;
	};
	typedef struct WRITE_PLUS4args WRITE_PLUS4args;

	struct WRITE_PLUS4res {
		nfsstat4 wpr_status;
		union {
			write_response4 wpr_resok4;
		} WRITE_PLUS4res_u;
	};
	typedef struct WRITE_PLUS4res WRITE_PLUS4res;

	struct READ_PLUS4args {
		stateid4        rpa_stateid;
		offset4         rpa_offset;
		count4          rpa_count;
		data_content4	rpa_content;
	};
	typedef struct READ_PLUS4args READ_PLUS4args;

	struct READ_PLUS4res {
		nfsstat4 rpr_status;
		union {
			read_plus_res4 rpr_resok4;
		};
	};
	typedef struct READ_PLUS4res READ_PLUS4res;

	struct ALLOCATE4args {
		stateid4        aa_stateid;
		offset4         aa_offset;
		length4         aa_length;
	};
	typedef struct ALLOCATE4args ALLOCATE4args;

	struct ALLOCATE4res {
		nfsstat4 ar_status;
	};
	typedef struct ALLOCATE4res ALLOCATE4res;

	struct DEALLOCATE4args {
		stateid4        da_stateid;
		offset4         da_offset;
		length4         da_length;
	};
	typedef struct DEALLOCATE4args DEALLOCATE4args;

	struct DEALLOCATE4res {
		nfsstat4 dr_status;
	};
	typedef struct DEALLOCATE4res DEALLOCATE4res;

	struct SEEK4args {
		stateid4        sa_stateid;
		offset4         sa_offset;
		data_content4   sa_what;
	};
	typedef struct SEEK4args SEEK4args;

	struct SEEK4res {
		nfsstat4 sr_status;
		union {
			seek_res4 sr_resok4;
		};
	};
	typedef struct SEEK4res SEEK4res;

	enum IO_ADVISE_type4 {
		IO_ADVISE4_NORMAL                   = 0,
		IO_ADVISE4_SEQUENTIAL               = 1,
		IO_ADVISE4_SEQUENTIAL_BACKWARDS     = 2,
		IO_ADVISE4_RANDOM                   = 3,
		IO_ADVISE4_WILLNEED                 = 4,
		IO_ADVISE4_WILLNEED_OPPORTUNISTIC   = 5,
		IO_ADVISE4_DONTNEED                 = 6,
		IO_ADVISE4_NOREUSE                  = 7,
		IO_ADVISE4_READ                     = 8,
		IO_ADVISE4_WRITE                    = 9,
		IO_ADVISE4_INIT_PROXIMITY           = 10
	};

	struct IO_ADVISE4args {
		stateid4        iar_stateid;
		offset4         iar_offset;
		length4         iar_count;
		bitmap4         iar_hints;
	};
	typedef struct IO_ADVISE4args IO_ADVISE4args;

	struct IO_ADVISE4res {
		nfsstat4 iar_status;
		union {
			bitmap4  iar_hints;
		};
	};
	typedef struct IO_ADVISE4res IO_ADVISE4res;

/* new operations for NFSv4.1 */

	enum nfs_opnum4 {
		NFS4_OP_ACCESS = 3,
		NFS4_OP_CLOSE = 4,
		NFS4_OP_COMMIT = 5,
		NFS4_OP_CREATE = 6,
		NFS4_OP_DELEGPURGE = 7,
		NFS4_OP_DELEGRETURN = 8,
		NFS4_OP_GETATTR = 9,
		NFS4_OP_GETFH = 10,
		NFS4_OP_LINK = 11,
		NFS4_OP_LOCK = 12,
		NFS4_OP_LOCKT = 13,
		NFS4_OP_LOCKU = 14,
		NFS4_OP_LOOKUP = 15,
		NFS4_OP_LOOKUPP = 16,
		NFS4_OP_NVERIFY = 17,
		NFS4_OP_OPEN = 18,
		NFS4_OP_OPENATTR = 19,
		NFS4_OP_OPEN_CONFIRM = 20,
		NFS4_OP_OPEN_DOWNGRADE = 21,
		NFS4_OP_PUTFH = 22,
		NFS4_OP_PUTPUBFH = 23,
		NFS4_OP_PUTROOTFH = 24,
		NFS4_OP_READ = 25,
		NFS4_OP_READDIR = 26,
		NFS4_OP_READLINK = 27,
		NFS4_OP_REMOVE = 28,
		NFS4_OP_RENAME = 29,
		NFS4_OP_RENEW = 30,
		NFS4_OP_RESTOREFH = 31,
		NFS4_OP_SAVEFH = 32,
		NFS4_OP_SECINFO = 33,
		NFS4_OP_SETATTR = 34,
		NFS4_OP_SETCLIENTID = 35,
		NFS4_OP_SETCLIENTID_CONFIRM = 36,
		NFS4_OP_VERIFY = 37,
		NFS4_OP_WRITE = 38,
		NFS4_OP_RELEASE_LOCKOWNER = 39,
		NFS4_OP_BACKCHANNEL_CTL = 40,
		NFS4_OP_BIND_CONN_TO_SESSION = 41,
		NFS4_OP_EXCHANGE_ID = 42,
		NFS4_OP_CREATE_SESSION = 43,
		NFS4_OP_DESTROY_SESSION = 44,
		NFS4_OP_FREE_STATEID = 45,
		NFS4_OP_GET_DIR_DELEGATION = 46,
		NFS4_OP_GETDEVICEINFO = 47,
		NFS4_OP_GETDEVICELIST = 48,
		NFS4_OP_LAYOUTCOMMIT = 49,
		NFS4_OP_LAYOUTGET = 50,
		NFS4_OP_LAYOUTRETURN = 51,
		NFS4_OP_SECINFO_NO_NAME = 52,
		NFS4_OP_SEQUENCE = 53,
		NFS4_OP_SET_SSV = 54,
		NFS4_OP_TEST_STATEID = 55,
		NFS4_OP_WANT_DELEGATION = 56,
		NFS4_OP_DESTROY_CLIENTID = 57,
		NFS4_OP_RECLAIM_COMPLETE = 58,

		/* NFSv4.2 */
		NFS4_OP_ALLOCATE = 59,
		NFS4_OP_COPY = 60,
		NFS4_OP_OFFLOAD_ABORT = 61,
		NFS4_OP_COPY_NOTIFY = 62,
		NFS4_OP_OFFLOAD_REVOKE = 63,
		NFS4_OP_OFFLOAD_STATUS = 64,
		NFS4_OP_WRITE_PLUS = 65,
		NFS4_OP_READ_PLUS = 66,
		NFS4_OP_SEEK = 67,
		NFS4_OP_IO_ADVISE = 68,

		NFS4_OP_ILLEGAL = 10044,
	};
	typedef enum nfs_opnum4 nfs_opnum4;

	struct nfs_argop4 {
		nfs_opnum4 argop;
		union {
			ACCESS4args opaccess;
			CLOSE4args opclose;
			COMMIT4args opcommit;
			CREATE4args opcreate;
			DELEGPURGE4args opdelegpurge;
			DELEGRETURN4args opdelegreturn;
			GETATTR4args opgetattr;
			LINK4args oplink;
			LOCK4args oplock;
			LOCKT4args oplockt;
			LOCKU4args oplocku;
			LOOKUP4args oplookup;
			NVERIFY4args opnverify;
			OPEN4args opopen;
			OPENATTR4args opopenattr;
			OPEN_CONFIRM4args opopen_confirm;
			OPEN_DOWNGRADE4args opopen_downgrade;
			PUTFH4args opputfh;
			READ4args opread;
			READDIR4args opreaddir;
			REMOVE4args opremove;
			RENAME4args oprename;
			RENEW4args oprenew;
			SECINFO4args opsecinfo;
			SETATTR4args opsetattr;
			SETCLIENTID4args opsetclientid;
			SETCLIENTID_CONFIRM4args opsetclientid_confirm;
			VERIFY4args opverify;
			WRITE4args opwrite;
			RELEASE_LOCKOWNER4args oprelease_lockowner;
			BACKCHANNEL_CTL4args opbackchannel_ctl;
			BIND_CONN_TO_SESSION4args opbind_conn_to_session;
			EXCHANGE_ID4args opexchange_id;
			CREATE_SESSION4args opcreate_session;
			DESTROY_SESSION4args opdestroy_session;
			FREE_STATEID4args opfree_stateid;
			GET_DIR_DELEGATION4args opget_dir_delegation;
			GETDEVICEINFO4args opgetdeviceinfo;
			GETDEVICELIST4args opgetdevicelist;
			LAYOUTCOMMIT4args oplayoutcommit;
			LAYOUTGET4args oplayoutget;
			LAYOUTRETURN4args oplayoutreturn;
			SECINFO_NO_NAME4args opsecinfo_no_name;
			SEQUENCE4args opsequence;
			SET_SSV4args opset_ssv;
			TEST_STATEID4args optest_stateid;
			WANT_DELEGATION4args opwant_delegation;
			DESTROY_CLIENTID4args opdestroy_clientid;
			RECLAIM_COMPLETE4args opreclaim_complete;

			/* NFSv4.2 */
			COPY_NOTIFY4args opoffload_notify;
			OFFLOAD_REVOKE4args opcopy_revoke;
			COPY4args opcopy;
			OFFLOAD_ABORT4args opoffload_abort;
			OFFLOAD_STATUS4args opoffload_status;
			WRITE_PLUS4args opwrite_plus;
			READ_PLUS4args opread_plus;
			SEEK4args opseek;
			IO_ADVISE4args opio_advise;
		} nfs_argop4_u;
	};
	typedef struct nfs_argop4 nfs_argop4;

	struct nfs_resop4 {
		nfs_opnum4 resop;
		union {
			ACCESS4res opaccess;
			CLOSE4res opclose;
			COMMIT4res opcommit;
			CREATE4res opcreate;
			DELEGPURGE4res opdelegpurge;
			DELEGRETURN4res opdelegreturn;
			GETATTR4res opgetattr;
			GETFH4res opgetfh;
			LINK4res oplink;
			LOCK4res oplock;
			LOCKT4res oplockt;
			LOCKU4res oplocku;
			LOOKUP4res oplookup;
			LOOKUPP4res oplookupp;
			NVERIFY4res opnverify;
			OPEN4res opopen;
			OPENATTR4res opopenattr;
			OPEN_CONFIRM4res opopen_confirm;
			OPEN_DOWNGRADE4res opopen_downgrade;
			PUTFH4res opputfh;
			PUTPUBFH4res opputpubfh;
			PUTROOTFH4res opputrootfh;
			READ4res opread;
			READDIR4res opreaddir;
			READLINK4res opreadlink;
			REMOVE4res opremove;
			RENAME4res oprename;
			RENEW4res oprenew;
			RESTOREFH4res oprestorefh;
			SAVEFH4res opsavefh;
			SECINFO4res opsecinfo;
			SETATTR4res opsetattr;
			SETCLIENTID4res opsetclientid;
			SETCLIENTID_CONFIRM4res opsetclientid_confirm;
			VERIFY4res opverify;
			WRITE4res opwrite;
			RELEASE_LOCKOWNER4res oprelease_lockowner;
			BACKCHANNEL_CTL4res opbackchannel_ctl;
			BIND_CONN_TO_SESSION4res opbind_conn_to_session;
			EXCHANGE_ID4res opexchange_id;
			CREATE_SESSION4res opcreate_session;
			DESTROY_SESSION4res opdestroy_session;
			FREE_STATEID4res opfree_stateid;
			GET_DIR_DELEGATION4res opget_dir_delegation;
			GETDEVICEINFO4res opgetdeviceinfo;
			GETDEVICELIST4res opgetdevicelist;
			LAYOUTCOMMIT4res oplayoutcommit;
			LAYOUTGET4res oplayoutget;
			LAYOUTRETURN4res oplayoutreturn;
			SECINFO_NO_NAME4res opsecinfo_no_name;
			SEQUENCE4res opsequence;
			SET_SSV4res opset_ssv;
			TEST_STATEID4res optest_stateid;
			WANT_DELEGATION4res opwant_delegation;
			DESTROY_CLIENTID4res opdestroy_clientid;
			RECLAIM_COMPLETE4res opreclaim_complete;

			/* NFSv4.2 */
			COPY_NOTIFY4res opoffload_notify;
			OFFLOAD_REVOKE4res opcopy_revoke;
			COPY4res opcopy;
			OFFLOAD_ABORT4res opoffload_abort;
			OFFLOAD_STATUS4res opoffload_status;
			WRITE_PLUS4res opwrite_plus;
			READ_PLUS4res opread_plus;
			SEEK4res opseek;
			IO_ADVISE4res opio_advise;

			ILLEGAL4res opillegal;
		} nfs_resop4_u;
	};
	typedef struct nfs_resop4 nfs_resop4;

	struct COMPOUND4args {
		utf8str_cs tag;
		uint32_t minorversion;
		struct {
			u_int argarray_len;
			nfs_argop4 *argarray_val;
		} argarray;
	};
	typedef struct COMPOUND4args COMPOUND4args;

	struct COMPOUND4res {
		nfsstat4 status;
		utf8str_cs tag;
		struct {
			u_int resarray_len;
			nfs_resop4 *resarray_val;
		} resarray;
	};
	typedef struct COMPOUND4res COMPOUND4res;

	struct CB_GETATTR4args {
		nfs_fh4 fh;
		struct bitmap4 attr_request;
	};
	typedef struct CB_GETATTR4args CB_GETATTR4args;

	struct CB_GETATTR4resok {
		fattr4 obj_attributes;
	};
	typedef struct CB_GETATTR4resok CB_GETATTR4resok;

	struct CB_GETATTR4res {
		nfsstat4 status;
		union {
			CB_GETATTR4resok resok4;
		} CB_GETATTR4res_u;
	};
	typedef struct CB_GETATTR4res CB_GETATTR4res;

	struct CB_RECALL4args {
		stateid4 stateid;
		bool_t truncate;
		nfs_fh4 fh;
	};
	typedef struct CB_RECALL4args CB_RECALL4args;

	struct CB_RECALL4res {
		nfsstat4 status;
	};
	typedef struct CB_RECALL4res CB_RECALL4res;

	struct CB_ILLEGAL4res {
		nfsstat4 status;
	};
	typedef struct CB_ILLEGAL4res CB_ILLEGAL4res;

	enum layoutrecall_type4 {
		LAYOUTRECALL4_FILE = LAYOUT4_RET_REC_FILE,
		LAYOUTRECALL4_FSID = LAYOUT4_RET_REC_FSID,
		LAYOUTRECALL4_ALL = LAYOUT4_RET_REC_ALL,
	};
	typedef enum layoutrecall_type4 layoutrecall_type4;

	struct layoutrecall_file4 {
		nfs_fh4 lor_fh;
		offset4 lor_offset;
		length4 lor_length;
		stateid4 lor_stateid;
	};
	typedef struct layoutrecall_file4 layoutrecall_file4;

	struct layoutrecall4 {
		layoutrecall_type4 lor_recalltype;
		union {
			layoutrecall_file4 lor_layout;
			fsid4 lor_fsid;
		} layoutrecall4_u;
	};
	typedef struct layoutrecall4 layoutrecall4;

	struct CB_LAYOUTRECALL4args {
		layouttype4 clora_type;
		layoutiomode4 clora_iomode;
		bool_t clora_changed;
		layoutrecall4 clora_recall;
	};
	typedef struct CB_LAYOUTRECALL4args CB_LAYOUTRECALL4args;

	struct CB_LAYOUTRECALL4res {
		nfsstat4 clorr_status;
	};
	typedef struct CB_LAYOUTRECALL4res CB_LAYOUTRECALL4res;

	enum notify_type4 {
		NOTIFY4_CHANGE_CHILD_ATTRS = 0,
		NOTIFY4_CHANGE_DIR_ATTRS = 1,
		NOTIFY4_REMOVE_ENTRY = 2,
		NOTIFY4_ADD_ENTRY = 3,
		NOTIFY4_RENAME_ENTRY = 4,
		NOTIFY4_CHANGE_COOKIE_VERIFIER = 5,
	};
	typedef enum notify_type4 notify_type4;

	struct notify_entry4 {
		component4 ne_file;
		fattr4 ne_attrs;
	};
	typedef struct notify_entry4 notify_entry4;

	struct prev_entry4 {
		notify_entry4 pe_prev_entry;
		nfs_cookie4 pe_prev_entry_cookie;
	};
	typedef struct prev_entry4 prev_entry4;

	struct notify_remove4 {
		notify_entry4 nrm_old_entry;
		nfs_cookie4 nrm_old_entry_cookie;
	};
	typedef struct notify_remove4 notify_remove4;

	struct notify_add4 {
		struct {
			u_int nad_old_entry_len;
			notify_remove4 *nad_old_entry_val;
		} nad_old_entry;
		notify_entry4 nad_new_entry;
		struct {
			u_int nad_new_entry_cookie_len;
			nfs_cookie4 *nad_new_entry_cookie_val;
		} nad_new_entry_cookie;
		struct {
			u_int nad_prev_entry_len;
			prev_entry4 *nad_prev_entry_val;
		} nad_prev_entry;
		bool_t nad_last_entry;
	};
	typedef struct notify_add4 notify_add4;

	struct notify_attr4 {
		notify_entry4 na_changed_entry;
	};
	typedef struct notify_attr4 notify_attr4;

	struct notify_rename4 {
		notify_remove4 nrn_old_entry;
		notify_add4 nrn_new_entry;
	};
	typedef struct notify_rename4 notify_rename4;

	struct notify_verifier4 {
		verifier4 nv_old_cookieverf;
		verifier4 nv_new_cookieverf;
	};
	typedef struct notify_verifier4 notify_verifier4;

	typedef struct {
		u_int notifylist4_len;
		char *notifylist4_val;
	} notifylist4;

	struct notify4 {
		struct bitmap4 notify_mask;
		notifylist4 notify_vals;
	};
	typedef struct notify4 notify4;

	struct CB_NOTIFY4args {
		stateid4 cna_stateid;
		nfs_fh4 cna_fh;
		struct {
			u_int cna_changes_len;
			notify4 *cna_changes_val;
		} cna_changes;
	};
	typedef struct CB_NOTIFY4args CB_NOTIFY4args;

	struct CB_NOTIFY4res {
		nfsstat4 cnr_status;
	};
	typedef struct CB_NOTIFY4res CB_NOTIFY4res;

	struct CB_PUSH_DELEG4args {
		nfs_fh4 cpda_fh;
		open_delegation4 cpda_delegation;
	};
	typedef struct CB_PUSH_DELEG4args CB_PUSH_DELEG4args;

	struct CB_PUSH_DELEG4res {
		nfsstat4 cpdr_status;
	};
	typedef struct CB_PUSH_DELEG4res CB_PUSH_DELEG4res;
#define RCA4_TYPE_MASK_RDATA_DLG 0
#define RCA4_TYPE_MASK_WDATA_DLG 1
#define RCA4_TYPE_MASK_DIR_DLG 2
#define RCA4_TYPE_MASK_FILE_LAYOUT 3
#define RCA4_TYPE_MASK_BLK_LAYOUT 4
#define RCA4_TYPE_MASK_OBJ_LAYOUT_MIN 8
#define RCA4_TYPE_MASK_OBJ_LAYOUT_MAX 9
#define RCA4_TYPE_MASK_OTHER_LAYOUT_MIN 12
#define RCA4_TYPE_MASK_OTHER_LAYOUT_MAX 15

	struct CB_RECALL_ANY4args {
		uint32_t craa_objects_to_keep;
		struct bitmap4 craa_type_mask;
	};
	typedef struct CB_RECALL_ANY4args CB_RECALL_ANY4args;

	struct CB_RECALL_ANY4res {
		nfsstat4 crar_status;
	};
	typedef struct CB_RECALL_ANY4res CB_RECALL_ANY4res;

	typedef CB_RECALL_ANY4args CB_RECALLABLE_OBJ_AVAIL4args;

	struct CB_RECALLABLE_OBJ_AVAIL4res {
		nfsstat4 croa_status;
	};
	typedef struct CB_RECALLABLE_OBJ_AVAIL4res CB_RECALLABLE_OBJ_AVAIL4res;

	struct CB_RECALL_SLOT4args {
		slotid4 rsa_target_highest_slotid;
	};
	typedef struct CB_RECALL_SLOT4args CB_RECALL_SLOT4args;

	struct CB_RECALL_SLOT4res {
		nfsstat4 rsr_status;
	};
	typedef struct CB_RECALL_SLOT4res CB_RECALL_SLOT4res;

	struct referring_call4 {
		sequenceid4 rc_sequenceid;
		slotid4 rc_slotid;
	};
	typedef struct referring_call4 referring_call4;

	struct referring_call_list4 {
		sessionid4 rcl_sessionid;
		struct {
			u_int rcl_referring_calls_len;
			referring_call4 *rcl_referring_calls_val;
		} rcl_referring_calls;
	};
	typedef struct referring_call_list4 referring_call_list4;

	struct CB_SEQUENCE4args {
		sessionid4 csa_sessionid;
		sequenceid4 csa_sequenceid;
		slotid4 csa_slotid;
		slotid4 csa_highest_slotid;
		bool_t csa_cachethis;
		struct {
			u_int csa_referring_call_lists_len;
			referring_call_list4 *csa_referring_call_lists_val;
		} csa_referring_call_lists;
	};
	typedef struct CB_SEQUENCE4args CB_SEQUENCE4args;

	struct CB_SEQUENCE4resok {
		sessionid4 csr_sessionid;
		sequenceid4 csr_sequenceid;
		slotid4 csr_slotid;
		slotid4 csr_highest_slotid;
		slotid4 csr_target_highest_slotid;
	};
	typedef struct CB_SEQUENCE4resok CB_SEQUENCE4resok;

	struct CB_SEQUENCE4res {
		nfsstat4 csr_status;
		union {
			CB_SEQUENCE4resok csr_resok4;
		} CB_SEQUENCE4res_u;
	};
	typedef struct CB_SEQUENCE4res CB_SEQUENCE4res;

	struct CB_WANTS_CANCELLED4args {
		bool_t cwca_contended_wants_cancelled;
		bool_t cwca_resourced_wants_cancelled;
	};
	typedef struct CB_WANTS_CANCELLED4args CB_WANTS_CANCELLED4args;

	struct CB_WANTS_CANCELLED4res {
		nfsstat4 cwcr_status;
	};
	typedef struct CB_WANTS_CANCELLED4res CB_WANTS_CANCELLED4res;

	struct CB_NOTIFY_LOCK4args {
		nfs_fh4 cnla_fh;
		lock_owner4 cnla_lock_owner;
	};
	typedef struct CB_NOTIFY_LOCK4args CB_NOTIFY_LOCK4args;

	struct CB_NOTIFY_LOCK4res {
		nfsstat4 cnlr_status;
	};
	typedef struct CB_NOTIFY_LOCK4res CB_NOTIFY_LOCK4res;

	enum notify_deviceid_type4 {
		NOTIFY_DEVICEID4_CHANGE = 1,
		NOTIFY_DEVICEID4_DELETE = 2,
	};
	typedef enum notify_deviceid_type4 notify_deviceid_type4;

#define NOTIFY_DEVICEID4_CHANGE_MASK (1 << NOTIFY_DEVICEID4_CHANGE)
#define NOTIFY_DEVICEID4_DELETE_MASK (1 << NOTIFY_DEVICEID4_DELETE)

	struct notify_deviceid_delete4 {
		layouttype4 ndd_layouttype;
		deviceid4 ndd_deviceid;
	};
	typedef struct notify_deviceid_delete4 notify_deviceid_delete4;

	struct notify_deviceid_change4 {
		layouttype4 ndc_layouttype;
		deviceid4 ndc_deviceid;
		bool_t ndc_immediate;
	};
	typedef struct notify_deviceid_change4 notify_deviceid_change4;

	struct CB_NOTIFY_DEVICEID4args {
		struct {
			u_int cnda_changes_len;
			notify4 *cnda_changes_val;
		} cnda_changes;
	};
	typedef struct CB_NOTIFY_DEVICEID4args CB_NOTIFY_DEVICEID4args;

	struct CB_NOTIFY_DEVICEID4res {
		nfsstat4 cndr_status;
	};
	typedef struct CB_NOTIFY_DEVICEID4res CB_NOTIFY_DEVICEID4res;

/* Callback operations new to NFSv4.1 */

	enum nfs_cb_opnum4 {
		NFS4_OP_CB_GETATTR = 3,
		NFS4_OP_CB_RECALL = 4,
		NFS4_OP_CB_LAYOUTRECALL = 5,
		NFS4_OP_CB_NOTIFY = 6,
		NFS4_OP_CB_PUSH_DELEG = 7,
		NFS4_OP_CB_RECALL_ANY = 8,
		NFS4_OP_CB_RECALLABLE_OBJ_AVAIL = 9,
		NFS4_OP_CB_RECALL_SLOT = 10,
		NFS4_OP_CB_SEQUENCE = 11,
		NFS4_OP_CB_WANTS_CANCELLED = 12,
		NFS4_OP_CB_NOTIFY_LOCK = 13,
		NFS4_OP_CB_NOTIFY_DEVICEID = 14,
		NFS4_OP_CB_ILLEGAL = 10044,
	};
	typedef enum nfs_cb_opnum4 nfs_cb_opnum4;

	struct nfs_cb_argop4 {
		u_int argop;
		union {
			CB_GETATTR4args opcbgetattr;
			CB_RECALL4args opcbrecall;
			CB_LAYOUTRECALL4args opcblayoutrecall;
			CB_NOTIFY4args opcbnotify;
			CB_PUSH_DELEG4args opcbpush_deleg;
			CB_RECALL_ANY4args opcbrecall_any;
			CB_RECALLABLE_OBJ_AVAIL4args opcbrecallable_obj_avail;
			CB_RECALL_SLOT4args opcbrecall_slot;
			CB_SEQUENCE4args opcbsequence;
			CB_WANTS_CANCELLED4args opcbwants_cancelled;
			CB_NOTIFY_LOCK4args opcbnotify_lock;
			CB_NOTIFY_DEVICEID4args opcbnotify_deviceid;
		} nfs_cb_argop4_u;
	};
	typedef struct nfs_cb_argop4 nfs_cb_argop4;

	struct nfs_cb_resop4 {
		u_int resop;
		union {
			CB_GETATTR4res opcbgetattr;
			CB_RECALL4res opcbrecall;
			CB_LAYOUTRECALL4res opcblayoutrecall;
			CB_NOTIFY4res opcbnotify;
			CB_PUSH_DELEG4res opcbpush_deleg;
			CB_RECALL_ANY4res opcbrecall_any;
			CB_RECALLABLE_OBJ_AVAIL4res opcbrecallable_obj_avail;
			CB_RECALL_SLOT4res opcbrecall_slot;
			CB_SEQUENCE4res opcbsequence;
			CB_WANTS_CANCELLED4res opcbwants_cancelled;
			CB_NOTIFY_LOCK4res opcbnotify_lock;
			CB_NOTIFY_DEVICEID4res opcbnotify_deviceid;
			CB_ILLEGAL4res opcbillegal;
		} nfs_cb_resop4_u;
	};
	typedef struct nfs_cb_resop4 nfs_cb_resop4;

	struct CB_COMPOUND4args {
		utf8str_cs tag;
		uint32_t minorversion;
		uint32_t callback_ident;
		struct {
			u_int argarray_len;
			nfs_cb_argop4 *argarray_val;
		} argarray;
	};
	typedef struct CB_COMPOUND4args CB_COMPOUND4args;

	struct CB_COMPOUND4res {
		nfsstat4 status;
		utf8str_cs tag;
		struct {
			u_int resarray_len;
			nfs_cb_resop4 *resarray_val;
		} resarray;
	};
	typedef struct CB_COMPOUND4res CB_COMPOUND4res;

#define NFS4_PROGRAM 100003
#define NFS_V4 4

#if defined(__STDC__) || defined(__cplusplus)
#define NFSPROC4_NULL 0
	extern void *nfsproc4_null_4(void *, CLIENT *);
	extern void *nfsproc4_null_4_svc(void *, struct svc_req *);
#define NFSPROC4_COMPOUND 1
	extern COMPOUND4res *nfsproc4_compound_4(COMPOUND4args *, CLIENT *);
	extern COMPOUND4res *nfsproc4_compound_4_svc(COMPOUND4args *,
						     struct svc_req *);
	extern int nfs4_program_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);

#else				/* K&R C */
#define NFSPROC4_NULL 0
	extern void *nfsproc4_null_4();
	extern void *nfsproc4_null_4_svc();
#define NFSPROC4_COMPOUND 1
	extern COMPOUND4res *nfsproc4_compound_4();
	extern COMPOUND4res *nfsproc4_compound_4_svc();
	extern int nfs4_program_4_freeresult();
#endif				/* K&R C */

#define NFS4_CALLBACK 0x40000000
#define NFS_CB 1

#if defined(__STDC__) || defined(__cplusplus)
#define CB_NULL 0
	extern void *cb_null_1(void *, CLIENT *);
	extern void *cb_null_1_svc(void *, struct svc_req *);
#define CB_COMPOUND 1
	extern CB_COMPOUND4res *cb_compound_1(CB_COMPOUND4args *, CLIENT *);
	extern CB_COMPOUND4res *cb_compound_1_svc(CB_COMPOUND4args *,
						  struct svc_req *);
	extern int nfs4_callback_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);

#else				/* K&R C */
#define CB_NULL 0
	extern void *cb_null_1();
	extern void *cb_null_1_svc();
#define CB_COMPOUND 1
	extern CB_COMPOUND4res *cb_compound_1();
	extern CB_COMPOUND4res *cb_compound_1_svc();
	extern int nfs4_callback_1_freeresult();
#endif				/* K&R C */

/* the xdr functions */

#if defined(__STDC__) || defined(__cplusplus)

	static inline bool xdr_nfs_ftype4(XDR * xdrs, nfs_ftype4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_nfsstat4(XDR * xdrs, nfsstat4 *objp)

	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_attrlist4(XDR * xdrs, attrlist4 *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->attrlist4_val,
		     (u_int *) & objp->attrlist4_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_bitmap4(XDR * xdrs, struct bitmap4 *objp)
	{
		char *map = (char *)objp->map;

/* short circuit the free pass (done at the end) because we don't
 * allocate an array in the "conventional" sense here.  There is
 * nothing to free so bail out now.
 */
		if (xdrs->x_op == XDR_FREE)
			return true;
		if (!xdr_array
		    (xdrs, &map, (u_int *) & objp->bitmap4_len, XDR_ARRAY_MAXLEN,
		     sizeof(uint32_t), (xdrproc_t) xdr_uint32_t))
			return false;
		return true;
	}

	static inline bool xdr_changeid4(XDR * xdrs, changeid4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_clientid4(XDR * xdrs, clientid4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_count4(XDR * xdrs, count4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_length4(XDR * xdrs, length4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_mode4(XDR * xdrs, mode4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_nfs_cookie4(XDR * xdrs, nfs_cookie4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_nfs_fh4(XDR * xdrs, nfs_fh4 *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->nfs_fh4_val,
		     (u_int *) & objp->nfs_fh4_len, NFS4_FHSIZE))
			return false;
		return true;
	}

	static inline bool xdr_offset4(XDR * xdrs, offset4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_qop4(XDR * xdrs, qop4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_sec_oid4(XDR * xdrs, sec_oid4 *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->sec_oid4_val,
		     (u_int *) & objp->sec_oid4_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_sequenceid4(XDR * xdrs, sequenceid4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_seqid4(XDR * xdrs, seqid4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_sessionid4(XDR * xdrs, sessionid4 objp)
	{
		if (!xdr_opaque(xdrs, objp, NFS4_SESSIONID_SIZE))
			return false;
		return true;
	}

	static inline bool xdr_slotid4(XDR * xdrs, slotid4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_utf8string(XDR * xdrs, utf8string *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->utf8string_val,
		     (u_int *) & objp->utf8string_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_utf8str_cis(XDR * xdrs, utf8str_cis *objp)
	{
		if (!xdr_utf8string(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_utf8str_cs(XDR * xdrs, utf8str_cs *objp)
	{
		if (!xdr_utf8string(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_utf8str_mixed(XDR * xdrs, utf8str_mixed *objp)
	{
		if (!xdr_utf8string(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_component4(XDR * xdrs, component4 *objp)
	{
		if (!xdr_utf8str_cs(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_linktext4(XDR * xdrs, linktext4 *objp)
	{
		if (!xdr_utf8str_cs(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_pathname4(XDR * xdrs, pathname4 *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->pathname4_val,
		     (u_int *) & objp->pathname4_len, XDR_ARRAY_MAXLEN, sizeof(component4),
		     (xdrproc_t) xdr_component4))
			return false;
		return true;
	}

	static inline bool xdr_verifier4(XDR * xdrs, verifier4 objp)
	{
		if (!xdr_opaque(xdrs, objp, NFS4_VERIFIER_SIZE))
			return false;
		return true;
	}

	static inline bool xdr_nfstime4(XDR * xdrs, nfstime4 *objp)
	{
		if (!xdr_int64_t(xdrs, &objp->seconds))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->nseconds))
			return false;
		return true;
	}

	static inline bool xdr_time_how4(XDR * xdrs, time_how4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_settime4(XDR * xdrs, settime4 *objp)
	{
		if (!xdr_time_how4(xdrs, &objp->set_it))
			return false;
		switch (objp->set_it) {
		case SET_TO_CLIENT_TIME4:
			if (!xdr_nfstime4(xdrs, &objp->settime4_u.time))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_nfs_lease4(XDR * xdrs, nfs_lease4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fsid4(XDR * xdrs, fsid4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, &objp->major))
			return false;
		if (!inline_xdr_u_int64_t(xdrs, &objp->minor))
			return false;
		return true;
	}

	static inline bool xdr_change_policy4(XDR * xdrs, change_policy4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, &objp->cp_major))
			return false;
		if (!inline_xdr_u_int64_t(xdrs, &objp->cp_minor))
			return false;
		return true;
	}

	static inline bool xdr_fs_location4(XDR * xdrs, fs_location4 *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->server.server_val,
		     (u_int *) & objp->server.server_len, XDR_ARRAY_MAXLEN,
		     sizeof(utf8str_cis), (xdrproc_t) xdr_utf8str_cis))
			return false;
		if (!xdr_pathname4(xdrs, &objp->rootpath))
			return false;
		return true;
	}

	static inline bool xdr_fs_locations4(XDR * xdrs, fs_locations4 *objp)
	{
		if (!xdr_pathname4(xdrs, &objp->fs_root))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->locations.locations_val,
		     (u_int *) & objp->locations.locations_len, XDR_ARRAY_MAXLEN,
		     sizeof(fs_location4), (xdrproc_t) xdr_fs_location4))
			return false;
		return true;
	}

	static inline bool xdr_acetype4(XDR * xdrs, acetype4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_aceflag4(XDR * xdrs, aceflag4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_acemask4(XDR * xdrs, acemask4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_nfsace4(XDR * xdrs, nfsace4 *objp)
	{
		if (!xdr_acetype4(xdrs, &objp->type))
			return false;
		if (!xdr_aceflag4(xdrs, &objp->flag))
			return false;
		if (!xdr_acemask4(xdrs, &objp->access_mask))
			return false;
		if (!xdr_utf8str_mixed(xdrs, &objp->who))
			return false;
		return true;
	}

	static inline bool xdr_aclflag4(XDR * xdrs, aclflag4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_nfsacl41(XDR * xdrs, nfsacl41 *objp)
	{
		if (!xdr_aclflag4(xdrs, &objp->na41_flag))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->na41_aces.na41_aces_val,
		     (u_int *) & objp->na41_aces.na41_aces_len, XDR_ARRAY_MAXLEN,
		     sizeof(nfsace4), (xdrproc_t) xdr_nfsace4))
			return false;
		return true;
	}

	static inline bool xdr_mode_masked4(XDR * xdrs, mode_masked4 *objp)
	{
		if (!xdr_mode4(xdrs, &objp->mm_value_to_set))
			return false;
		if (!xdr_mode4(xdrs, &objp->mm_mask_bits))
			return false;
		return true;
	}

	static inline bool xdr_specdata4(XDR * xdrs, specdata4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->specdata1))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->specdata2))
			return false;
		return true;
	}

	static inline bool xdr_netaddr4(XDR * xdrs, netaddr4 *objp)
	{
		if (!inline_xdr_string(xdrs, &objp->r_netid, XDR_STRING_MAXLEN))
			return false;
		if (!inline_xdr_string(xdrs, &objp->r_addr, XDR_STRING_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_nfs_impl_id4(XDR * xdrs, nfs_impl_id4 *objp)
	{
		if (!xdr_utf8str_cis(xdrs, &objp->nii_domain))
			return false;
		if (!xdr_utf8str_cs(xdrs, &objp->nii_name))
			return false;
		if (!xdr_nfstime4(xdrs, &objp->nii_date))
			return false;
		return true;
	}

	static inline bool xdr_stateid4(XDR * xdrs, stateid4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->seqid))
			return false;
		if (!xdr_opaque(xdrs, objp->other, 12))
			return false;
		return true;
	}

	static inline bool xdr_layouttype4(XDR * xdrs, layouttype4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_layout_content4(XDR * xdrs,
					       layout_content4 *objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->loc_type))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->loc_body.loc_body_val,
		     (u_int *) & objp->loc_body.loc_body_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

/*
 * LAYOUT4_OSD2_OBJECTS loc_body description
 * is in a separate .x file
 */

/*
 * LAYOUT4_BLOCK_VOLUME loc_body description
 * is in a separate .x file
 */

	static inline bool xdr_layouthint4(XDR * xdrs, layouthint4 *objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->loh_type))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->loh_body.loh_body_val,
		     (u_int *) & objp->loh_body.loh_body_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_layoutiomode4(XDR * xdrs, layoutiomode4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_layout4(XDR * xdrs, layout4 *objp)
	{
		if (!xdr_offset4(xdrs, &objp->lo_offset))
			return false;
		if (!xdr_length4(xdrs, &objp->lo_length))
			return false;
		if (!xdr_layoutiomode4(xdrs, &objp->lo_iomode))
			return false;
		if (!xdr_layout_content4(xdrs, &objp->lo_content))
			return false;
		return true;
	}

	static inline bool xdr_deviceid4(XDR * xdrs, deviceid4 objp)
	{
		if (!xdr_opaque(xdrs, objp, NFS4_DEVICEID4_SIZE))
			return false;
		return true;
	}

	static inline bool xdr_device_addr4(XDR * xdrs, device_addr4 *objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->da_layout_type))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->da_addr_body.da_addr_body_val,
		     (u_int *) & objp->da_addr_body.da_addr_body_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_layoutupdate4(XDR * xdrs, layoutupdate4 *objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->lou_type))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->lou_body.lou_body_val,
		     (u_int *) & objp->lou_body.lou_body_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_layoutreturn_type4(XDR * xdrs,
						  layoutreturn_type4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	/* layouttype4 specific data */

	static inline bool xdr_layoutreturn_file4(XDR * xdrs,
						  layoutreturn_file4 *objp)
	{
		if (!xdr_offset4(xdrs, &objp->lrf_offset))
			return false;
		if (!xdr_length4(xdrs, &objp->lrf_length))
			return false;
		if (!xdr_stateid4(xdrs, &objp->lrf_stateid))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->lrf_body.lrf_body_val,
		     (u_int *) & objp->lrf_body.lrf_body_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_layoutreturn4(XDR * xdrs, layoutreturn4 *objp)
	{
		if (!xdr_layoutreturn_type4(xdrs, &objp->lr_returntype))
			return false;
		switch (objp->lr_returntype) {
		case LAYOUTRETURN4_FILE:
			if (!xdr_layoutreturn_file4
			    (xdrs, &objp->layoutreturn4_u.lr_layout))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_fs4_status_type(XDR * xdrs,
					       fs4_status_type *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_fs4_status(XDR * xdrs, fs4_status *objp)
	{
		if (!xdr_bool(xdrs, &objp->fss_absent))
			return false;
		if (!xdr_fs4_status_type(xdrs, &objp->fss_type))
			return false;
		if (!xdr_utf8str_cs(xdrs, &objp->fss_source))
			return false;
		if (!xdr_utf8str_cs(xdrs, &objp->fss_current))
			return false;
		if (!xdr_int32_t(xdrs, &objp->fss_age))
			return false;
		if (!xdr_nfstime4(xdrs, &objp->fss_version))
			return false;
		return true;
	}

	static inline bool xdr_threshold4_read_size(XDR * xdrs,
						    threshold4_read_size *
						    objp)
	{
		if (!xdr_length4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_threshold4_write_size(XDR * xdrs,
						     threshold4_write_size *
						     objp)
	{
		if (!xdr_length4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_threshold4_read_iosize(XDR * xdrs,
						      threshold4_read_iosize *
						      objp)
	{
		if (!xdr_length4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_threshold4_write_iosize(XDR * xdrs,
						       threshold4_write_iosize *
						       objp)
	{
		if (!xdr_length4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_threshold_item4(XDR * xdrs,
					       threshold_item4 *objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->thi_layout_type))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->thi_hintset))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->thi_hintlist.thi_hintlist_val,
		     (u_int *) & objp->thi_hintlist.thi_hintlist_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_mdsthreshold4(XDR * xdrs, mdsthreshold4 *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->mth_hints.mth_hints_val,
		     (u_int *) & objp->mth_hints.mth_hints_len, XDR_ARRAY_MAXLEN,
		     sizeof(threshold_item4), (xdrproc_t) xdr_threshold_item4))
			return false;
		return true;
	}

	static inline bool xdr_retention_get4(XDR * xdrs, retention_get4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, &objp->rg_duration))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->rg_begin_time.rg_begin_time_val,
		     (u_int *) & objp->rg_begin_time.rg_begin_time_len, 1,
		     sizeof(nfstime4), (xdrproc_t) xdr_nfstime4))
			return false;
		return true;
	}

	static inline bool xdr_retention_set4(XDR * xdrs, retention_set4 *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->rs_enable))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->rs_duration.rs_duration_val,
		     (u_int *) & objp->rs_duration.rs_duration_len, 1,
		     sizeof(uint64_t), (xdrproc_t) inline_xdr_u_int64_t))
			return false;
		return true;
	}

	static inline bool xdr_fs_charset_cap4(XDR * xdrs,
					       fs_charset_cap4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_supported_attrs(XDR * xdrs,
						      fattr4_supported_attrs *
						      objp)
	{
		if (!xdr_bitmap4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_type(XDR * xdrs, fattr4_type *objp)
	{
		if (!xdr_nfs_ftype4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_fh_expire_type(XDR * xdrs,
						     fattr4_fh_expire_type *
						     objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_change(XDR * xdrs, fattr4_change *objp)
	{
		if (!xdr_changeid4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_size(XDR * xdrs, fattr4_size *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_link_support(XDR * xdrs,
						   fattr4_link_support *objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_symlink_support(XDR * xdrs,
						      fattr4_symlink_support *
						      objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_named_attr(XDR * xdrs,
						 fattr4_named_attr *objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_fsid(XDR * xdrs, fattr4_fsid *objp)
	{
		if (!xdr_fsid4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_unique_handles(XDR * xdrs,
						     fattr4_unique_handles *
						     objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_lease_time(XDR * xdrs,
						 fattr4_lease_time *objp)
	{
		if (!xdr_nfs_lease4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_rdattr_error(XDR * xdrs,
						   fattr4_rdattr_error *objp)
	{
		if (!xdr_nfsstat4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_acl(XDR * xdrs, fattr4_acl *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->fattr4_acl_val,
		     (u_int *) & objp->fattr4_acl_len, XDR_ARRAY_MAXLEN, sizeof(nfsace4),
		     (xdrproc_t) xdr_nfsace4))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_aclsupport(XDR * xdrs,
						 fattr4_aclsupport *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_archive(XDR * xdrs, fattr4_archive *objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_cansettime(XDR * xdrs,
						 fattr4_cansettime *objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_case_insensitive(XDR * xdrs,
						       fattr4_case_insensitive *
						       objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_case_preserving(XDR * xdrs,
						      fattr4_case_preserving *
						      objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_chown_restricted(XDR * xdrs,
						       fattr4_chown_restricted *
						       objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_fileid(XDR * xdrs, fattr4_fileid *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_files_avail(XDR * xdrs,
						  fattr4_files_avail *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_filehandle(XDR * xdrs,
						 fattr4_filehandle *objp)
	{
		if (!xdr_nfs_fh4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_files_free(XDR * xdrs,
						 fattr4_files_free *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_files_total(XDR * xdrs,
						  fattr4_files_total *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_fs_locations(XDR * xdrs,
						   fattr4_fs_locations *objp)
	{
		if (!xdr_fs_locations4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_hidden(XDR * xdrs, fattr4_hidden *objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_homogeneous(XDR * xdrs,
						  fattr4_homogeneous *objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_maxfilesize(XDR * xdrs,
						  fattr4_maxfilesize *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_maxlink(XDR * xdrs, fattr4_maxlink *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_maxname(XDR * xdrs, fattr4_maxname *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_maxread(XDR * xdrs, fattr4_maxread *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_maxwrite(XDR * xdrs,
					       fattr4_maxwrite *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_mimetype(XDR * xdrs,
					       fattr4_mimetype *objp)
	{
		if (!xdr_utf8str_cs(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_mode(XDR * xdrs, fattr4_mode *objp)
	{
		if (!xdr_mode4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_mode_set_masked(XDR * xdrs,
						      fattr4_mode_set_masked *
						      objp)
	{
		if (!xdr_mode_masked4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_mounted_on_fileid(XDR * xdrs,
							fattr4_mounted_on_fileid
							* objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_no_trunc(XDR * xdrs,
					       fattr4_no_trunc *objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_numlinks(XDR * xdrs,
					       fattr4_numlinks *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_owner(XDR * xdrs, fattr4_owner *objp)
	{
		if (!xdr_utf8str_mixed(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_owner_group(XDR * xdrs,
						  fattr4_owner_group *objp)
	{
		if (!xdr_utf8str_mixed(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_quota_avail_hard(XDR * xdrs,
						       fattr4_quota_avail_hard *
						       objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_quota_avail_soft(XDR * xdrs,
						       fattr4_quota_avail_soft *
						       objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_quota_used(XDR * xdrs,
						 fattr4_quota_used *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_rawdev(XDR * xdrs, fattr4_rawdev *objp)
	{
		if (!xdr_specdata4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_space_avail(XDR * xdrs,
						  fattr4_space_avail *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_space_free(XDR * xdrs,
						 fattr4_space_free *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_space_total(XDR * xdrs,
						  fattr4_space_total *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_space_used(XDR * xdrs,
						 fattr4_space_used *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_system(XDR * xdrs, fattr4_system *objp)
	{
		if (!inline_xdr_bool(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_time_access(XDR * xdrs,
						  fattr4_time_access *objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_time_access_set(XDR * xdrs,
						      fattr4_time_access_set *
						      objp)
	{
		if (!xdr_settime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_time_backup(XDR * xdrs,
						  fattr4_time_backup *objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_time_create(XDR * xdrs,
						  fattr4_time_create *objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_time_delta(XDR * xdrs,
						 fattr4_time_delta *objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_time_metadata(XDR * xdrs,
						    fattr4_time_metadata *
						    objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_time_modify(XDR * xdrs,
						  fattr4_time_modify *objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_time_modify_set(XDR * xdrs,
						      fattr4_time_modify_set *
						      objp)
	{
		if (!xdr_settime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_suppattr_exclcreat(
					XDR * xdrs,
					fattr4_suppattr_exclcreat *objp)
	{
		if (!xdr_bitmap4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_dir_notif_delay(XDR * xdrs,
						      fattr4_dir_notif_delay *
						      objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_dirent_notif_delay(
					XDR * xdrs,
					fattr4_dirent_notif_delay *objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_fs_layout_types(XDR * xdrs,
						      fattr4_fs_layout_types *
						      objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->fattr4_fs_layout_types_val,
		     (u_int *) & objp->fattr4_fs_layout_types_len, XDR_ARRAY_MAXLEN,
		     sizeof(layouttype4), (xdrproc_t) xdr_layouttype4))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_fs_status(XDR * xdrs,
						fattr4_fs_status *objp)
	{
		if (!xdr_fs4_status(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_fs_charset_cap(XDR * xdrs,
						     fattr4_fs_charset_cap *
						     objp)
	{
		if (!xdr_fs_charset_cap4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_layout_alignment(XDR * xdrs,
						       fattr4_layout_alignment *
						       objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_layout_blksize(XDR * xdrs,
						     fattr4_layout_blksize *
						     objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_layout_hint(XDR * xdrs,
						  fattr4_layout_hint *objp)
	{
		if (!xdr_layouthint4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_layout_types(XDR * xdrs,
						   fattr4_layout_types *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->fattr4_layout_types_val,
		     (u_int *) & objp->fattr4_layout_types_len, XDR_ARRAY_MAXLEN,
		     sizeof(layouttype4), (xdrproc_t) xdr_layouttype4))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_mdsthreshold(XDR * xdrs,
						   fattr4_mdsthreshold *objp)
	{
		if (!xdr_mdsthreshold4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_retention_get(XDR * xdrs,
						    fattr4_retention_get *
						    objp)
	{
		if (!xdr_retention_get4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_retention_set(XDR * xdrs,
						    fattr4_retention_set *
						    objp)
	{
		if (!xdr_retention_set4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_retentevt_get(XDR * xdrs,
						    fattr4_retentevt_get *
						    objp)
	{
		if (!xdr_retention_get4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_retentevt_set(XDR * xdrs,
						    fattr4_retentevt_set *
						    objp)
	{
		if (!xdr_retention_set4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_retention_hold(XDR * xdrs,
						     fattr4_retention_hold *
						     objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_dacl(XDR * xdrs, fattr4_dacl *objp)
	{
		if (!xdr_nfsacl41(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_sacl(XDR * xdrs, fattr4_sacl *objp)
	{
		if (!xdr_nfsacl41(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_change_policy(XDR * xdrs,
						    fattr4_change_policy *
						    objp)
	{
		if (!xdr_change_policy4(xdrs, objp))
			return false;
		return true;
	}

/*
 * REQUIRED Attributes
 */
/* new to NFSV4.1 */
/*
 * RECOMMENDED Attributes
 */

/* new to NFSV4.1 */

	static inline bool xdr_fattr4(XDR * xdrs, fattr4 *objp)
	{
		if (!xdr_bitmap4(xdrs, &objp->attrmask))
			return false;
		if (!xdr_attrlist4(xdrs, &objp->attr_vals))
			return false;
		return true;
	}

	static inline bool xdr_change_info4(XDR * xdrs, change_info4 *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->atomic))
			return false;
		if (!xdr_changeid4(xdrs, &objp->before))
			return false;
		if (!xdr_changeid4(xdrs, &objp->after))
			return false;
		return true;
	}

	static inline bool xdr_clientaddr4(XDR * xdrs, clientaddr4 *objp)
	{
		if (!xdr_netaddr4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_cb_client4(XDR * xdrs, cb_client4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->cb_program))
			return false;
		if (!xdr_netaddr4(xdrs, &objp->cb_location))
			return false;
		return true;
	}

	static inline bool xdr_nfs_client_id4(XDR * xdrs, nfs_client_id4 *objp)
	{
		if (!xdr_verifier4(xdrs, objp->verifier))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->id.id_val,
		     (u_int *) & objp->id.id_len, NFS4_OPAQUE_LIMIT))
			return false;
		return true;
	}

	static inline bool xdr_client_owner4(XDR * xdrs, client_owner4 *objp)
	{
		if (!xdr_verifier4(xdrs, objp->co_verifier))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->co_ownerid.co_ownerid_val,
		     (u_int *) & objp->co_ownerid.co_ownerid_len,
		     NFS4_OPAQUE_LIMIT))
			return false;
		return true;
	}

	static inline bool xdr_server_owner4(XDR * xdrs, server_owner4 *objp)
	{
		if (!inline_xdr_u_int64_t(xdrs, &objp->so_minor_id))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->so_major_id.so_major_id_val,
		     (u_int *) & objp->so_major_id.so_major_id_len,
		     NFS4_OPAQUE_LIMIT))
			return false;
		return true;
	}

	static inline bool xdr_state_owner4(XDR * xdrs, state_owner4 *objp)
	{
		if (!xdr_clientid4(xdrs, &objp->clientid))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->owner.owner_val,
		     (u_int *) & objp->owner.owner_len, NFS4_OPAQUE_LIMIT))
			return false;
		return true;
	}

	static inline bool xdr_open_owner4(XDR * xdrs, open_owner4 *objp)
	{
		if (!xdr_state_owner4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_lock_owner4(XDR * xdrs, lock_owner4 *objp)
	{
		if (!xdr_state_owner4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_nfs_lock_type4(XDR * xdrs, nfs_lock_type4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

/* Input for computing subkeys */

	static inline bool xdr_ssv_subkey4(XDR * xdrs, ssv_subkey4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

/* Input for computing smt_hmac */

	static inline bool xdr_ssv_mic_plain_tkn4(XDR * xdrs,
						  ssv_mic_plain_tkn4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->smpt_ssv_seq))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->smpt_orig_plain.smpt_orig_plain_val,
		     (u_int *) & objp->smpt_orig_plain.smpt_orig_plain_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

/* SSV GSS PerMsgToken token */

	static inline bool xdr_ssv_mic_tkn4(XDR * xdrs, ssv_mic_tkn4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->smt_ssv_seq))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->smt_hmac.smt_hmac_val,
		     (u_int *) & objp->smt_hmac.smt_hmac_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

/* Input for computing ssct_encr_data and ssct_hmac */

	static inline bool xdr_ssv_seal_plain_tkn4(XDR * xdrs,
						   ssv_seal_plain_tkn4 *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->sspt_confounder.sspt_confounder_val,
		     (u_int *) & objp->sspt_confounder.sspt_confounder_len, XDR_BYTES_MAXLEN))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->sspt_ssv_seq))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->sspt_orig_plain.sspt_orig_plain_val,
		     (u_int *) & objp->sspt_orig_plain.sspt_orig_plain_len, XDR_BYTES_MAXLEN))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->sspt_pad.sspt_pad_val,
		     (u_int *) & objp->sspt_pad.sspt_pad_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

/* SSV GSS SealedMessage token */

	static inline bool xdr_ssv_seal_cipher_tkn4(XDR * xdrs,
						    ssv_seal_cipher_tkn4 *
						    objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->ssct_ssv_seq))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->ssct_iv.ssct_iv_val,
		     (u_int *) & objp->ssct_iv.ssct_iv_len, XDR_BYTES_MAXLEN))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->ssct_encr_data.ssct_encr_data_val,
		     (u_int *) & objp->ssct_encr_data.ssct_encr_data_len, XDR_BYTES_MAXLEN))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->ssct_hmac.ssct_hmac_val,
		     (u_int *) & objp->ssct_hmac.ssct_hmac_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_fs_locations_server4(XDR * xdrs,
						    fs_locations_server4 *
						    objp)
	{
		if (!xdr_int32_t(xdrs, &objp->fls_currency))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->fls_info.fls_info_val,
		     (u_int *) & objp->fls_info.fls_info_len, XDR_BYTES_MAXLEN))
			return false;
		if (!xdr_utf8str_cis(xdrs, &objp->fls_server))
			return false;
		return true;
	}

	static inline bool xdr_fs_locations_item4(XDR * xdrs,
						  fs_locations_item4 *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->fli_entries.fli_entries_val,
		     (u_int *) & objp->fli_entries.fli_entries_len, XDR_ARRAY_MAXLEN,
		     sizeof(fs_locations_server4),
		     (xdrproc_t) xdr_fs_locations_server4))
			return false;
		if (!xdr_pathname4(xdrs, &objp->fli_rootpath))
			return false;
		return true;
	}

	static inline bool xdr_fs_locations_info4(XDR * xdrs,
						  fs_locations_info4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->fli_flags))
			return false;
		if (!xdr_int32_t(xdrs, &objp->fli_valid_for))
			return false;
		if (!xdr_pathname4(xdrs, &objp->fli_fs_root))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->fli_items.fli_items_val,
		     (u_int *) & objp->fli_items.fli_items_len, XDR_ARRAY_MAXLEN,
		     sizeof(fs_locations_item4),
		     (xdrproc_t) xdr_fs_locations_item4))
			return false;
		return true;
	}

	static inline bool xdr_fattr4_fs_locations_info(XDR * xdrs,
							fattr4_fs_locations_info
							* objp)
	{
		if (!xdr_fs_locations_info4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_nfl_util4(XDR * xdrs, nfl_util4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_filelayout_hint_care4(XDR * xdrs,
						     filelayout_hint_care4 *
						     objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

/* Encoded in the loh_body field of data type layouthint4: */

	static inline bool xdr_nfsv4_1_file_layouthint4(XDR * xdrs,
							nfsv4_1_file_layouthint4
							* objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->nflh_care))
			return false;
		if (!xdr_nfl_util4(xdrs, &objp->nflh_util))
			return false;
		if (!xdr_count4(xdrs, &objp->nflh_stripe_count))
			return false;
		return true;
	}

	static inline bool xdr_multipath_list4(XDR * xdrs,
					       multipath_list4 *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->multipath_list4_val,
		     (u_int *) & objp->multipath_list4_len, XDR_ARRAY_MAXLEN,
		     sizeof(netaddr4), (xdrproc_t) xdr_netaddr4))
			return false;
		return true;
	}

/*
 * Encoded in the da_addr_body field of
 * data type device_addr4:
 */

	static inline bool xdr_nfsv4_1_file_layout_ds_addr4(
					XDR * xdrs,
					nfsv4_1_file_layout_ds_addr4 *objp)
	{
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->nflda_stripe_indices.
		     nflda_stripe_indices_val,
		     (u_int *) & objp->nflda_stripe_indices.
		     nflda_stripe_indices_len, XDR_ARRAY_MAXLEN, sizeof(uint32_t),
		     (xdrproc_t) xdr_uint32_t))
			return false;
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->nflda_multipath_ds_list.
		     nflda_multipath_ds_list_val,
		     (u_int *) & objp->nflda_multipath_ds_list.
		     nflda_multipath_ds_list_len, XDR_ARRAY_MAXLEN, sizeof(multipath_list4),
		     (xdrproc_t) xdr_multipath_list4))
			return false;
		return true;
	}

/*
 * Encoded in the loc_body field of
 * data type layout_content4:
 */

	static inline bool xdr_nfsv4_1_file_layout4(XDR * xdrs,
						    nfsv4_1_file_layout4 *
						    objp)
	{
		if (!xdr_deviceid4(xdrs, objp->nfl_deviceid))
			return false;
		if (!xdr_nfl_util4(xdrs, &objp->nfl_util))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->nfl_first_stripe_index))
			return false;
		if (!xdr_offset4(xdrs, &objp->nfl_pattern_offset))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->nfl_fh_list.nfl_fh_list_val,
		     (u_int *) & objp->nfl_fh_list.nfl_fh_list_len, XDR_ARRAY_MAXLEN,
		     sizeof(nfs_fh4), (xdrproc_t) xdr_nfs_fh4))
			return false;
		return true;
	}

/*
 * Encoded in the lou_body field of data type layoutupdate4:
 *      Nothing. lou_body is a zero length array of bytes.
 */

/*
 * Encoded in the lrf_body field of
 * data type layoutreturn_file4:
 *      Nothing. lrf_body is a zero length array of bytes.
 */

	static inline bool xdr_ACCESS4args(XDR * xdrs, ACCESS4args *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->access))
			return false;
		return true;
	}

	static inline bool xdr_ACCESS4resok(XDR * xdrs, ACCESS4resok *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->supported))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->access))
			return false;
		return true;
	}

	static inline bool xdr_ACCESS4res(XDR * xdrs, ACCESS4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_ACCESS4resok(xdrs, &objp->ACCESS4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_CLOSE4args(XDR * xdrs, CLOSE4args *objp)
	{
		if (!xdr_seqid4(xdrs, &objp->seqid))
			return false;
		if (!xdr_stateid4(xdrs, &objp->open_stateid))
			return false;
		return true;
	}

	static inline bool xdr_CLOSE4res(XDR * xdrs, CLOSE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_stateid4
			    (xdrs, &objp->CLOSE4res_u.open_stateid))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_COMMIT4args(XDR * xdrs, COMMIT4args *objp)
	{
		if (!xdr_offset4(xdrs, &objp->offset))
			return false;
		if (!xdr_count4(xdrs, &objp->count))
			return false;
		return true;
	}

	static inline bool xdr_COMMIT4resok(XDR * xdrs, COMMIT4resok *objp)
	{
		if (!xdr_verifier4(xdrs, objp->writeverf))
			return false;
		return true;
	}

	static inline bool xdr_COMMIT4res(XDR * xdrs, COMMIT4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_COMMIT4resok(xdrs, &objp->COMMIT4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_createtype4(XDR * xdrs, createtype4 *objp)
	{
		if (!xdr_nfs_ftype4(xdrs, &objp->type))
			return false;
		switch (objp->type) {
		case NF4LNK:
			if (!xdr_linktext4(xdrs, &objp->createtype4_u.linkdata))
				return false;
			break;
		case NF4BLK:
		case NF4CHR:
			if (!xdr_specdata4(xdrs, &objp->createtype4_u.devdata))
				return false;
			break;
		case NF4SOCK:
		case NF4FIFO:
		case NF4DIR:
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_CREATE4args(XDR * xdrs, CREATE4args *objp)
	{
		if (!xdr_createtype4(xdrs, &objp->objtype))
			return false;
		if (!xdr_component4(xdrs, &objp->objname))
			return false;
		if (!xdr_fattr4(xdrs, &objp->createattrs))
			return false;
		return true;
	}

	static inline bool xdr_CREATE4resok(XDR * xdrs, CREATE4resok *objp)
	{
		if (!xdr_change_info4(xdrs, &objp->cinfo))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->attrset))
			return false;
		return true;
	}

	static inline bool xdr_CREATE4res(XDR * xdrs, CREATE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_CREATE4resok(xdrs, &objp->CREATE4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_DELEGPURGE4args(XDR * xdrs,
					       DELEGPURGE4args *objp)
	{
		if (!xdr_clientid4(xdrs, &objp->clientid))
			return false;
		return true;
	}

	static inline bool xdr_DELEGPURGE4res(XDR * xdrs, DELEGPURGE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_DELEGRETURN4args(XDR * xdrs,
						DELEGRETURN4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->deleg_stateid))
			return false;
		return true;
	}

	static inline bool xdr_DELEGRETURN4res(XDR * xdrs,
					       DELEGRETURN4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_GETATTR4args(XDR * xdrs, GETATTR4args *objp)
	{
		if (!xdr_bitmap4(xdrs, &objp->attr_request))
			return false;
		return true;
	}

	static inline bool xdr_GETATTR4resok(XDR * xdrs, GETATTR4resok *objp)
	{
		if (!xdr_fattr4(xdrs, &objp->obj_attributes))
			return false;
		return true;
	}

	static inline bool xdr_GETATTR4res(XDR * xdrs, GETATTR4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_GETATTR4resok
			    (xdrs, &objp->GETATTR4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_GETFH4resok(XDR * xdrs, GETFH4resok *objp)
	{
		if (!xdr_nfs_fh4(xdrs, &objp->object))
			return false;
		return true;
	}

	static inline bool xdr_GETFH4res(XDR * xdrs, GETFH4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_GETFH4resok(xdrs, &objp->GETFH4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_LINK4args(XDR * xdrs, LINK4args *objp)
	{
		if (!xdr_component4(xdrs, &objp->newname))
			return false;
		return true;
	}

	static inline bool xdr_LINK4resok(XDR * xdrs, LINK4resok *objp)
	{
		if (!xdr_change_info4(xdrs, &objp->cinfo))
			return false;
		return true;
	}

	static inline bool xdr_LINK4res(XDR * xdrs, LINK4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_LINK4resok(xdrs, &objp->LINK4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_open_to_lock_owner4(XDR * xdrs,
						   open_to_lock_owner4 *objp)
	{
		if (!xdr_seqid4(xdrs, &objp->open_seqid))
			return false;
		if (!xdr_stateid4(xdrs, &objp->open_stateid))
			return false;
		if (!xdr_seqid4(xdrs, &objp->lock_seqid))
			return false;
		if (!xdr_lock_owner4(xdrs, &objp->lock_owner))
			return false;
		return true;
	}

	static inline bool xdr_exist_lock_owner4(XDR * xdrs,
						 exist_lock_owner4 *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->lock_stateid))
			return false;
		if (!xdr_seqid4(xdrs, &objp->lock_seqid))
			return false;
		return true;
	}

	static inline bool xdr_locker4(XDR * xdrs, locker4 *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->new_lock_owner))
			return false;
		switch (objp->new_lock_owner) {
		case true:
			if (!xdr_open_to_lock_owner4
			    (xdrs, &objp->locker4_u.open_owner))
				return false;
			break;
		case false:
			if (!xdr_exist_lock_owner4
			    (xdrs, &objp->locker4_u.lock_owner))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_LOCK4args(XDR * xdrs, LOCK4args *objp)
	{
		if (!xdr_nfs_lock_type4(xdrs, &objp->locktype))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->reclaim))
			return false;
		if (!xdr_offset4(xdrs, &objp->offset))
			return false;
		if (!xdr_length4(xdrs, &objp->length))
			return false;
		if (!xdr_locker4(xdrs, &objp->locker))
			return false;
		return true;
	}

	static inline bool xdr_LOCK4denied(XDR * xdrs, LOCK4denied *objp)
	{
		if (!xdr_offset4(xdrs, &objp->offset))
			return false;
		if (!xdr_length4(xdrs, &objp->length))
			return false;
		if (!xdr_nfs_lock_type4(xdrs, &objp->locktype))
			return false;
		if (!xdr_lock_owner4(xdrs, &objp->owner))
			return false;
		return true;
	}

	static inline bool xdr_LOCK4resok(XDR * xdrs, LOCK4resok *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->lock_stateid))
			return false;
		return true;
	}

	static inline bool xdr_LOCK4res(XDR * xdrs, LOCK4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_LOCK4resok(xdrs, &objp->LOCK4res_u.resok4))
				return false;
			break;
		case NFS4ERR_DENIED:
			if (!xdr_LOCK4denied(xdrs, &objp->LOCK4res_u.denied))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_LOCKT4args(XDR * xdrs, LOCKT4args *objp)
	{
		if (!xdr_nfs_lock_type4(xdrs, &objp->locktype))
			return false;
		if (!xdr_offset4(xdrs, &objp->offset))
			return false;
		if (!xdr_length4(xdrs, &objp->length))
			return false;
		if (!xdr_lock_owner4(xdrs, &objp->owner))
			return false;
		return true;
	}

	static inline bool xdr_LOCKT4res(XDR * xdrs, LOCKT4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4ERR_DENIED:
			if (!xdr_LOCK4denied(xdrs, &objp->LOCKT4res_u.denied))
				return false;
			break;
		case NFS4_OK:
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_LOCKU4args(XDR * xdrs, LOCKU4args *objp)
	{
		if (!xdr_nfs_lock_type4(xdrs, &objp->locktype))
			return false;
		if (!xdr_seqid4(xdrs, &objp->seqid))
			return false;
		if (!xdr_stateid4(xdrs, &objp->lock_stateid))
			return false;
		if (!xdr_offset4(xdrs, &objp->offset))
			return false;
		if (!xdr_length4(xdrs, &objp->length))
			return false;
		return true;
	}

	static inline bool xdr_LOCKU4res(XDR * xdrs, LOCKU4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_stateid4
			    (xdrs, &objp->LOCKU4res_u.lock_stateid))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_LOOKUP4args(XDR * xdrs, LOOKUP4args *objp)
	{
		if (!xdr_component4(xdrs, &objp->objname))
			return false;
		return true;
	}

	static inline bool xdr_LOOKUP4res(XDR * xdrs, LOOKUP4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_LOOKUPP4res(XDR * xdrs, LOOKUPP4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_NVERIFY4args(XDR * xdrs, NVERIFY4args *objp)
	{
		if (!xdr_fattr4(xdrs, &objp->obj_attributes))
			return false;
		return true;
	}

	static inline bool xdr_NVERIFY4res(XDR * xdrs, NVERIFY4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_createmode4(XDR * xdrs, createmode4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_creatverfattr(XDR * xdrs, creatverfattr *objp)
	{
		if (!xdr_verifier4(xdrs, objp->cva_verf))
			return false;
		if (!xdr_fattr4(xdrs, &objp->cva_attrs))
			return false;
		return true;
	}

	static inline bool xdr_createhow4(XDR * xdrs, createhow4 *objp)
	{
		if (!xdr_createmode4(xdrs, &objp->mode))
			return false;
		switch (objp->mode) {
		case UNCHECKED4:
		case GUARDED4:
			if (!xdr_fattr4(xdrs, &objp->createhow4_u.createattrs))
				return false;
			break;
		case EXCLUSIVE4:
			if (!xdr_verifier4(xdrs, objp->createhow4_u.createverf))
				return false;
			break;
		case EXCLUSIVE4_1:
			if (!xdr_creatverfattr
			    (xdrs, &objp->createhow4_u.ch_createboth))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_opentype4(XDR * xdrs, opentype4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_openflag4(XDR * xdrs, openflag4 *objp)
	{
		if (!xdr_opentype4(xdrs, &objp->opentype))
			return false;
		switch (objp->opentype) {
		case OPEN4_CREATE:
			if (!xdr_createhow4(xdrs, &objp->openflag4_u.how))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_limit_by4(XDR * xdrs, limit_by4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_nfs_modified_limit4(XDR * xdrs,
						   nfs_modified_limit4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->num_blocks))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->bytes_per_block))
			return false;
		return true;
	}

	static inline bool xdr_nfs_space_limit4(XDR * xdrs,
						nfs_space_limit4 *objp)
	{
		if (!xdr_limit_by4(xdrs, &objp->limitby))
			return false;
		switch (objp->limitby) {
		case NFS_LIMIT_SIZE:
			if (!inline_xdr_u_int64_t
			    (xdrs, &objp->nfs_space_limit4_u.filesize))
				return false;
			break;
		case NFS_LIMIT_BLOCKS:
			if (!xdr_nfs_modified_limit4
			    (xdrs, &objp->nfs_space_limit4_u.mod_blocks))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_open_delegation_type4(XDR * xdrs,
						     open_delegation_type4 *
						     objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_open_claim_type4(XDR * xdrs,
						open_claim_type4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_open_claim_delegate_cur4(XDR * xdrs,
							open_claim_delegate_cur4
							* objp)
	{
		if (!xdr_stateid4(xdrs, &objp->delegate_stateid))
			return false;
		if (!xdr_component4(xdrs, &objp->file))
			return false;
		return true;
	}

	static inline bool xdr_open_claim4(XDR * xdrs, open_claim4 *objp)
	{
		if (!xdr_open_claim_type4(xdrs, &objp->claim))
			return false;
		switch (objp->claim) {
		case CLAIM_NULL:
			if (!xdr_component4(xdrs, &objp->open_claim4_u.file))
				return false;
			break;
		case CLAIM_PREVIOUS:
			if (!xdr_open_delegation_type4
			    (xdrs, &objp->open_claim4_u.delegate_type))
				return false;
			break;
		case CLAIM_DELEGATE_CUR:
			if (!xdr_open_claim_delegate_cur4
			    (xdrs, &objp->open_claim4_u.delegate_cur_info))
				return false;
			break;
		case CLAIM_DELEGATE_PREV:
			if (!xdr_component4
			    (xdrs, &objp->open_claim4_u.file_delegate_prev))
				return false;
			break;
		case CLAIM_FH:
			break;
		case CLAIM_DELEG_PREV_FH:
			break;
		case CLAIM_DELEG_CUR_FH:
			if (!xdr_stateid4
			    (xdrs, &objp->open_claim4_u.oc_delegate_stateid))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_OPEN4args(XDR * xdrs, OPEN4args *objp)
	{
		if (!xdr_seqid4(xdrs, &objp->seqid))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->share_access))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->share_deny))
			return false;
		if (!xdr_open_owner4(xdrs, &objp->owner))
			return false;
		if (!xdr_openflag4(xdrs, &objp->openhow))
			return false;
		if (!xdr_open_claim4(xdrs, &objp->claim))
			return false;
		return true;
	}

	static inline bool xdr_open_read_delegation4(XDR * xdrs,
						     open_read_delegation4 *
						     objp)
	{
		if (!xdr_stateid4(xdrs, &objp->stateid))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->recall))
			return false;
		if (!xdr_nfsace4(xdrs, &objp->permissions))
			return false;
		return true;
	}

	static inline bool xdr_open_write_delegation4(XDR * xdrs,
						      open_write_delegation4 *
						      objp)
	{
		if (!xdr_stateid4(xdrs, &objp->stateid))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->recall))
			return false;
		if (!xdr_nfs_space_limit4(xdrs, &objp->space_limit))
			return false;
		if (!xdr_nfsace4(xdrs, &objp->permissions))
			return false;
		return true;
	}

	static inline bool xdr_why_no_delegation4(XDR * xdrs,
						  why_no_delegation4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_open_none_delegation4(XDR * xdrs,
						     open_none_delegation4 *
						     objp)
	{
		if (!xdr_why_no_delegation4(xdrs, &objp->ond_why))
			return false;
		switch (objp->ond_why) {
		case WND4_CONTENTION:
			if (!inline_xdr_bool
			    (xdrs,
			     &objp->open_none_delegation4_u.
			     ond_server_will_push_deleg))
				return false;
			break;
		case WND4_RESOURCE:
			if (!inline_xdr_bool
			    (xdrs,
			     &objp->open_none_delegation4_u.
			     ond_server_will_signal_avail))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_open_delegation4(XDR * xdrs,
						open_delegation4 *objp)
	{
		if (!xdr_open_delegation_type4(xdrs, &objp->delegation_type))
			return false;
		switch (objp->delegation_type) {
		case OPEN_DELEGATE_NONE:
			break;
		case OPEN_DELEGATE_READ:
			if (!xdr_open_read_delegation4
			    (xdrs, &objp->open_delegation4_u.read))
				return false;
			break;
		case OPEN_DELEGATE_WRITE:
			if (!xdr_open_write_delegation4
			    (xdrs, &objp->open_delegation4_u.write))
				return false;
			break;
		case OPEN_DELEGATE_NONE_EXT:
			if (!xdr_open_none_delegation4
			    (xdrs, &objp->open_delegation4_u.od_whynone))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_OPEN4resok(XDR * xdrs, OPEN4resok *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->stateid))
			return false;
		if (!xdr_change_info4(xdrs, &objp->cinfo))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->rflags))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->attrset))
			return false;
		if (!xdr_open_delegation4(xdrs, &objp->delegation))
			return false;
		return true;
	}

	static inline bool xdr_OPEN4res(XDR * xdrs, OPEN4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_OPEN4resok(xdrs, &objp->OPEN4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_OPENATTR4args(XDR * xdrs, OPENATTR4args *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->createdir))
			return false;
		return true;
	}

	static inline bool xdr_OPENATTR4res(XDR * xdrs, OPENATTR4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_OPEN_CONFIRM4args(XDR * xdrs,
						 OPEN_CONFIRM4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->open_stateid))
			return false;
		if (!xdr_seqid4(xdrs, &objp->seqid))
			return false;
		return true;
	}

	static inline bool xdr_OPEN_CONFIRM4resok(XDR * xdrs,
						  OPEN_CONFIRM4resok *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->open_stateid))
			return false;
		return true;
	}

	static inline bool xdr_OPEN_CONFIRM4res(XDR * xdrs,
						OPEN_CONFIRM4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_OPEN_CONFIRM4resok
			    (xdrs, &objp->OPEN_CONFIRM4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_OPEN_DOWNGRADE4args(XDR * xdrs,
						   OPEN_DOWNGRADE4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->open_stateid))
			return false;
		if (!xdr_seqid4(xdrs, &objp->seqid))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->share_access))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->share_deny))
			return false;
		return true;
	}

	static inline bool xdr_OPEN_DOWNGRADE4resok(XDR * xdrs,
						    OPEN_DOWNGRADE4resok *
						    objp)
	{
		if (!xdr_stateid4(xdrs, &objp->open_stateid))
			return false;
		return true;
	}

	static inline bool xdr_OPEN_DOWNGRADE4res(XDR * xdrs,
						  OPEN_DOWNGRADE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_OPEN_DOWNGRADE4resok
			    (xdrs, &objp->OPEN_DOWNGRADE4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_PUTFH4args(XDR * xdrs, PUTFH4args *objp)
	{
		if (!xdr_nfs_fh4(xdrs, &objp->object))
			return false;
		return true;
	}

	static inline bool xdr_PUTFH4res(XDR * xdrs, PUTFH4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_PUTPUBFH4res(XDR * xdrs, PUTPUBFH4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_PUTROOTFH4res(XDR * xdrs, PUTROOTFH4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_READ4args(XDR * xdrs, READ4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->stateid))
			return false;
		if (!xdr_offset4(xdrs, &objp->offset))
			return false;
		if (!xdr_count4(xdrs, &objp->count))
			return false;
		return true;
	}

	static inline bool xdr_READ4resok(XDR * xdrs, READ4resok *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->eof))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->data.data_val,
		     (u_int *) & objp->data.data_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_READ4res(XDR * xdrs, READ4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_READ4resok(xdrs, &objp->READ4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_READDIR4args(XDR * xdrs, READDIR4args *objp)
	{
		if (!xdr_nfs_cookie4(xdrs, &objp->cookie))
			return false;
		if (!xdr_verifier4(xdrs, objp->cookieverf))
			return false;
		if (!xdr_count4(xdrs, &objp->dircount))
			return false;
		if (!xdr_count4(xdrs, &objp->maxcount))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->attr_request))
			return false;
		return true;
	}

	static inline bool xdr_entry4(XDR * xdrs, entry4 *objp)
	{
		if (!xdr_nfs_cookie4(xdrs, &objp->cookie))
			return false;
		if (!xdr_component4(xdrs, &objp->name))
			return false;
		if (!xdr_fattr4(xdrs, &objp->attrs))
			return false;
		if (!xdr_pointer
		    (xdrs, (char **)&objp->nextentry, sizeof(entry4),
		     (xdrproc_t) xdr_entry4))
			return false;
		return true;
	}

	static inline bool xdr_dirlist4(XDR * xdrs, dirlist4 *objp)
	{
		if (!xdr_pointer
		    (xdrs, (char **)&objp->entries, sizeof(entry4),
		     (xdrproc_t) xdr_entry4))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->eof))
			return false;
		return true;
	}

	static inline bool xdr_READDIR4resok(XDR * xdrs, READDIR4resok *objp)
	{
		if (!xdr_verifier4(xdrs, objp->cookieverf))
			return false;
		if (!xdr_dirlist4(xdrs, &objp->reply))
			return false;
		return true;
	}

	static inline bool xdr_READDIR4res(XDR * xdrs, READDIR4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_READDIR4resok
			    (xdrs, &objp->READDIR4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_READLINK4resok(XDR * xdrs, READLINK4resok *objp)
	{
		if (!xdr_linktext4(xdrs, &objp->link))
			return false;
		return true;
	}

	static inline bool xdr_READLINK4res(XDR * xdrs, READLINK4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_READLINK4resok
			    (xdrs, &objp->READLINK4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_REMOVE4args(XDR * xdrs, REMOVE4args *objp)
	{
		if (!xdr_component4(xdrs, &objp->target))
			return false;
		return true;
	}

	static inline bool xdr_REMOVE4resok(XDR * xdrs, REMOVE4resok *objp)
	{
		if (!xdr_change_info4(xdrs, &objp->cinfo))
			return false;
		return true;
	}

	static inline bool xdr_REMOVE4res(XDR * xdrs, REMOVE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_REMOVE4resok(xdrs, &objp->REMOVE4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_RENAME4args(XDR * xdrs, RENAME4args *objp)
	{
		if (!xdr_component4(xdrs, &objp->oldname))
			return false;
		if (!xdr_component4(xdrs, &objp->newname))
			return false;
		return true;
	}

	static inline bool xdr_RENAME4resok(XDR * xdrs, RENAME4resok *objp)
	{
		if (!xdr_change_info4(xdrs, &objp->source_cinfo))
			return false;
		if (!xdr_change_info4(xdrs, &objp->target_cinfo))
			return false;
		return true;
	}

	static inline bool xdr_RENAME4res(XDR * xdrs, RENAME4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_RENAME4resok(xdrs, &objp->RENAME4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_RENEW4args(XDR * xdrs, RENEW4args *objp)
	{
		if (!xdr_clientid4(xdrs, &objp->clientid))
			return false;
		return true;
	}

	static inline bool xdr_RENEW4res(XDR * xdrs, RENEW4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_RESTOREFH4res(XDR * xdrs, RESTOREFH4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_SAVEFH4res(XDR * xdrs, SAVEFH4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_SECINFO4args(XDR * xdrs, SECINFO4args *objp)
	{
		if (!xdr_component4(xdrs, &objp->name))
			return false;
		return true;
	}

	static inline bool xdr_rpc_gss_svc_t(XDR * xdrs, rpc_gss_svc_t *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_rpcsec_gss_info(XDR * xdrs,
					       rpcsec_gss_info *objp)
	{
		if (!xdr_sec_oid4(xdrs, &objp->oid))
			return false;
		if (!xdr_qop4(xdrs, &objp->qop))
			return false;
		if (!xdr_rpc_gss_svc_t(xdrs, &objp->service))
			return false;
		return true;
	}

	static inline bool xdr_secinfo4(XDR * xdrs, secinfo4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->flavor))
			return false;
		switch (objp->flavor) {
		case RPCSEC_GSS:
			if (!xdr_rpcsec_gss_info
			    (xdrs, &objp->secinfo4_u.flavor_info))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_SECINFO4resok(XDR * xdrs, SECINFO4resok *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->SECINFO4resok_val,
		     (u_int *) & objp->SECINFO4resok_len, XDR_ARRAY_MAXLEN, sizeof(secinfo4),
		     (xdrproc_t) xdr_secinfo4))
			return false;
		return true;
	}

	static inline bool xdr_SECINFO4res(XDR * xdrs, SECINFO4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_SECINFO4resok
			    (xdrs, &objp->SECINFO4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_SETATTR4args(XDR * xdrs, SETATTR4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->stateid))
			return false;
		if (!xdr_fattr4(xdrs, &objp->obj_attributes))
			return false;
		return true;
	}

	static inline bool xdr_SETATTR4res(XDR * xdrs, SETATTR4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->attrsset))
			return false;
		return true;
	}

	static inline bool xdr_SETCLIENTID4args(XDR * xdrs,
						SETCLIENTID4args *objp)
	{
		if (!xdr_nfs_client_id4(xdrs, &objp->client))
			return false;
		if (!xdr_cb_client4(xdrs, &objp->callback))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->callback_ident))
			return false;
		return true;
	}

	static inline bool xdr_SETCLIENTID4resok(XDR * xdrs,
						 SETCLIENTID4resok *objp)
	{
		if (!xdr_clientid4(xdrs, &objp->clientid))
			return false;
		if (!xdr_verifier4(xdrs, objp->setclientid_confirm))
			return false;
		return true;
	}

	static inline bool xdr_SETCLIENTID4res(XDR * xdrs,
					       SETCLIENTID4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_SETCLIENTID4resok
			    (xdrs, &objp->SETCLIENTID4res_u.resok4))
				return false;
			break;
		case NFS4ERR_CLID_INUSE:
			if (!xdr_clientaddr4
			    (xdrs, &objp->SETCLIENTID4res_u.client_using))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_SETCLIENTID_CONFIRM4args(XDR * xdrs,
							SETCLIENTID_CONFIRM4args
							* objp)
	{
		if (!xdr_clientid4(xdrs, &objp->clientid))
			return false;
		if (!xdr_verifier4(xdrs, objp->setclientid_confirm))
			return false;
		return true;
	}

	static inline bool xdr_SETCLIENTID_CONFIRM4res(XDR * xdrs,
						       SETCLIENTID_CONFIRM4res *
						       objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_VERIFY4args(XDR * xdrs, VERIFY4args *objp)
	{
		if (!xdr_fattr4(xdrs, &objp->obj_attributes))
			return false;
		return true;
	}

	static inline bool xdr_VERIFY4res(XDR * xdrs, VERIFY4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_stable_how4(XDR * xdrs, stable_how4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_WRITE4args(XDR * xdrs, WRITE4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->stateid))
			return false;
		if (!xdr_offset4(xdrs, &objp->offset))
			return false;
		if (!xdr_stable_how4(xdrs, &objp->stable))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->data.data_val,
		     (u_int *) & objp->data.data_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_WRITE4resok(XDR * xdrs, WRITE4resok *objp)
	{
		if (!xdr_count4(xdrs, &objp->count))
			return false;
		if (!xdr_stable_how4(xdrs, &objp->committed))
			return false;
		if (!xdr_verifier4(xdrs, objp->writeverf))
			return false;
		return true;
	}

	static inline bool xdr_WRITE4res(XDR * xdrs, WRITE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_WRITE4resok(xdrs, &objp->WRITE4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_RELEASE_LOCKOWNER4args(XDR * xdrs,
						      RELEASE_LOCKOWNER4args *
						      objp)
	{
		if (!xdr_lock_owner4(xdrs, &objp->lock_owner))
			return false;
		return true;
	}

	static inline bool xdr_RELEASE_LOCKOWNER4res(XDR * xdrs,
						     RELEASE_LOCKOWNER4res *
						     objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_ILLEGAL4res(XDR * xdrs, ILLEGAL4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_gsshandle4_t(XDR * xdrs, gsshandle4_t *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->gsshandle4_t_val,
		     (u_int *) & objp->gsshandle4_t_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_gss_cb_handles4(XDR * xdrs,
					       gss_cb_handles4 *objp)
	{
		if (!xdr_rpc_gss_svc_t(xdrs, &objp->gcbp_service))
			return false;
		if (!xdr_gsshandle4_t(xdrs, &objp->gcbp_handle_from_server))
			return false;
		if (!xdr_gsshandle4_t(xdrs, &objp->gcbp_handle_from_client))
			return false;
		return true;
	}

	static inline bool xdr_callback_sec_parms4(XDR * xdrs,
						   callback_sec_parms4 *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->cb_secflavor))
			return false;
		switch (objp->cb_secflavor) {
		case AUTH_NONE:
			break;
		case AUTH_SYS:
			if (!xdr_authunix_parms
			    (xdrs, &objp->callback_sec_parms4_u.cbsp_sys_cred))
				return false;
			break;
		case RPCSEC_GSS:
			if (!xdr_gss_cb_handles4
			    (xdrs,
			     &objp->callback_sec_parms4_u.cbsp_gss_handles))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_BACKCHANNEL_CTL4args(XDR * xdrs,
						    BACKCHANNEL_CTL4args *
						    objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->bca_cb_program))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->bca_sec_parms.bca_sec_parms_val,
		     (u_int *) & objp->bca_sec_parms.bca_sec_parms_len, XDR_ARRAY_MAXLEN,
		     sizeof(callback_sec_parms4),
		     (xdrproc_t) xdr_callback_sec_parms4))
			return false;
		return true;
	}

	static inline bool xdr_BACKCHANNEL_CTL4res(XDR * xdrs,
						   BACKCHANNEL_CTL4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->bcr_status))
			return false;
		return true;
	}

	static inline bool xdr_channel_dir_from_client4(
						XDR * xdrs,
						channel_dir_from_client4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_BIND_CONN_TO_SESSION4args(
						XDR * xdrs,
						BIND_CONN_TO_SESSION4args *objp)
	{
		if (!xdr_sessionid4(xdrs, objp->bctsa_sessid))
			return false;
		if (!xdr_channel_dir_from_client4(xdrs, &objp->bctsa_dir))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->bctsa_use_conn_in_rdma_mode))
			return false;
		return true;
	}

	static inline bool xdr_channel_dir_from_server4(XDR * xdrs,
							channel_dir_from_server4
							* objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_BIND_CONN_TO_SESSION4resok(
					XDR * xdrs,
					BIND_CONN_TO_SESSION4resok *objp)
	{
		if (!xdr_sessionid4(xdrs, objp->bctsr_sessid))
			return false;
		if (!xdr_channel_dir_from_server4(xdrs, &objp->bctsr_dir))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->bctsr_use_conn_in_rdma_mode))
			return false;
		return true;
	}

	static inline bool xdr_BIND_CONN_TO_SESSION4res(XDR * xdrs,
							BIND_CONN_TO_SESSION4res
							* objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->bctsr_status))
			return false;
		switch (objp->bctsr_status) {
		case NFS4_OK:
			if (!xdr_BIND_CONN_TO_SESSION4resok
			    (xdrs,
			     &objp->BIND_CONN_TO_SESSION4res_u.bctsr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_state_protect_ops4(XDR * xdrs,
						  state_protect_ops4 *objp)
	{
		if (!xdr_bitmap4(xdrs, &objp->spo_must_enforce))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->spo_must_allow))
			return false;
		return true;
	}

	static inline bool xdr_ssv_sp_parms4(XDR * xdrs, ssv_sp_parms4 *objp)
	{
		if (!xdr_state_protect_ops4(xdrs, &objp->ssp_ops))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->ssp_hash_algs.ssp_hash_algs_val,
		     (u_int *) & objp->ssp_hash_algs.ssp_hash_algs_len, XDR_ARRAY_MAXLEN,
		     sizeof(sec_oid4), (xdrproc_t) xdr_sec_oid4))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->ssp_encr_algs.ssp_encr_algs_val,
		     (u_int *) & objp->ssp_encr_algs.ssp_encr_algs_len, XDR_ARRAY_MAXLEN,
		     sizeof(sec_oid4), (xdrproc_t) xdr_sec_oid4))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->ssp_window))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->ssp_num_gss_handles))
			return false;
		return true;
	}

	static inline bool xdr_state_protect_how4(XDR * xdrs,
						  state_protect_how4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_state_protect4_a(XDR * xdrs,
						state_protect4_a *objp)
	{
		if (!xdr_state_protect_how4(xdrs, &objp->spa_how))
			return false;
		switch (objp->spa_how) {
		case SP4_NONE:
			break;
		case SP4_MACH_CRED:
			if (!xdr_state_protect_ops4
			    (xdrs, &objp->state_protect4_a_u.spa_mach_ops))
				return false;
			break;
		case SP4_SSV:
			if (!xdr_ssv_sp_parms4
			    (xdrs, &objp->state_protect4_a_u.spa_ssv_parms))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_EXCHANGE_ID4args(XDR * xdrs,
						EXCHANGE_ID4args *objp)
	{
		if (!xdr_client_owner4(xdrs, &objp->eia_clientowner))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->eia_flags))
			return false;
		if (!xdr_state_protect4_a(xdrs, &objp->eia_state_protect))
			return false;
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->eia_client_impl_id.eia_client_impl_id_val,
		     (u_int *) & objp->eia_client_impl_id.
		     eia_client_impl_id_len, 1, sizeof(nfs_impl_id4),
		     (xdrproc_t) xdr_nfs_impl_id4))
			return false;
		return true;
	}

	static inline bool xdr_ssv_prot_info4(XDR * xdrs, ssv_prot_info4 *objp)
	{
		if (!xdr_state_protect_ops4(xdrs, &objp->spi_ops))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->spi_hash_alg))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->spi_encr_alg))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->spi_ssv_len))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->spi_window))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->spi_handles.spi_handles_val,
		     (u_int *) & objp->spi_handles.spi_handles_len, XDR_ARRAY_MAXLEN,
		     sizeof(gsshandle4_t), (xdrproc_t) xdr_gsshandle4_t))
			return false;
		return true;
	}

	static inline bool xdr_state_protect4_r(XDR * xdrs,
						state_protect4_r *objp)
	{
		if (!xdr_state_protect_how4(xdrs, &objp->spr_how))
			return false;
		switch (objp->spr_how) {
		case SP4_NONE:
			break;
		case SP4_MACH_CRED:
			if (!xdr_state_protect_ops4
			    (xdrs, &objp->state_protect4_r_u.spr_mach_ops))
				return false;
			break;
		case SP4_SSV:
			if (!xdr_ssv_prot_info4
			    (xdrs, &objp->state_protect4_r_u.spr_ssv_info))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_EXCHANGE_ID4resok(XDR * xdrs,
						 EXCHANGE_ID4resok *objp)
	{
		if (!xdr_clientid4(xdrs, &objp->eir_clientid))
			return false;
		if (!xdr_sequenceid4(xdrs, &objp->eir_sequenceid))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->eir_flags))
			return false;
		if (!xdr_state_protect4_r(xdrs, &objp->eir_state_protect))
			return false;
		if (!xdr_server_owner4(xdrs, &objp->eir_server_owner))
			return false;
		if (!inline_xdr_bytes
		    (xdrs,
		     (char **)&objp->eir_server_scope.eir_server_scope_val,
		     (u_int *) & objp->eir_server_scope.eir_server_scope_len,
		     NFS4_OPAQUE_LIMIT))
			return false;
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->eir_server_impl_id.eir_server_impl_id_val,
		     (u_int *) & objp->eir_server_impl_id.
		     eir_server_impl_id_len, 1, sizeof(nfs_impl_id4),
		     (xdrproc_t) xdr_nfs_impl_id4))
			return false;
		return true;
	}

	static inline bool xdr_EXCHANGE_ID4res(XDR * xdrs,
					       EXCHANGE_ID4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->eir_status))
			return false;
		switch (objp->eir_status) {
		case NFS4_OK:
			if (!xdr_EXCHANGE_ID4resok
			    (xdrs, &objp->EXCHANGE_ID4res_u.eir_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_channel_attrs4(XDR * xdrs, channel_attrs4 *objp)
	{
		if (!xdr_count4(xdrs, &objp->ca_headerpadsize))
			return false;
		if (!xdr_count4(xdrs, &objp->ca_maxrequestsize))
			return false;
		if (!xdr_count4(xdrs, &objp->ca_maxresponsesize))
			return false;
		if (!xdr_count4(xdrs, &objp->ca_maxresponsesize_cached))
			return false;
		if (!xdr_count4(xdrs, &objp->ca_maxoperations))
			return false;
		if (!xdr_count4(xdrs, &objp->ca_maxrequests))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->ca_rdma_ird.ca_rdma_ird_val,
		     (u_int *) & objp->ca_rdma_ird.ca_rdma_ird_len, 1,
		     sizeof(uint32_t), (xdrproc_t) xdr_uint32_t))
			return false;
		return true;
	}

	static inline bool xdr_CREATE_SESSION4args(XDR * xdrs,
						   CREATE_SESSION4args *objp)
	{
		if (!xdr_clientid4(xdrs, &objp->csa_clientid))
			return false;
		if (!xdr_sequenceid4(xdrs, &objp->csa_sequence))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->csa_flags))
			return false;
		if (!xdr_channel_attrs4(xdrs, &objp->csa_fore_chan_attrs))
			return false;
		if (!xdr_channel_attrs4(xdrs, &objp->csa_back_chan_attrs))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->csa_cb_program))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->csa_sec_parms.csa_sec_parms_val,
		     (u_int *) & objp->csa_sec_parms.csa_sec_parms_len, XDR_ARRAY_MAXLEN,
		     sizeof(callback_sec_parms4),
		     (xdrproc_t) xdr_callback_sec_parms4))
			return false;
		return true;
	}

	static inline bool xdr_CREATE_SESSION4resok(XDR * xdrs,
						    CREATE_SESSION4resok *
						    objp)
	{
		if (!xdr_sessionid4(xdrs, objp->csr_sessionid))
			return false;
		if (!xdr_sequenceid4(xdrs, &objp->csr_sequence))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->csr_flags))
			return false;
		if (!xdr_channel_attrs4(xdrs, &objp->csr_fore_chan_attrs))
			return false;
		if (!xdr_channel_attrs4(xdrs, &objp->csr_back_chan_attrs))
			return false;
		return true;
	}

	static inline bool xdr_CREATE_SESSION4res(XDR * xdrs,
						  CREATE_SESSION4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->csr_status))
			return false;
		switch (objp->csr_status) {
		case NFS4_OK:
			if (!xdr_CREATE_SESSION4resok
			    (xdrs, &objp->CREATE_SESSION4res_u.csr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_DESTROY_SESSION4args(XDR * xdrs,
						    DESTROY_SESSION4args *
						    objp)
	{
		if (!xdr_sessionid4(xdrs, objp->dsa_sessionid))
			return false;
		return true;
	}

	static inline bool xdr_DESTROY_SESSION4res(XDR * xdrs,
						   DESTROY_SESSION4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->dsr_status))
			return false;
		return true;
	}

	static inline bool xdr_FREE_STATEID4args(XDR * xdrs,
						 FREE_STATEID4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->fsa_stateid))
			return false;
		return true;
	}

	static inline bool xdr_FREE_STATEID4res(XDR * xdrs,
						FREE_STATEID4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->fsr_status))
			return false;
		return true;
	}

	static inline bool xdr_attr_notice4(XDR * xdrs, attr_notice4 *objp)
	{
		if (!xdr_nfstime4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_GET_DIR_DELEGATION4args(XDR * xdrs,
						       GET_DIR_DELEGATION4args *
						       objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->gdda_signal_deleg_avail))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->gdda_notification_types))
			return false;
		if (!xdr_attr_notice4(xdrs, &objp->gdda_child_attr_delay))
			return false;
		if (!xdr_attr_notice4(xdrs, &objp->gdda_dir_attr_delay))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->gdda_child_attributes))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->gdda_dir_attributes))
			return false;
		return true;
	}

	static inline bool xdr_GET_DIR_DELEGATION4resok(XDR * xdrs,
							GET_DIR_DELEGATION4resok
							* objp)
	{
		if (!xdr_verifier4(xdrs, objp->gddr_cookieverf))
			return false;
		if (!xdr_stateid4(xdrs, &objp->gddr_stateid))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->gddr_notification))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->gddr_child_attributes))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->gddr_dir_attributes))
			return false;
		return true;
	}

	static inline bool xdr_gddrnf4_status(XDR * xdrs, gddrnf4_status *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_GET_DIR_DELEGATION4res_non_fatal(
					XDR * xdrs,
					GET_DIR_DELEGATION4res_non_fatal *objp)
	{
		if (!xdr_gddrnf4_status(xdrs, &objp->gddrnf_status))
			return false;
		switch (objp->gddrnf_status) {
		case GDD4_OK:
			if (!xdr_GET_DIR_DELEGATION4resok
			    (xdrs,
			     &objp->GET_DIR_DELEGATION4res_non_fatal_u.
			     gddrnf_resok4))
				return false;
			break;
		case GDD4_UNAVAIL:
			if (!inline_xdr_bool
			    (xdrs,
			     &objp->GET_DIR_DELEGATION4res_non_fatal_u.
			     gddrnf_will_signal_deleg_avail))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_GET_DIR_DELEGATION4res(
					XDR * xdrs,
					GET_DIR_DELEGATION4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->gddr_status))
			return false;
		switch (objp->gddr_status) {
		case NFS4_OK:
			if (!xdr_GET_DIR_DELEGATION4res_non_fatal
			    (xdrs,
			     &objp->GET_DIR_DELEGATION4res_u.
			     gddr_res_non_fatal4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_GETDEVICEINFO4args(XDR * xdrs,
						  GETDEVICEINFO4args *objp)
	{
		if (!xdr_deviceid4(xdrs, objp->gdia_device_id))
			return false;
		if (!xdr_layouttype4(xdrs, &objp->gdia_layout_type))
			return false;
		if (!xdr_count4(xdrs, &objp->gdia_maxcount))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->gdia_notify_types))
			return false;
		return true;
	}

	static inline bool xdr_GETDEVICEINFO4resok(XDR * xdrs,
						   GETDEVICEINFO4resok *objp)
	{
		if (!xdr_device_addr4(xdrs, &objp->gdir_device_addr))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->gdir_notification))
			return false;
		return true;
	}

	static inline bool xdr_GETDEVICEINFO4res(XDR * xdrs,
						 GETDEVICEINFO4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->gdir_status))
			return false;
		switch (objp->gdir_status) {
		case NFS4_OK:
			if (!xdr_GETDEVICEINFO4resok
			    (xdrs, &objp->GETDEVICEINFO4res_u.gdir_resok4))
				return false;
			break;
		case NFS4ERR_TOOSMALL:
			if (!xdr_count4
			    (xdrs, &objp->GETDEVICEINFO4res_u.gdir_mincount))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_GETDEVICELIST4args(XDR * xdrs,
						  GETDEVICELIST4args *objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->gdla_layout_type))
			return false;
		if (!xdr_count4(xdrs, &objp->gdla_maxdevices))
			return false;
		if (!xdr_nfs_cookie4(xdrs, &objp->gdla_cookie))
			return false;
		if (!xdr_verifier4(xdrs, objp->gdla_cookieverf))
			return false;
		return true;
	}

	static inline bool xdr_GETDEVICELIST4resok(XDR * xdrs,
						   GETDEVICELIST4resok *objp)
	{
		if (!xdr_nfs_cookie4(xdrs, &objp->gdlr_cookie))
			return false;
		if (!xdr_verifier4(xdrs, objp->gdlr_cookieverf))
			return false;
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->gdlr_deviceid_list.gdlr_deviceid_list_val,
		     (u_int *) & objp->gdlr_deviceid_list.
		     gdlr_deviceid_list_len, XDR_ARRAY_MAXLEN, sizeof(deviceid4),
		     (xdrproc_t) xdr_deviceid4))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->gdlr_eof))
			return false;
		return true;
	}

	static inline bool xdr_GETDEVICELIST4res(XDR * xdrs,
						 GETDEVICELIST4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->gdlr_status))
			return false;
		switch (objp->gdlr_status) {
		case NFS4_OK:
			if (!xdr_GETDEVICELIST4resok
			    (xdrs, &objp->GETDEVICELIST4res_u.gdlr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_newtime4(XDR * xdrs, newtime4 *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->nt_timechanged))
			return false;
		switch (objp->nt_timechanged) {
		case true:
			if (!xdr_nfstime4(xdrs, &objp->newtime4_u.nt_time))
				return false;
			break;
		case false:
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_newoffset4(XDR * xdrs, newoffset4 *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->no_newoffset))
			return false;
		switch (objp->no_newoffset) {
		case true:
			if (!xdr_offset4(xdrs, &objp->newoffset4_u.no_offset))
				return false;
			break;
		case false:
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_LAYOUTCOMMIT4args(XDR * xdrs,
						 LAYOUTCOMMIT4args *objp)
	{
		if (!xdr_offset4(xdrs, &objp->loca_offset))
			return false;
		if (!xdr_length4(xdrs, &objp->loca_length))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->loca_reclaim))
			return false;
		if (!xdr_stateid4(xdrs, &objp->loca_stateid))
			return false;
		if (!xdr_newoffset4(xdrs, &objp->loca_last_write_offset))
			return false;
		if (!xdr_newtime4(xdrs, &objp->loca_time_modify))
			return false;
		if (!xdr_layoutupdate4(xdrs, &objp->loca_layoutupdate))
			return false;
		return true;
	}

	static inline bool xdr_newsize4(XDR * xdrs, newsize4 *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->ns_sizechanged))
			return false;
		switch (objp->ns_sizechanged) {
		case true:
			if (!xdr_length4(xdrs, &objp->newsize4_u.ns_size))
				return false;
			break;
		case false:
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_LAYOUTCOMMIT4resok(XDR * xdrs,
						  LAYOUTCOMMIT4resok *objp)
	{
		if (!xdr_newsize4(xdrs, &objp->locr_newsize))
			return false;
		return true;
	}

	static inline bool xdr_LAYOUTCOMMIT4res(XDR * xdrs,
						LAYOUTCOMMIT4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->locr_status))
			return false;
		switch (objp->locr_status) {
		case NFS4_OK:
			if (!xdr_LAYOUTCOMMIT4resok
			    (xdrs, &objp->LAYOUTCOMMIT4res_u.locr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_LAYOUTGET4args(XDR * xdrs, LAYOUTGET4args *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->loga_signal_layout_avail))
			return false;
		if (!xdr_layouttype4(xdrs, &objp->loga_layout_type))
			return false;
		if (!xdr_layoutiomode4(xdrs, &objp->loga_iomode))
			return false;
		if (!xdr_offset4(xdrs, &objp->loga_offset))
			return false;
		if (!xdr_length4(xdrs, &objp->loga_length))
			return false;
		if (!xdr_length4(xdrs, &objp->loga_minlength))
			return false;
		if (!xdr_stateid4(xdrs, &objp->loga_stateid))
			return false;
		if (!xdr_count4(xdrs, &objp->loga_maxcount))
			return false;
		return true;
	}

	static inline bool xdr_LAYOUTGET4resok(XDR * xdrs,
					       LAYOUTGET4resok *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->logr_return_on_close))
			return false;
		if (!xdr_stateid4(xdrs, &objp->logr_stateid))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->logr_layout.logr_layout_val,
		     (u_int *) & objp->logr_layout.logr_layout_len, XDR_ARRAY_MAXLEN,
		     sizeof(layout4), (xdrproc_t) xdr_layout4))
			return false;
		return true;
	}

	static inline bool xdr_LAYOUTGET4res(XDR * xdrs, LAYOUTGET4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->logr_status))
			return false;
		switch (objp->logr_status) {
		case NFS4_OK:
			if (!xdr_LAYOUTGET4resok
			    (xdrs, &objp->LAYOUTGET4res_u.logr_resok4))
				return false;
			break;
		case NFS4ERR_LAYOUTTRYLATER:
			if (!inline_xdr_bool
			    (xdrs,
			     &objp->LAYOUTGET4res_u.
			     logr_will_signal_layout_avail))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_LAYOUTRETURN4args(XDR * xdrs,
						 LAYOUTRETURN4args *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->lora_reclaim))
			return false;
		if (!xdr_layouttype4(xdrs, &objp->lora_layout_type))
			return false;
		if (!xdr_layoutiomode4(xdrs, &objp->lora_iomode))
			return false;
		if (!xdr_layoutreturn4(xdrs, &objp->lora_layoutreturn))
			return false;
		return true;
	}

	static inline bool xdr_layoutreturn_stateid(XDR * xdrs,
						    layoutreturn_stateid *
						    objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->lrs_present))
			return false;
		switch (objp->lrs_present) {
		case true:
			if (!xdr_stateid4
			    (xdrs, &objp->layoutreturn_stateid_u.lrs_stateid))
				return false;
			break;
		case false:
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_LAYOUTRETURN4res(XDR * xdrs,
						LAYOUTRETURN4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->lorr_status))
			return false;
		switch (objp->lorr_status) {
		case NFS4_OK:
			if (!xdr_layoutreturn_stateid
			    (xdrs, &objp->LAYOUTRETURN4res_u.lorr_stateid))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_secinfo_style4(XDR * xdrs, secinfo_style4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_SECINFO_NO_NAME4args(XDR * xdrs,
						    SECINFO_NO_NAME4args *
						    objp)
	{
		if (!xdr_secinfo_style4(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_SECINFO_NO_NAME4res(XDR * xdrs,
						   SECINFO_NO_NAME4res *objp)
	{
		if (!xdr_SECINFO4res(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_SEQUENCE4args(XDR * xdrs, SEQUENCE4args *objp)
	{
		if (!xdr_sessionid4(xdrs, objp->sa_sessionid))
			return false;
		if (!xdr_sequenceid4(xdrs, &objp->sa_sequenceid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->sa_slotid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->sa_highest_slotid))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->sa_cachethis))
			return false;
		return true;
	}

	static inline bool xdr_SEQUENCE4resok(XDR * xdrs, SEQUENCE4resok *objp)
	{
		if (!xdr_sessionid4(xdrs, objp->sr_sessionid))
			return false;
		if (!xdr_sequenceid4(xdrs, &objp->sr_sequenceid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->sr_slotid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->sr_highest_slotid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->sr_target_highest_slotid))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->sr_status_flags))
			return false;
		return true;
	}

	static inline bool xdr_SEQUENCE4res(XDR * xdrs, SEQUENCE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->sr_status))
			return false;
		switch (objp->sr_status) {
		case NFS4_OK:
			if (!xdr_SEQUENCE4resok
			    (xdrs, &objp->SEQUENCE4res_u.sr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_ssa_digest_input4(XDR * xdrs,
						 ssa_digest_input4 *objp)
	{
		if (!xdr_SEQUENCE4args(xdrs, &objp->sdi_seqargs))
			return false;
		return true;
	}

	static inline bool xdr_SET_SSV4args(XDR * xdrs, SET_SSV4args *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->ssa_ssv.ssa_ssv_val,
		     (u_int *) & objp->ssa_ssv.ssa_ssv_len, XDR_BYTES_MAXLEN))
			return false;
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->ssa_digest.ssa_digest_val,
		     (u_int *) & objp->ssa_digest.ssa_digest_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_ssr_digest_input4(XDR * xdrs,
						 ssr_digest_input4 *objp)
	{
		if (!xdr_SEQUENCE4res(xdrs, &objp->sdi_seqres))
			return false;
		return true;
	}

	static inline bool xdr_SET_SSV4resok(XDR * xdrs, SET_SSV4resok *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->ssr_digest.ssr_digest_val,
		     (u_int *) & objp->ssr_digest.ssr_digest_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_SET_SSV4res(XDR * xdrs, SET_SSV4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->ssr_status))
			return false;
		switch (objp->ssr_status) {
		case NFS4_OK:
			if (!xdr_SET_SSV4resok
			    (xdrs, &objp->SET_SSV4res_u.ssr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_TEST_STATEID4args(XDR * xdrs,
						 TEST_STATEID4args *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->ts_stateids.ts_stateids_val,
		     (u_int *) & objp->ts_stateids.ts_stateids_len, XDR_ARRAY_MAXLEN,
		     sizeof(stateid4), (xdrproc_t) xdr_stateid4))
			return false;
		return true;
	}

	static inline bool xdr_TEST_STATEID4resok(XDR * xdrs,
						  TEST_STATEID4resok *objp)
	{
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->tsr_status_codes.tsr_status_codes_val,
		     (u_int *) & objp->tsr_status_codes.tsr_status_codes_len,
		     XDR_ARRAY_MAXLEN, sizeof(nfsstat4), (xdrproc_t) xdr_nfsstat4))
			return false;
		return true;
	}

	static inline bool xdr_TEST_STATEID4res(XDR * xdrs,
						TEST_STATEID4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->tsr_status))
			return false;
		switch (objp->tsr_status) {
		case NFS4_OK:
			if (!xdr_TEST_STATEID4resok
			    (xdrs, &objp->TEST_STATEID4res_u.tsr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_deleg_claim4(XDR * xdrs, deleg_claim4 *objp)
	{
		if (!xdr_open_claim_type4(xdrs, &objp->dc_claim))
			return false;
		switch (objp->dc_claim) {
		case CLAIM_FH:
			break;
		case CLAIM_DELEG_PREV_FH:
			break;
		case CLAIM_PREVIOUS:
			if (!xdr_open_delegation_type4
			    (xdrs, &objp->deleg_claim4_u.dc_delegate_type))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_WANT_DELEGATION4args(XDR * xdrs,
						    WANT_DELEGATION4args *
						    objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->wda_want))
			return false;
		if (!xdr_deleg_claim4(xdrs, &objp->wda_claim))
			return false;
		return true;
	}

	static inline bool xdr_WANT_DELEGATION4res(XDR * xdrs,
						   WANT_DELEGATION4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->wdr_status))
			return false;
		switch (objp->wdr_status) {
		case NFS4_OK:
			if (!xdr_open_delegation4
			    (xdrs, &objp->WANT_DELEGATION4res_u.wdr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_DESTROY_CLIENTID4args(XDR * xdrs,
						     DESTROY_CLIENTID4args *
						     objp)
	{
		if (!xdr_clientid4(xdrs, &objp->dca_clientid))
			return false;
		return true;
	}

	static inline bool xdr_DESTROY_CLIENTID4res(XDR * xdrs,
						    DESTROY_CLIENTID4res *
						    objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->dcr_status))
			return false;
		return true;
	}

	static inline bool xdr_RECLAIM_COMPLETE4args(XDR * xdrs,
						     RECLAIM_COMPLETE4args *
						     objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->rca_one_fs))
			return false;
		return true;
	}

	static inline bool xdr_RECLAIM_COMPLETE4res(XDR * xdrs,
						    RECLAIM_COMPLETE4res *
						    objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->rcr_status))
			return false;
		return true;
	}

	/* NFSv4.2 */

	static inline bool
	xdr_data_content4(XDR *xdrs, data_content4 *objp)
	{
		register int32_t *buf;

		 if (!xdr_enum(xdrs, (enum_t *) objp))
			 return false;
		return true;
	}

	static inline bool
	xdr_data_info4(XDR *xdrs, data_info4 *objp)
	{
		register int32_t *buf;

		if (!xdr_offset4(xdrs, &objp->di_offset))
			return false;
		if (!xdr_length4(xdrs, &objp->di_length))
			return false;
		if (!xdr_bool(xdrs, &objp->di_allocated))
			return false;
		return true;
	}

	static inline bool
	xdr_write_response4(XDR *xdrs, write_response4 *objp)
	{
		register int32_t *buf;

		if (!xdr_count4(xdrs, &objp->wr_ids))
			return false;
		if (!xdr_stateid4(xdrs, &objp->wr_callback_id))
			return false;
		if (!xdr_length4(xdrs, &objp->wr_count))
			return false;
		if (!xdr_stable_how4(xdrs, &objp->wr_committed))
			return false;
		if (!xdr_verifier4(xdrs, objp->wr_writeverf))
			return false;
		return true;
	}

	static inline bool
	xdr_data4(XDR *xdrs, data4 *objp)
	{
		register int32_t *buf;

		 if (!xdr_offset4(xdrs, &objp->d_offset))
			 return false;
		 if (!xdr_bool(xdrs, &objp->d_allocated))
			 return false;
		 if (!xdr_bytes(xdrs, (char **)&objp->d_data.data_val,
		                (u_int *) &objp->d_data.data_len, XDR_BYTES_MAXLEN))
			 return false;
		return true;
	}

	static inline bool
	xdr_app_data_hole4(XDR *xdrs, app_data_hole4 *objp)
	{
		register int32_t *buf;

		 if (!xdr_offset4(xdrs, &objp->adh_offset))
			 return false;
		 if (!xdr_length4(xdrs, &objp->adh_block_size))
			 return false;
		 if (!xdr_length4(xdrs, &objp->adh_block_count))
			 return false;
		 if (!xdr_length4(xdrs, &objp->adh_reloff_blocknum))
			 return false;
		 if (!xdr_count4(xdrs, &objp->adh_block_num))
			 return false;
		 if (!xdr_length4(xdrs, &objp->adh_reloff_pattern))
			 return false;
		 if (!xdr_bytes(xdrs, (char **)&objp->adh_data.data_val,
		                (u_int *)&objp->adh_data.data_len, XDR_BYTES_MAXLEN))
			 return false;
		return true;
	}

	static inline bool
	xdr_netloc4(XDR *xdrs, netloc4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *)&objp->nl_type))
			return false;
		switch (objp->nl_type) {
		case NL4_NAME:
			if (!xdr_utf8str_cis(xdrs, &objp->nl_name))
				return false;
			break;
		case NL4_URL:
			if (!xdr_utf8str_cis(xdrs, &objp->nl_url))
				return false;
			break;
		case NL4_NETADDR:
			if (!xdr_netaddr4(xdrs, &objp->nl_addr))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

        /* new to NFS end-to-end integrity */
        static inline bool
        xdr_nfs_protection_type4(XDR *xdrs, nfs_protection_type4 *objp)
        {
                register int32_t *buf;

                 if (!xdr_enum(xdrs, (enum_t *) objp))
                         return false;
                return true;
        }

        static inline bool
        xdr_nfs_protection_info4(XDR *xdrs, nfs_protection_info4 *objp)
        {
                register int32_t *buf;

                 if (!xdr_nfs_protection_type4(xdrs, &objp->pi_type))
                         return false;
                 if (!xdr_uint32_t(xdrs, &objp->pi_intvl_size))
                         return false;
                 if (!xdr_uint64_t(xdrs, &objp->pi_other_data))
                         return false;
                return true;
        }

	static inline bool
	xdr_data_protect_info4(XDR *xdrs, data_protect_info4 *objp)
	{
		register int32_t *buf;

		 if (!xdr_nfs_protection_info4(xdrs, &objp->pi_type))
			 return false;
		 if (!xdr_offset4(xdrs, &objp->pi_offset))
			 return false;
		 if (!xdr_bool(xdrs, &objp->pi_allocated))
			 return false;
		 if (!xdr_bytes(xdrs, (char **)&objp->pi_data.pi_data_val,
		                (u_int *) &objp->pi_data.pi_data_len, XDR_BYTES_MAXLEN))
			 return false;
		return true;
	}

	static inline bool
	xdr_data_protected4(XDR *xdrs, data_protected4 *objp)
	{
		register int32_t *buf;

		 if (!xdr_nfs_protection_info4(xdrs, &objp->pd_type))
			 return false;
		 if (!xdr_offset4(xdrs, &objp->pd_offset))
			 return false;
		 if (!xdr_bool(xdrs, &objp->pd_allocated))
			 return false;
		 if (!xdr_bytes(xdrs, (char **)&objp->pd_info.pd_info_val,
		                (u_int *)&objp->pd_info.pd_info_len, XDR_BYTES_MAXLEN))
			 return false;
		 if (!xdr_bytes(xdrs, (char **)&objp->pd_data.pd_data_val,
		                (u_int *)&objp->pd_data.pd_data_len, XDR_BYTES_MAXLEN))
			 return false;
		return true;
	}

        /* TODO to support get_protection_type in 2.1? */
        static inline bool
        xdr_fattr4_protection_types(XDR *xdrs, fattr4_protection_types *objp)
        {
                 if (!xdr_nfs_protection_info4(xdrs, objp))
                         return false;
                return true;
        }

	static inline bool xdr_contents(XDR *xdrs, contents *objp)
	{
		if (!xdr_data_content4(xdrs, &objp->what))
			return false;
		switch (objp->what) {
		case NFS4_CONTENT_DATA:
			if (!xdr_data4(xdrs, &objp->data))
				return false;
			break;
		case NFS4_CONTENT_HOLE:
			if (!xdr_data_info4(xdrs, &objp->hole))
				return false;
			break;
		case NFS4_CONTENT_APP_DATA_HOLE:
			if (!xdr_app_data_hole4(xdrs, &objp->adh))
				return false;
			break;
		case NFS4_CONTENT_PROTECTED_DATA:
			if (!xdr_data_protected4(xdrs, &objp->pdata))
				return false;
			break;
		case NFS4_CONTENT_PROTECT_INFO:
			if (!xdr_data_protect_info4(xdrs, &objp->pinfo))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_WRITE_PLUS4args(XDR *xdrs, WRITE_PLUS4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->wp_stateid))
			return false;
		if (!xdr_stable_how4(xdrs, &objp->wp_stable))
			return false;
		if (!xdr_array(xdrs, (char **)&objp->wp_data.wp_data_val,
			       (u_int *)&objp->wp_data.wp_data_len, XDR_ARRAY_MAXLEN,
			       sizeof(contents), (xdrproc_t)xdr_contents))
			return false;
		return true;
	}

	static inline bool xdr_WRITE_PLUS4resok(XDR * xdrs,
						write_response4 *objp)
	{
		if (!xdr_count4(xdrs, &objp->wr_ids))
			return false;
		/* XXX currently not used
		 * comment temporarily to match nfsv41.x
		if (objp->wr_ids > 1)
			return false;
		if (objp->wr_ids == 1)
			if (!xdr_stateid4(xdrs, &objp->wr_callback_id))
				return false;
		*/
		if (!xdr_stateid4(xdrs, &objp->wr_callback_id))
			return false;
		if (!xdr_length4(xdrs, &objp->wr_count))
			return false;
		if (!xdr_stable_how4(xdrs, &objp->wr_committed))
			return false;
		if (!xdr_verifier4(xdrs, objp->wr_writeverf))
			return false;
		return true;
	}

	static inline bool xdr_READ_PLUS4args(XDR * xdrs, READ_PLUS4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->rpa_stateid))
			return false;
		if (!xdr_offset4(xdrs, &objp->rpa_offset))
			return false;
		if (!xdr_count4(xdrs, &objp->rpa_count))
			return false;
		if (!xdr_data_content4(xdrs, &objp->rpa_content))
			return false;
		return true;
	}

	static inline bool xdr_READ_PLUS4resok(XDR *xdrs, read_plus_res4 *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->rpr_eof))
			return false;
		if (!xdr_array(xdrs,
			       (char **)&objp->rpr_contents_val,
			       (u_int *)&objp->rpr_contents_len,
			       XDR_ARRAY_MAXLEN, sizeof(contents), (xdrproc_t)xdr_contents))
			return false;
		return true;
	}

	static inline bool xdr_READ_PLUS4res(XDR *xdrs, READ_PLUS4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->rpr_status))
			return false;
		switch (objp->rpr_status) {
		case NFS4_OK:
			if (!xdr_READ_PLUS4resok(xdrs, &objp->rpr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_WRITE_PLUS4res(XDR * xdrs, WRITE_PLUS4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->wpr_status))
			return false;
		switch (objp->wpr_status) {
		case NFS4_OK:
			if (!xdr_WRITE_PLUS4resok(xdrs,
					&objp->WRITE_PLUS4res_u.wpr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_SEEK4args(XDR * xdrs, SEEK4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->sa_stateid))
			return false;
		if (!xdr_offset4(xdrs, &objp->sa_offset))
			return false;
		if (!inline_xdr_enum(xdrs, (enum_t *)&objp->sa_what))
			return false;
		return true;
	}

	static inline bool xdr_data_contents(XDR * xdrs, contents *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *)&objp->what))
			return false;
		if (objp->what == NFS4_CONTENT_DATA) {
			if (!xdr_offset4(xdrs,
					&objp->hole.di_offset))
				return false;
			if (!xdr_length4(xdrs,
					&objp->hole.di_length))
				return false;
			if (!inline_xdr_bool(xdrs,
					&objp->hole.di_allocated))
				return false;
			return true;
		}
		if (objp->what == NFS4_CONTENT_APP_DATA_HOLE) {
			if (!xdr_offset4(xdrs,
					&objp->adh.adh_offset))
				return false;
			if (!xdr_length4(xdrs,
				  &objp->adh.adh_block_size))
				return false;
			if (!xdr_length4(xdrs,
				  &objp->adh.adh_block_count))
				return false;
			if (!xdr_length4(xdrs,
				  &objp->adh.adh_reloff_blocknum))
				return false;
			if (!xdr_count4(xdrs,
				  &objp->adh.adh_block_num))
				return false;
			if (!xdr_length4(xdrs,
				&objp->adh.adh_reloff_pattern))
				return false;
			if (!inline_xdr_bytes
			    (xdrs,
			     (char **)&objp->adh.adh_data.data_val,
			     (u_int *)&objp->adh.adh_data.data_len,
			      XDR_BYTES_MAXLEN))
				return false;
			return true;
		}
		if (objp->what == NFS4_CONTENT_HOLE) {
			if (!xdr_offset4(xdrs,
					&objp->hole.di_offset))
				return false;
			if (!xdr_length4(xdrs,
				  &objp->hole.di_length))
				return false;
			if (!inline_xdr_bool(xdrs,
				  &objp->hole.di_allocated))
				return false;
			return true;
		}
		if (objp->what == NFS4_CONTENT_PROTECTED_DATA) {
			 if (!xdr_data_protected4(xdrs, &objp->pdata))
				 return false;
			return true;
		}
		if (objp->what == NFS4_CONTENT_PROTECT_INFO) {
			 if (!xdr_data_protect_info4(xdrs, &objp->pinfo))
				 return false;
			return true;
		} else
			return false;
	}

	static inline bool xdr_SEEK4resok(XDR * xdrs, seek_res4 *objp)
	{
		if (!inline_xdr_bool(xdrs, &objp->sr_eof))
			return false;
		if (!xdr_data_contents(xdrs, &objp->sr_contents))
			return false;
		return true;
	}

	static inline bool xdr_SEEK4res(XDR * xdrs, SEEK4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->sr_status))
			return false;
		switch (objp->sr_status) {
		case NFS4_OK:
			if (!xdr_SEEK4resok(xdrs,
					&objp->sr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_IO_ADVISE4args(XDR * xdrs, IO_ADVISE4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->iar_stateid))
			return false;
		if (!xdr_offset4(xdrs, &objp->iar_offset))
			return false;
		if (!xdr_length4(xdrs, &objp->iar_count))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->iar_hints))
			return false;
		return true;
	}

	static inline bool xdr_IO_ADVISE4res(XDR * xdrs, IO_ADVISE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->iar_status))
			return false;
		switch (objp->iar_status) {
		case NFS4_OK:
			if (!xdr_bitmap4(xdrs,
					&objp->iar_hints))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_COPY4args(XDR *xdrs, COPY4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->ca_src_stateid))
			return false;
		if (!xdr_stateid4(xdrs, &objp->ca_dst_stateid))
			return false;
		if (!xdr_offset4(xdrs, &objp->ca_src_offset))
			return false;
		if (!xdr_offset4(xdrs, &objp->ca_dst_offset))
			return false;
		if (!xdr_length4(xdrs, &objp->ca_count))
			return false;
		if (!xdr_array(xdrs, (char **)&objp->ca_netlocs,
			       (u_int *)&objp->ca_netloc_len, XDR_ARRAY_MAXLEN,
			       sizeof(netloc4), (xdrproc_t)xdr_netloc4))
			return false;
		return true;
	}

	static inline bool xdr_COPY4res(XDR *xdrs, COPY4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->cr_status))
			return false;
		switch (objp->cr_status) {
		case NFS4_OK:
			if (!xdr_write_response4(xdrs,
						 &objp->COPY4res_u.cr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

/* new operations for NFSv4.1 */

	static inline bool xdr_nfs_opnum4(XDR * xdrs, nfs_opnum4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_nfs_argop4(XDR * xdrs, nfs_argop4 *objp)
	{
		struct nfs_request_lookahead slhd = {
			.flags = 0,
			.read = 0,
			.write = 0
		};
		struct nfs_request_lookahead *lkhd =
		    xdrs->x_public ? (struct nfs_request_lookahead *)xdrs->
		    x_public : &slhd;

		if (!xdr_nfs_opnum4(xdrs, &objp->argop))
			return false;
		switch (objp->argop) {
		case NFS4_OP_ACCESS:
			if (!xdr_ACCESS4args
			    (xdrs, &objp->nfs_argop4_u.opaccess))
				return false;
			break;
		case NFS4_OP_CLOSE:
			if (!xdr_CLOSE4args(xdrs, &objp->nfs_argop4_u.opclose))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_CLOSE;
			break;
		case NFS4_OP_COMMIT:
			if (!xdr_COMMIT4args
			    (xdrs, &objp->nfs_argop4_u.opcommit))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_COMMIT;
			break;
		case NFS4_OP_CREATE:
			if (!xdr_CREATE4args
			    (xdrs, &objp->nfs_argop4_u.opcreate))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_CREATE;
			break;
		case NFS4_OP_DELEGPURGE:
			if (!xdr_DELEGPURGE4args
			    (xdrs, &objp->nfs_argop4_u.opdelegpurge))
				return false;
			break;
		case NFS4_OP_DELEGRETURN:
			if (!xdr_DELEGRETURN4args
			    (xdrs, &objp->nfs_argop4_u.opdelegreturn))
				return false;
			break;
		case NFS4_OP_GETATTR:
			if (!xdr_GETATTR4args
			    (xdrs, &objp->nfs_argop4_u.opgetattr))
				return false;
			break;
		case NFS4_OP_GETFH:
			break;
		case NFS4_OP_LINK:
			if (!xdr_LINK4args(xdrs, &objp->nfs_argop4_u.oplink))
				return false;
			break;
		case NFS4_OP_LOCK:
			if (!xdr_LOCK4args(xdrs, &objp->nfs_argop4_u.oplock))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_LOCK;
			break;
		case NFS4_OP_LOCKT:
			if (!xdr_LOCKT4args(xdrs, &objp->nfs_argop4_u.oplockt))
				return false;
			break;
		case NFS4_OP_LOCKU:
			if (!xdr_LOCKU4args(xdrs, &objp->nfs_argop4_u.oplocku))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_LOCK;
			break;
		case NFS4_OP_LOOKUP:
			if (!xdr_LOOKUP4args
			    (xdrs, &objp->nfs_argop4_u.oplookup))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_LOOKUP;
			break;
		case NFS4_OP_LOOKUPP:
			lkhd->flags |= NFS_LOOKAHEAD_LOOKUP;
			break;
		case NFS4_OP_NVERIFY:
			if (!xdr_NVERIFY4args
			    (xdrs, &objp->nfs_argop4_u.opnverify))
				return false;
			break;
		case NFS4_OP_OPEN:
			if (!xdr_OPEN4args(xdrs, &objp->nfs_argop4_u.opopen))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_OPEN;
			if (objp->nfs_argop4_u.opopen.openhow.opentype ==
			    OPEN4_CREATE)
				lkhd->flags |= NFS_LOOKAHEAD_CREATE;
			break;
		case NFS4_OP_OPENATTR:
			if (!xdr_OPENATTR4args
			    (xdrs, &objp->nfs_argop4_u.opopenattr))
				return false;
			break;
		case NFS4_OP_OPEN_CONFIRM:
			if (!xdr_OPEN_CONFIRM4args
			    (xdrs, &objp->nfs_argop4_u.opopen_confirm))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_OPEN;
			break;
		case NFS4_OP_OPEN_DOWNGRADE:
			if (!xdr_OPEN_DOWNGRADE4args
			    (xdrs, &objp->nfs_argop4_u.opopen_downgrade))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_OPEN;
			break;
		case NFS4_OP_PUTFH:
			if (!xdr_PUTFH4args(xdrs, &objp->nfs_argop4_u.opputfh))
				return false;
			break;
		case NFS4_OP_PUTPUBFH:
			break;
		case NFS4_OP_PUTROOTFH:
			break;
		case NFS4_OP_READ:
			if (!xdr_READ4args(xdrs, &objp->nfs_argop4_u.opread))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_READ;
			(lkhd->read)++;
			break;
		case NFS4_OP_READDIR:
			if (!xdr_READDIR4args
			    (xdrs, &objp->nfs_argop4_u.opreaddir))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_READDIR;
			break;
		case NFS4_OP_READLINK:
			lkhd->flags |= NFS_LOOKAHEAD_READLINK;
			break;
		case NFS4_OP_REMOVE:
			if (!xdr_REMOVE4args
			    (xdrs, &objp->nfs_argop4_u.opremove))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_REMOVE;
			break;
		case NFS4_OP_RENAME:
			if (!xdr_RENAME4args
			    (xdrs, &objp->nfs_argop4_u.oprename))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_RENAME;
			break;
		case NFS4_OP_RENEW:
			if (!xdr_RENEW4args(xdrs, &objp->nfs_argop4_u.oprenew))
				return false;
			break;
		case NFS4_OP_RESTOREFH:
			break;
		case NFS4_OP_SAVEFH:
			break;
		case NFS4_OP_SECINFO:
			if (!xdr_SECINFO4args
			    (xdrs, &objp->nfs_argop4_u.opsecinfo))
				return false;
			break;
		case NFS4_OP_SETATTR:
			if (!xdr_SETATTR4args
			    (xdrs, &objp->nfs_argop4_u.opsetattr))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_SETATTR;
			break;
		case NFS4_OP_SETCLIENTID:
			if (!xdr_SETCLIENTID4args
			    (xdrs, &objp->nfs_argop4_u.opsetclientid))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_SETCLIENTID;
			break;
		case NFS4_OP_SETCLIENTID_CONFIRM:
			if (!xdr_SETCLIENTID_CONFIRM4args
			    (xdrs, &objp->nfs_argop4_u.opsetclientid_confirm))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_SETCLIENTID_CONFIRM;
			break;
		case NFS4_OP_VERIFY:
			if (!xdr_VERIFY4args
			    (xdrs, &objp->nfs_argop4_u.opverify))
				return false;
			break;
		case NFS4_OP_WRITE:
			if (!xdr_WRITE4args(xdrs, &objp->nfs_argop4_u.opwrite))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_WRITE;
			(lkhd->write)++;
			break;
		case NFS4_OP_RELEASE_LOCKOWNER:
			if (!xdr_RELEASE_LOCKOWNER4args
			    (xdrs, &objp->nfs_argop4_u.oprelease_lockowner))
				return false;
			break;
		case NFS4_OP_BACKCHANNEL_CTL:
			if (!xdr_BACKCHANNEL_CTL4args
			    (xdrs, &objp->nfs_argop4_u.opbackchannel_ctl))
				return false;
			break;
		case NFS4_OP_BIND_CONN_TO_SESSION:
			if (!xdr_BIND_CONN_TO_SESSION4args
			    (xdrs, &objp->nfs_argop4_u.opbind_conn_to_session))
				return false;
			break;
		case NFS4_OP_EXCHANGE_ID:
			if (!xdr_EXCHANGE_ID4args
			    (xdrs, &objp->nfs_argop4_u.opexchange_id))
				return false;
			break;
		case NFS4_OP_CREATE_SESSION:
			if (!xdr_CREATE_SESSION4args
			    (xdrs, &objp->nfs_argop4_u.opcreate_session))
				return false;
			break;
		case NFS4_OP_DESTROY_SESSION:
			if (!xdr_DESTROY_SESSION4args
			    (xdrs, &objp->nfs_argop4_u.opdestroy_session))
				return false;
			break;
		case NFS4_OP_FREE_STATEID:
			if (!xdr_FREE_STATEID4args
			    (xdrs, &objp->nfs_argop4_u.opfree_stateid))
				return false;
			break;
		case NFS4_OP_GET_DIR_DELEGATION:
			if (!xdr_GET_DIR_DELEGATION4args
			    (xdrs, &objp->nfs_argop4_u.opget_dir_delegation))
				return false;
			break;
		case NFS4_OP_GETDEVICEINFO:
			if (!xdr_GETDEVICEINFO4args
			    (xdrs, &objp->nfs_argop4_u.opgetdeviceinfo))
				return false;
			break;
		case NFS4_OP_GETDEVICELIST:
			if (!xdr_GETDEVICELIST4args
			    (xdrs, &objp->nfs_argop4_u.opgetdevicelist))
				return false;
			break;
		case NFS4_OP_LAYOUTCOMMIT:
			if (!xdr_LAYOUTCOMMIT4args
			    (xdrs, &objp->nfs_argop4_u.oplayoutcommit))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_LAYOUTCOMMIT;
			break;
		case NFS4_OP_LAYOUTGET:
			if (!xdr_LAYOUTGET4args
			    (xdrs, &objp->nfs_argop4_u.oplayoutget))
				return false;
			break;
		case NFS4_OP_LAYOUTRETURN:
			if (!xdr_LAYOUTRETURN4args
			    (xdrs, &objp->nfs_argop4_u.oplayoutreturn))
				return false;
			break;
		case NFS4_OP_SECINFO_NO_NAME:
			if (!xdr_SECINFO_NO_NAME4args
			    (xdrs, &objp->nfs_argop4_u.opsecinfo_no_name))
				return false;
			break;
		case NFS4_OP_SEQUENCE:
			if (!xdr_SEQUENCE4args
			    (xdrs, &objp->nfs_argop4_u.opsequence))
				return false;
			break;
		case NFS4_OP_SET_SSV:
			if (!xdr_SET_SSV4args
			    (xdrs, &objp->nfs_argop4_u.opset_ssv))
				return false;
			break;
		case NFS4_OP_TEST_STATEID:
			if (!xdr_TEST_STATEID4args
			    (xdrs, &objp->nfs_argop4_u.optest_stateid))
				return false;
			break;
		case NFS4_OP_WANT_DELEGATION:
			if (!xdr_WANT_DELEGATION4args
			    (xdrs, &objp->nfs_argop4_u.opwant_delegation))
				return false;
			break;
		case NFS4_OP_DESTROY_CLIENTID:
			if (!xdr_DESTROY_CLIENTID4args
			    (xdrs, &objp->nfs_argop4_u.opdestroy_clientid))
				return false;
			break;
		case NFS4_OP_RECLAIM_COMPLETE:
			if (!xdr_RECLAIM_COMPLETE4args
			    (xdrs, &objp->nfs_argop4_u.opreclaim_complete))
				return false;
			break;

		/* NFSv4.2 */
		case NFS4_OP_WRITE_PLUS:
			if (!xdr_WRITE_PLUS4args(xdrs,
					&objp->nfs_argop4_u.opwrite_plus))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_WRITE;
			(lkhd->write)++;
			break;
		case NFS4_OP_READ_PLUS:
			if (!xdr_READ_PLUS4args(xdrs,
					&objp->nfs_argop4_u.opread_plus))
				return false;
			lkhd->flags |= NFS_LOOKAHEAD_READ;
			(lkhd->read)++;
			break;
		case NFS4_OP_SEEK:
			if (!xdr_SEEK4args(xdrs,
					&objp->nfs_argop4_u.opseek))
				return false;
			break;
		case NFS4_OP_IO_ADVISE:
			if (!xdr_IO_ADVISE4args(xdrs,
					&objp->nfs_argop4_u.opio_advise))
				return false;
			break;

		case NFS4_OP_COPY:
			if (!xdr_COPY4args(xdrs, &objp->nfs_argop4_u.opcopy))
				return false;
			break;

		case NFS4_OP_OFFLOAD_ABORT:
		case NFS4_OP_COPY_NOTIFY:
		case NFS4_OP_OFFLOAD_REVOKE:
		case NFS4_OP_OFFLOAD_STATUS:
			break;

		case NFS4_OP_ILLEGAL:
			break;
		default:
			/* Avoid transforming unknown opcodes as RPC
			 * decoder errors
			 */
			objp->argop = NFS4_OP_ILLEGAL;
			break;
		}
		return true;
	}

	static inline bool xdr_nfs_resop4(XDR * xdrs, nfs_resop4 *objp)
	{
		if (!xdr_nfs_opnum4(xdrs, &objp->resop))
			return false;
		switch (objp->resop) {
		case NFS4_OP_ACCESS:
			if (!xdr_ACCESS4res(xdrs, &objp->nfs_resop4_u.opaccess))
				return false;
			break;
		case NFS4_OP_CLOSE:
			if (!xdr_CLOSE4res(xdrs, &objp->nfs_resop4_u.opclose))
				return false;
			break;
		case NFS4_OP_COMMIT:
			if (!xdr_COMMIT4res(xdrs, &objp->nfs_resop4_u.opcommit))
				return false;
			break;
		case NFS4_OP_CREATE:
			if (!xdr_CREATE4res(xdrs, &objp->nfs_resop4_u.opcreate))
				return false;
			break;
		case NFS4_OP_DELEGPURGE:
			if (!xdr_DELEGPURGE4res
			    (xdrs, &objp->nfs_resop4_u.opdelegpurge))
				return false;
			break;
		case NFS4_OP_DELEGRETURN:
			if (!xdr_DELEGRETURN4res
			    (xdrs, &objp->nfs_resop4_u.opdelegreturn))
				return false;
			break;
		case NFS4_OP_GETATTR:
			if (!xdr_GETATTR4res
			    (xdrs, &objp->nfs_resop4_u.opgetattr))
				return false;
			break;
		case NFS4_OP_GETFH:
			if (!xdr_GETFH4res(xdrs, &objp->nfs_resop4_u.opgetfh))
				return false;
			break;
		case NFS4_OP_LINK:
			if (!xdr_LINK4res(xdrs, &objp->nfs_resop4_u.oplink))
				return false;
			break;
		case NFS4_OP_LOCK:
			if (!xdr_LOCK4res(xdrs, &objp->nfs_resop4_u.oplock))
				return false;
			break;
		case NFS4_OP_LOCKT:
			if (!xdr_LOCKT4res(xdrs, &objp->nfs_resop4_u.oplockt))
				return false;
			break;
		case NFS4_OP_LOCKU:
			if (!xdr_LOCKU4res(xdrs, &objp->nfs_resop4_u.oplocku))
				return false;
			break;
		case NFS4_OP_LOOKUP:
			if (!xdr_LOOKUP4res(xdrs, &objp->nfs_resop4_u.oplookup))
				return false;
			break;
		case NFS4_OP_LOOKUPP:
			if (!xdr_LOOKUPP4res
			    (xdrs, &objp->nfs_resop4_u.oplookupp))
				return false;
			break;
		case NFS4_OP_NVERIFY:
			if (!xdr_NVERIFY4res
			    (xdrs, &objp->nfs_resop4_u.opnverify))
				return false;
			break;
		case NFS4_OP_OPEN:
			if (!xdr_OPEN4res(xdrs, &objp->nfs_resop4_u.opopen))
				return false;
			break;
		case NFS4_OP_OPENATTR:
			if (!xdr_OPENATTR4res
			    (xdrs, &objp->nfs_resop4_u.opopenattr))
				return false;
			break;
		case NFS4_OP_OPEN_CONFIRM:
			if (!xdr_OPEN_CONFIRM4res
			    (xdrs, &objp->nfs_resop4_u.opopen_confirm))
				return false;
			break;
		case NFS4_OP_OPEN_DOWNGRADE:
			if (!xdr_OPEN_DOWNGRADE4res
			    (xdrs, &objp->nfs_resop4_u.opopen_downgrade))
				return false;
			break;
		case NFS4_OP_PUTFH:
			if (!xdr_PUTFH4res(xdrs, &objp->nfs_resop4_u.opputfh))
				return false;
			break;
		case NFS4_OP_PUTPUBFH:
			if (!xdr_PUTPUBFH4res
			    (xdrs, &objp->nfs_resop4_u.opputpubfh))
				return false;
			break;
		case NFS4_OP_PUTROOTFH:
			if (!xdr_PUTROOTFH4res
			    (xdrs, &objp->nfs_resop4_u.opputrootfh))
				return false;
			break;
		case NFS4_OP_READ:
			if (!xdr_READ4res(xdrs, &objp->nfs_resop4_u.opread))
				return false;
			break;
		case NFS4_OP_READDIR:
			if (!xdr_READDIR4res
			    (xdrs, &objp->nfs_resop4_u.opreaddir))
				return false;
			break;
		case NFS4_OP_READLINK:
			if (!xdr_READLINK4res
			    (xdrs, &objp->nfs_resop4_u.opreadlink))
				return false;
			break;
		case NFS4_OP_REMOVE:
			if (!xdr_REMOVE4res(xdrs, &objp->nfs_resop4_u.opremove))
				return false;
			break;
		case NFS4_OP_RENAME:
			if (!xdr_RENAME4res(xdrs, &objp->nfs_resop4_u.oprename))
				return false;
			break;
		case NFS4_OP_RENEW:
			if (!xdr_RENEW4res(xdrs, &objp->nfs_resop4_u.oprenew))
				return false;
			break;
		case NFS4_OP_RESTOREFH:
			if (!xdr_RESTOREFH4res
			    (xdrs, &objp->nfs_resop4_u.oprestorefh))
				return false;
			break;
		case NFS4_OP_SAVEFH:
			if (!xdr_SAVEFH4res(xdrs, &objp->nfs_resop4_u.opsavefh))
				return false;
			break;
		case NFS4_OP_SECINFO:
			if (!xdr_SECINFO4res
			    (xdrs, &objp->nfs_resop4_u.opsecinfo))
				return false;
			break;
		case NFS4_OP_SETATTR:
			if (!xdr_SETATTR4res
			    (xdrs, &objp->nfs_resop4_u.opsetattr))
				return false;
			break;
		case NFS4_OP_SETCLIENTID:
			if (!xdr_SETCLIENTID4res
			    (xdrs, &objp->nfs_resop4_u.opsetclientid))
				return false;
			break;
		case NFS4_OP_SETCLIENTID_CONFIRM:
			if (!xdr_SETCLIENTID_CONFIRM4res
			    (xdrs, &objp->nfs_resop4_u.opsetclientid_confirm))
				return false;
			break;
		case NFS4_OP_VERIFY:
			if (!xdr_VERIFY4res(xdrs, &objp->nfs_resop4_u.opverify))
				return false;
			break;
		case NFS4_OP_WRITE:
			if (!xdr_WRITE4res(xdrs, &objp->nfs_resop4_u.opwrite))
				return false;
			break;
		case NFS4_OP_RELEASE_LOCKOWNER:
			if (!xdr_RELEASE_LOCKOWNER4res
			    (xdrs, &objp->nfs_resop4_u.oprelease_lockowner))
				return false;
			break;
		case NFS4_OP_BACKCHANNEL_CTL:
			if (!xdr_BACKCHANNEL_CTL4res
			    (xdrs, &objp->nfs_resop4_u.opbackchannel_ctl))
				return false;
			break;
		case NFS4_OP_BIND_CONN_TO_SESSION:
			if (!xdr_BIND_CONN_TO_SESSION4res
			    (xdrs, &objp->nfs_resop4_u.opbind_conn_to_session))
				return false;
			break;
		case NFS4_OP_EXCHANGE_ID:
			if (!xdr_EXCHANGE_ID4res
			    (xdrs, &objp->nfs_resop4_u.opexchange_id))
				return false;
			break;
		case NFS4_OP_CREATE_SESSION:
			if (!xdr_CREATE_SESSION4res
			    (xdrs, &objp->nfs_resop4_u.opcreate_session))
				return false;
			break;
		case NFS4_OP_DESTROY_SESSION:
			if (!xdr_DESTROY_SESSION4res
			    (xdrs, &objp->nfs_resop4_u.opdestroy_session))
				return false;
			break;
		case NFS4_OP_FREE_STATEID:
			if (!xdr_FREE_STATEID4res
			    (xdrs, &objp->nfs_resop4_u.opfree_stateid))
				return false;
			break;
		case NFS4_OP_GET_DIR_DELEGATION:
			if (!xdr_GET_DIR_DELEGATION4res
			    (xdrs, &objp->nfs_resop4_u.opget_dir_delegation))
				return false;
			break;
		case NFS4_OP_GETDEVICEINFO:
			if (!xdr_GETDEVICEINFO4res
			    (xdrs, &objp->nfs_resop4_u.opgetdeviceinfo))
				return false;
			break;
		case NFS4_OP_GETDEVICELIST:
			if (!xdr_GETDEVICELIST4res
			    (xdrs, &objp->nfs_resop4_u.opgetdevicelist))
				return false;
			break;
		case NFS4_OP_LAYOUTCOMMIT:
			if (!xdr_LAYOUTCOMMIT4res
			    (xdrs, &objp->nfs_resop4_u.oplayoutcommit))
				return false;
			break;
		case NFS4_OP_LAYOUTGET:
			if (!xdr_LAYOUTGET4res
			    (xdrs, &objp->nfs_resop4_u.oplayoutget))
				return false;
			break;
		case NFS4_OP_LAYOUTRETURN:
			if (!xdr_LAYOUTRETURN4res
			    (xdrs, &objp->nfs_resop4_u.oplayoutreturn))
				return false;
			break;
		case NFS4_OP_SECINFO_NO_NAME:
			if (!xdr_SECINFO_NO_NAME4res
			    (xdrs, &objp->nfs_resop4_u.opsecinfo_no_name))
				return false;
			break;
		case NFS4_OP_SEQUENCE:
			if (!xdr_SEQUENCE4res
			    (xdrs, &objp->nfs_resop4_u.opsequence))
				return false;
			break;
		case NFS4_OP_SET_SSV:
			if (!xdr_SET_SSV4res
			    (xdrs, &objp->nfs_resop4_u.opset_ssv))
				return false;
			break;
		case NFS4_OP_TEST_STATEID:
			if (!xdr_TEST_STATEID4res
			    (xdrs, &objp->nfs_resop4_u.optest_stateid))
				return false;
			break;
		case NFS4_OP_WANT_DELEGATION:
			if (!xdr_WANT_DELEGATION4res
			    (xdrs, &objp->nfs_resop4_u.opwant_delegation))
				return false;
			break;
		case NFS4_OP_DESTROY_CLIENTID:
			if (!xdr_DESTROY_CLIENTID4res
			    (xdrs, &objp->nfs_resop4_u.opdestroy_clientid))
				return false;
			break;
		case NFS4_OP_RECLAIM_COMPLETE:
			if (!xdr_RECLAIM_COMPLETE4res
			    (xdrs, &objp->nfs_resop4_u.opreclaim_complete))
				return false;
			break;

		/* NFSv4.2 */
		case NFS4_OP_WRITE_PLUS:
			if (!xdr_WRITE_PLUS4res
			    (xdrs, &objp->nfs_resop4_u.opwrite_plus))
				return false;
			break;
		case NFS4_OP_READ_PLUS:
			if (!xdr_READ_PLUS4res
			    (xdrs, &objp->nfs_resop4_u.opread_plus))
				return false;
			break;
		case NFS4_OP_SEEK:
			if (!xdr_SEEK4res
			    (xdrs, &objp->nfs_resop4_u.opseek))
				return false;
			break;
		case NFS4_OP_IO_ADVISE:
			if (!xdr_IO_ADVISE4res
			    (xdrs, &objp->nfs_resop4_u.opio_advise))
				return false;
			break;
		case NFS4_OP_COPY:
			if (!xdr_COPY4res(xdrs, &objp->nfs_resop4_u.opcopy))
				return false;
			break;

		case NFS4_OP_OFFLOAD_ABORT:
		case NFS4_OP_COPY_NOTIFY:
		case NFS4_OP_OFFLOAD_REVOKE:
		case NFS4_OP_OFFLOAD_STATUS:

		case NFS4_OP_ILLEGAL:
			if (!xdr_ILLEGAL4res
			    (xdrs, &objp->nfs_resop4_u.opillegal))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_COMPOUND4args(XDR * xdrs, COMPOUND4args *objp)
	{
		if (!xdr_utf8str_cs(xdrs, &objp->tag))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->minorversion))
			return false;
		/* decoder hint */
		if (objp->minorversion > 0)
			xdrs->x_flags &= ~XDR_FLAG_CKSUM;
		if (!xdr_array
		    (xdrs, (char **)&objp->argarray.argarray_val,
		     (u_int *) & objp->argarray.argarray_len, XDR_ARRAY_MAXLEN,
		     sizeof(nfs_argop4), (xdrproc_t) xdr_nfs_argop4))
			return false;
		return true;
	}

	static inline bool xdr_COMPOUND4res(XDR * xdrs, COMPOUND4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		if (!xdr_utf8str_cs(xdrs, &objp->tag))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->resarray.resarray_val,
		     (u_int *) & objp->resarray.resarray_len, XDR_ARRAY_MAXLEN,
		     sizeof(nfs_resop4), (xdrproc_t) xdr_nfs_resop4))
			return false;
		return true;
	}

	static inline bool xdr_CB_GETATTR4args(XDR * xdrs,
					       CB_GETATTR4args *objp)
	{
		if (!xdr_nfs_fh4(xdrs, &objp->fh))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->attr_request))
			return false;
		return true;
	}

	static inline bool xdr_CB_GETATTR4resok(XDR * xdrs,
						CB_GETATTR4resok *objp)
	{
		if (!xdr_fattr4(xdrs, &objp->obj_attributes))
			return false;
		return true;
	}

	static inline bool xdr_CB_GETATTR4res(XDR * xdrs, CB_GETATTR4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		switch (objp->status) {
		case NFS4_OK:
			if (!xdr_CB_GETATTR4resok
			    (xdrs, &objp->CB_GETATTR4res_u.resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_CB_RECALL4args(XDR * xdrs, CB_RECALL4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->stateid))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->truncate))
			return false;
		if (!xdr_nfs_fh4(xdrs, &objp->fh))
			return false;
		return true;
	}

	static inline bool xdr_CB_RECALL4res(XDR * xdrs, CB_RECALL4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_CB_ILLEGAL4res(XDR * xdrs, CB_ILLEGAL4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		return true;
	}

	static inline bool xdr_layoutrecall_type4(XDR * xdrs,
						  layoutrecall_type4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_layoutrecall_file4(XDR * xdrs,
						  layoutrecall_file4 *objp)
	{
		if (!xdr_nfs_fh4(xdrs, &objp->lor_fh))
			return false;
		if (!xdr_offset4(xdrs, &objp->lor_offset))
			return false;
		if (!xdr_length4(xdrs, &objp->lor_length))
			return false;
		if (!xdr_stateid4(xdrs, &objp->lor_stateid))
			return false;
		return true;
	}

	static inline bool xdr_layoutrecall4(XDR * xdrs, layoutrecall4 *objp)
	{
		if (!xdr_layoutrecall_type4(xdrs, &objp->lor_recalltype))
			return false;
		switch (objp->lor_recalltype) {
		case LAYOUTRECALL4_FILE:
			if (!xdr_layoutrecall_file4
			    (xdrs, &objp->layoutrecall4_u.lor_layout))
				return false;
			break;
		case LAYOUTRECALL4_FSID:
			if (!xdr_fsid4(xdrs, &objp->layoutrecall4_u.lor_fsid))
				return false;
			break;
		case LAYOUTRECALL4_ALL:
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_CB_LAYOUTRECALL4args(XDR * xdrs,
						    CB_LAYOUTRECALL4args *
						    objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->clora_type))
			return false;
		if (!xdr_layoutiomode4(xdrs, &objp->clora_iomode))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->clora_changed))
			return false;
		if (!xdr_layoutrecall4(xdrs, &objp->clora_recall))
			return false;
		return true;
	}

	static inline bool xdr_CB_LAYOUTRECALL4res(XDR * xdrs,
						   CB_LAYOUTRECALL4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->clorr_status))
			return false;
		return true;
	}

	static inline bool xdr_notify_type4(XDR * xdrs, notify_type4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_notify_entry4(XDR * xdrs, notify_entry4 *objp)
	{
		if (!xdr_component4(xdrs, &objp->ne_file))
			return false;
		if (!xdr_fattr4(xdrs, &objp->ne_attrs))
			return false;
		return true;
	}

	static inline bool xdr_prev_entry4(XDR * xdrs, prev_entry4 *objp)
	{
		if (!xdr_notify_entry4(xdrs, &objp->pe_prev_entry))
			return false;
		if (!xdr_nfs_cookie4(xdrs, &objp->pe_prev_entry_cookie))
			return false;
		return true;
	}

	static inline bool xdr_notify_remove4(XDR * xdrs, notify_remove4 *objp)
	{
		if (!xdr_notify_entry4(xdrs, &objp->nrm_old_entry))
			return false;
		if (!xdr_nfs_cookie4(xdrs, &objp->nrm_old_entry_cookie))
			return false;
		return true;
	}

	static inline bool xdr_notify_add4(XDR * xdrs, notify_add4 *objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->nad_old_entry.nad_old_entry_val,
		     (u_int *) & objp->nad_old_entry.nad_old_entry_len, 1,
		     sizeof(notify_remove4), (xdrproc_t) xdr_notify_remove4))
			return false;
		if (!xdr_notify_entry4(xdrs, &objp->nad_new_entry))
			return false;
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->nad_new_entry_cookie.
		     nad_new_entry_cookie_val,
		     (u_int *) & objp->nad_new_entry_cookie.
		     nad_new_entry_cookie_len, 1, sizeof(nfs_cookie4),
		     (xdrproc_t) xdr_nfs_cookie4))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->nad_prev_entry.nad_prev_entry_val,
		     (u_int *) & objp->nad_prev_entry.nad_prev_entry_len, 1,
		     sizeof(prev_entry4), (xdrproc_t) xdr_prev_entry4))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->nad_last_entry))
			return false;
		return true;
	}

	static inline bool xdr_notify_attr4(XDR * xdrs, notify_attr4 *objp)
	{
		if (!xdr_notify_entry4(xdrs, &objp->na_changed_entry))
			return false;
		return true;
	}

	static inline bool xdr_notify_rename4(XDR * xdrs, notify_rename4 *objp)
	{
		if (!xdr_notify_remove4(xdrs, &objp->nrn_old_entry))
			return false;
		if (!xdr_notify_add4(xdrs, &objp->nrn_new_entry))
			return false;
		return true;
	}

	static inline bool xdr_notify_verifier4(XDR * xdrs,
						notify_verifier4 *objp)
	{
		if (!xdr_verifier4(xdrs, objp->nv_old_cookieverf))
			return false;
		if (!xdr_verifier4(xdrs, objp->nv_new_cookieverf))
			return false;
		return true;
	}

	static inline bool xdr_notify_deviceid_delete4(XDR * xdrs,
						       notify_deviceid_delete4 *
						       objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->ndd_layouttype))
			return false;
		if (!xdr_deviceid4(xdrs, objp->ndd_deviceid))
			return false;
		return true;
	}

	static inline bool xdr_notify_deviceid_change4(XDR * xdrs,
						       notify_deviceid_change4 *
						       objp)
	{
		if (!xdr_layouttype4(xdrs, &objp->ndc_layouttype))
			return false;
		if (!xdr_deviceid4(xdrs, objp->ndc_deviceid))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->ndc_immediate))
			return false;
		return true;
	}

	static inline bool xdr_notifylist4(XDR * xdrs, notifylist4 *objp)
	{
		if (!inline_xdr_bytes
		    (xdrs, (char **)&objp->notifylist4_val,
		     (u_int *) & objp->notifylist4_len, XDR_BYTES_MAXLEN))
			return false;
		return true;
	}

	static inline bool xdr_notifylist_dev(XDR * xdrs, notifylist4 *objp,
					      int type)
	{
		if (!xdr_count4(xdrs, &objp->notifylist4_len))
			return false;
		if (type == NOTIFY_DEVICEID4_DELETE_MASK) {
			if (!xdr_notify_deviceid_delete4
			    (xdrs,
			     (notify_deviceid_delete4 *) objp->notifylist4_val))
				return false;
		} else {
			if (!xdr_notify_deviceid_change4
			    (xdrs,
			     (notify_deviceid_change4 *) objp->notifylist4_val))
				return false;
		}
		return true;
	}

	static inline bool xdr_notify4(XDR * xdrs, notify4 *objp)
	{
		if (!xdr_bitmap4(xdrs, &objp->notify_mask))
			return false;
		if (!xdr_notifylist4(xdrs, &objp->notify_vals))
			return false;
		return true;
	}

	static inline bool xdr_notify_dev(XDR * xdrs, notify4 *objp)
	{
		if (!xdr_bitmap4(xdrs, &objp->notify_mask))
			return false;
		if (!xdr_notifylist_dev
		    (xdrs, &objp->notify_vals, objp->notify_mask.map[0]))
			return false;
		return true;
	}

	static inline bool xdr_CB_NOTIFY4args(XDR * xdrs, CB_NOTIFY4args *objp)
	{
		if (!xdr_stateid4(xdrs, &objp->cna_stateid))
			return false;
		if (!xdr_nfs_fh4(xdrs, &objp->cna_fh))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->cna_changes.cna_changes_val,
		     (u_int *) & objp->cna_changes.cna_changes_len, XDR_ARRAY_MAXLEN,
		     sizeof(notify4), (xdrproc_t) xdr_notify4))
			return false;
		return true;
	}

	static inline bool xdr_CB_NOTIFY4res(XDR * xdrs, CB_NOTIFY4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->cnr_status))
			return false;
		return true;
	}

	static inline bool xdr_CB_PUSH_DELEG4args(XDR * xdrs,
						  CB_PUSH_DELEG4args *objp)
	{
		if (!xdr_nfs_fh4(xdrs, &objp->cpda_fh))
			return false;
		if (!xdr_open_delegation4(xdrs, &objp->cpda_delegation))
			return false;
		return true;
	}

	static inline bool xdr_CB_PUSH_DELEG4res(XDR * xdrs,
						 CB_PUSH_DELEG4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->cpdr_status))
			return false;
		return true;
	}

	static inline bool xdr_CB_RECALL_ANY4args(XDR * xdrs,
						  CB_RECALL_ANY4args *objp)
	{
		if (!inline_xdr_u_int32_t(xdrs, &objp->craa_objects_to_keep))
			return false;
		if (!xdr_bitmap4(xdrs, &objp->craa_type_mask))
			return false;
		return true;
	}

	static inline bool xdr_CB_RECALL_ANY4res(XDR * xdrs,
						 CB_RECALL_ANY4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->crar_status))
			return false;
		return true;
	}

	static inline bool xdr_CB_RECALLABLE_OBJ_AVAIL4args(
					XDR * xdrs,
					CB_RECALLABLE_OBJ_AVAIL4args *objp)
	{
		if (!xdr_CB_RECALL_ANY4args(xdrs, objp))
			return false;
		return true;
	}

	static inline bool xdr_CB_RECALLABLE_OBJ_AVAIL4res(
					XDR * xdrs,
					CB_RECALLABLE_OBJ_AVAIL4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->croa_status))
			return false;
		return true;
	}

	static inline bool xdr_CB_RECALL_SLOT4args(XDR * xdrs,
						   CB_RECALL_SLOT4args *objp)
	{
		if (!xdr_slotid4(xdrs, &objp->rsa_target_highest_slotid))
			return false;
		return true;
	}

	static inline bool xdr_CB_RECALL_SLOT4res(XDR * xdrs,
						  CB_RECALL_SLOT4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->rsr_status))
			return false;
		return true;
	}

	static inline bool xdr_referring_call4(XDR * xdrs,
					       referring_call4 *objp)
	{
		if (!xdr_sequenceid4(xdrs, &objp->rc_sequenceid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->rc_slotid))
			return false;
		return true;
	}

	static inline bool xdr_referring_call_list4(XDR * xdrs,
						    referring_call_list4 *
						    objp)
	{
		if (!xdr_sessionid4(xdrs, objp->rcl_sessionid))
			return false;
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->rcl_referring_calls.
		     rcl_referring_calls_val,
		     (u_int *) & objp->rcl_referring_calls.
		     rcl_referring_calls_len, XDR_ARRAY_MAXLEN, sizeof(referring_call4),
		     (xdrproc_t) xdr_referring_call4))
			return false;
		return true;
	}

	static inline bool xdr_CB_SEQUENCE4args(XDR * xdrs,
						CB_SEQUENCE4args *objp)
	{
		if (!xdr_sessionid4(xdrs, objp->csa_sessionid))
			return false;
		if (!xdr_sequenceid4(xdrs, &objp->csa_sequenceid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->csa_slotid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->csa_highest_slotid))
			return false;
		if (!inline_xdr_bool(xdrs, &objp->csa_cachethis))
			return false;
		if (!xdr_array
		    (xdrs,
		     (char **)&objp->csa_referring_call_lists.
		     csa_referring_call_lists_val,
		     (u_int *) & objp->csa_referring_call_lists.
		     csa_referring_call_lists_len, XDR_ARRAY_MAXLEN,
		     sizeof(referring_call_list4),
		     (xdrproc_t) xdr_referring_call_list4))
			return false;
		return true;
	}

	static inline bool xdr_CB_SEQUENCE4resok(XDR * xdrs,
						 CB_SEQUENCE4resok *objp)
	{
		if (!xdr_sessionid4(xdrs, objp->csr_sessionid))
			return false;
		if (!xdr_sequenceid4(xdrs, &objp->csr_sequenceid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->csr_slotid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->csr_highest_slotid))
			return false;
		if (!xdr_slotid4(xdrs, &objp->csr_target_highest_slotid))
			return false;
		return true;
	}

	static inline bool xdr_CB_SEQUENCE4res(XDR * xdrs,
					       CB_SEQUENCE4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->csr_status))
			return false;
		switch (objp->csr_status) {
		case NFS4_OK:
			if (!xdr_CB_SEQUENCE4resok
			    (xdrs, &objp->CB_SEQUENCE4res_u.csr_resok4))
				return false;
			break;
		default:
			break;
		}
		return true;
	}

	static inline bool xdr_CB_WANTS_CANCELLED4args(XDR * xdrs,
						       CB_WANTS_CANCELLED4args *
						       objp)
	{
		if (!inline_xdr_bool
		    (xdrs, &objp->cwca_contended_wants_cancelled))
			return false;
		if (!inline_xdr_bool
		    (xdrs, &objp->cwca_resourced_wants_cancelled))
			return false;
		return true;
	}

	static inline bool xdr_CB_WANTS_CANCELLED4res(XDR * xdrs,
						      CB_WANTS_CANCELLED4res *
						      objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->cwcr_status))
			return false;
		return true;
	}

	static inline bool xdr_CB_NOTIFY_LOCK4args(XDR * xdrs,
						   CB_NOTIFY_LOCK4args *objp)
	{
		if (!xdr_nfs_fh4(xdrs, &objp->cnla_fh))
			return false;
		if (!xdr_lock_owner4(xdrs, &objp->cnla_lock_owner))
			return false;
		return true;
	}

	static inline bool xdr_CB_NOTIFY_LOCK4res(XDR * xdrs,
						  CB_NOTIFY_LOCK4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->cnlr_status))
			return false;
		return true;
	}

	static inline bool xdr_notify_deviceid_type4(XDR * xdrs,
						     notify_deviceid_type4 *
						     objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_CB_NOTIFY_DEVICEID4args(XDR * xdrs,
						       CB_NOTIFY_DEVICEID4args *
						       objp)
	{
		if (!xdr_array
		    (xdrs, (char **)&objp->cnda_changes.cnda_changes_val,
		     (u_int *) & objp->cnda_changes.cnda_changes_len, XDR_ARRAY_MAXLEN,
		     sizeof(notify4), (xdrproc_t) xdr_notify_dev))
			return false;
		return true;
	}

	static inline bool xdr_CB_NOTIFY_DEVICEID4res(XDR * xdrs,
						      CB_NOTIFY_DEVICEID4res *
						      objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->cndr_status))
			return false;
		return true;
	}

/* Callback operations new to NFSv4.1 */

	static inline bool xdr_nfs_cb_opnum4(XDR * xdrs, nfs_cb_opnum4 *objp)
	{
		if (!inline_xdr_enum(xdrs, (enum_t *) objp))
			return false;
		return true;
	}

	static inline bool xdr_nfs_cb_argop4(XDR * xdrs, nfs_cb_argop4 *objp)
	{
		if (!inline_xdr_u_int(xdrs, &objp->argop))
			return false;
		switch (objp->argop) {
		case NFS4_OP_CB_GETATTR:
			if (!xdr_CB_GETATTR4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbgetattr))
				return false;
			break;
		case NFS4_OP_CB_RECALL:
			if (!xdr_CB_RECALL4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbrecall))
				return false;
			break;
		case NFS4_OP_CB_LAYOUTRECALL:
			if (!xdr_CB_LAYOUTRECALL4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcblayoutrecall))
				return false;
			break;
		case NFS4_OP_CB_NOTIFY:
			if (!xdr_CB_NOTIFY4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbnotify))
				return false;
			break;
		case NFS4_OP_CB_PUSH_DELEG:
			if (!xdr_CB_PUSH_DELEG4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbpush_deleg))
				return false;
			break;
		case NFS4_OP_CB_RECALL_ANY:
			if (!xdr_CB_RECALL_ANY4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbrecall_any))
				return false;
			break;
		case NFS4_OP_CB_RECALLABLE_OBJ_AVAIL:
			if (!xdr_CB_RECALLABLE_OBJ_AVAIL4args
			    (xdrs,
			     &objp->nfs_cb_argop4_u.opcbrecallable_obj_avail))
				return false;
			break;
		case NFS4_OP_CB_RECALL_SLOT:
			if (!xdr_CB_RECALL_SLOT4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbrecall_slot))
				return false;
			break;
		case NFS4_OP_CB_SEQUENCE:
			if (!xdr_CB_SEQUENCE4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbsequence))
				return false;
			break;
		case NFS4_OP_CB_WANTS_CANCELLED:
			if (!xdr_CB_WANTS_CANCELLED4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbwants_cancelled))
				return false;
			break;
		case NFS4_OP_CB_NOTIFY_LOCK:
			if (!xdr_CB_NOTIFY_LOCK4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbnotify_lock))
				return false;
			break;
		case NFS4_OP_CB_NOTIFY_DEVICEID:
			if (!xdr_CB_NOTIFY_DEVICEID4args
			    (xdrs, &objp->nfs_cb_argop4_u.opcbnotify_deviceid))
				return false;
			break;
		case NFS4_OP_CB_ILLEGAL:
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_nfs_cb_resop4(XDR * xdrs, nfs_cb_resop4 *objp)
	{
		if (!inline_xdr_u_int(xdrs, &objp->resop))
			return false;
		switch (objp->resop) {
		case NFS4_OP_CB_GETATTR:
			if (!xdr_CB_GETATTR4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbgetattr))
				return false;
			break;
		case NFS4_OP_CB_RECALL:
			if (!xdr_CB_RECALL4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbrecall))
				return false;
			break;
		case NFS4_OP_CB_LAYOUTRECALL:
			if (!xdr_CB_LAYOUTRECALL4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcblayoutrecall))
				return false;
			break;
		case NFS4_OP_CB_NOTIFY:
			if (!xdr_CB_NOTIFY4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbnotify))
				return false;
			break;
		case NFS4_OP_CB_PUSH_DELEG:
			if (!xdr_CB_PUSH_DELEG4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbpush_deleg))
				return false;
			break;
		case NFS4_OP_CB_RECALL_ANY:
			if (!xdr_CB_RECALL_ANY4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbrecall_any))
				return false;
			break;
		case NFS4_OP_CB_RECALLABLE_OBJ_AVAIL:
			if (!xdr_CB_RECALLABLE_OBJ_AVAIL4res
			    (xdrs,
			     &objp->nfs_cb_resop4_u.opcbrecallable_obj_avail))
				return false;
			break;
		case NFS4_OP_CB_RECALL_SLOT:
			if (!xdr_CB_RECALL_SLOT4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbrecall_slot))
				return false;
			break;
		case NFS4_OP_CB_SEQUENCE:
			if (!xdr_CB_SEQUENCE4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbsequence))
				return false;
			break;
		case NFS4_OP_CB_WANTS_CANCELLED:
			if (!xdr_CB_WANTS_CANCELLED4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbwants_cancelled))
				return false;
			break;
		case NFS4_OP_CB_NOTIFY_LOCK:
			if (!xdr_CB_NOTIFY_LOCK4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbnotify_lock))
				return false;
			break;
		case NFS4_OP_CB_NOTIFY_DEVICEID:
			if (!xdr_CB_NOTIFY_DEVICEID4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbnotify_deviceid))
				return false;
			break;
		case NFS4_OP_CB_ILLEGAL:
			if (!xdr_CB_ILLEGAL4res
			    (xdrs, &objp->nfs_cb_resop4_u.opcbillegal))
				return false;
			break;
		default:
			return false;
		}
		return true;
	}

	static inline bool xdr_CB_COMPOUND4args(XDR * xdrs,
						CB_COMPOUND4args *objp)
	{
		if (!xdr_utf8str_cs(xdrs, &objp->tag))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->minorversion))
			return false;
		if (!inline_xdr_u_int32_t(xdrs, &objp->callback_ident))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->argarray.argarray_val,
		     (u_int *) & objp->argarray.argarray_len, XDR_ARRAY_MAXLEN,
		     sizeof(nfs_cb_argop4), (xdrproc_t) xdr_nfs_cb_argop4))
			return false;
		return true;
	}

	static inline bool xdr_CB_COMPOUND4res(XDR * xdrs,
					       CB_COMPOUND4res *objp)
	{
		if (!xdr_nfsstat4(xdrs, &objp->status))
			return false;
		if (!xdr_utf8str_cs(xdrs, &objp->tag))
			return false;
		if (!xdr_array
		    (xdrs, (char **)&objp->resarray.resarray_val,
		     (u_int *) & objp->resarray.resarray_len, XDR_ARRAY_MAXLEN,
		     sizeof(nfs_cb_resop4), (xdrproc_t) xdr_nfs_cb_resop4))
			return false;
		return true;
	}

#if 1
	static inline bool xdr_nfs_ftype4(XDR *, nfs_ftype4 *);
	static inline bool xdr_nfsstat4(XDR *, nfsstat4 *);
	static inline bool xdr_attrlist4(XDR *, attrlist4 *);
	static inline bool xdr_bitmap4(XDR *, struct bitmap4 *);
	static inline bool xdr_changeid4(XDR *, changeid4 *);
	static inline bool xdr_clientid4(XDR *, clientid4 *);
	static inline bool xdr_count4(XDR *, count4 *);
	static inline bool xdr_length4(XDR *, length4 *);
	static inline bool xdr_mode4(XDR *, mode4 *);
	static inline bool xdr_nfs_cookie4(XDR *, nfs_cookie4 *);
	static inline bool xdr_nfs_fh4(XDR *, nfs_fh4 *);
	static inline bool xdr_offset4(XDR *, offset4 *);
	static inline bool xdr_qop4(XDR *, qop4 *);
	static inline bool xdr_sec_oid4(XDR *, sec_oid4 *);
	static inline bool xdr_sequenceid4(XDR *, sequenceid4 *);
	static inline bool xdr_seqid4(XDR *, seqid4 *);
	static inline bool xdr_sessionid4(XDR *, sessionid4);
	static inline bool xdr_slotid4(XDR *, slotid4 *);
	static inline bool xdr_utf8string(XDR *, utf8string *);
	static inline bool xdr_utf8str_cis(XDR *, utf8str_cis *);
	static inline bool xdr_utf8str_cs(XDR *, utf8str_cs *);
	static inline bool xdr_utf8str_mixed(XDR *, utf8str_mixed *);
	static inline bool xdr_component4(XDR *, component4 *);
	static inline bool xdr_linktext4(XDR *, linktext4 *);
	static inline bool xdr_pathname4(XDR *, pathname4 *);
	static inline bool xdr_verifier4(XDR *, verifier4);
	static inline bool xdr_nfstime4(XDR *, nfstime4 *);
	static inline bool xdr_time_how4(XDR *, time_how4 *);
	static inline bool xdr_settime4(XDR *, settime4 *);
	static inline bool xdr_nfs_lease4(XDR *, nfs_lease4 *);
	static inline bool xdr_fsid4(XDR *, fsid4 *);
	static inline bool xdr_change_policy4(XDR *, change_policy4 *);
	static inline bool xdr_fs_location4(XDR *, fs_location4 *);
	static inline bool xdr_fs_locations4(XDR *, fs_locations4 *);
	static inline bool xdr_acetype4(XDR *, acetype4 *);
	static inline bool xdr_aceflag4(XDR *, aceflag4 *);
	static inline bool xdr_acemask4(XDR *, acemask4 *);
	static inline bool xdr_nfsace4(XDR *, nfsace4 *);
	static inline bool xdr_aclflag4(XDR *, aclflag4 *);
	static inline bool xdr_nfsacl41(XDR *, nfsacl41 *);
	static inline bool xdr_mode_masked4(XDR *, mode_masked4 *);
	static inline bool xdr_specdata4(XDR *, specdata4 *);
	static inline bool xdr_netaddr4(XDR *, netaddr4 *);
	static inline bool xdr_nfs_impl_id4(XDR *, nfs_impl_id4 *);
	static inline bool xdr_stateid4(XDR *, stateid4 *);
	static inline bool xdr_layouttype4(XDR *, layouttype4 *);
	static inline bool xdr_layout_content4(XDR *, layout_content4 *);
	static inline bool xdr_layouthint4(XDR *, layouthint4 *);
	static inline bool xdr_layoutiomode4(XDR *, layoutiomode4 *);
	static inline bool xdr_layout4(XDR *, layout4 *);
	static inline bool xdr_deviceid4(XDR *, deviceid4);
	static inline bool xdr_device_addr4(XDR *, device_addr4 *);
	static inline bool xdr_layoutupdate4(XDR *, layoutupdate4 *);
	static inline bool xdr_layoutreturn_type4(XDR *, layoutreturn_type4 *);
	static inline bool xdr_layoutreturn_file4(XDR *, layoutreturn_file4 *);
	static inline bool xdr_layoutreturn4(XDR *, layoutreturn4 *);
	static inline bool xdr_fs4_status_type(XDR *, fs4_status_type *);
	static inline bool xdr_fs4_status(XDR *, fs4_status *);
	static inline bool xdr_threshold4_read_size(XDR *,
						    threshold4_read_size *);
	static inline bool xdr_threshold4_write_size(XDR *,
						     threshold4_write_size *);
	static inline bool xdr_threshold4_read_iosize(XDR *,
						      threshold4_read_iosize *);
	static inline bool xdr_threshold4_write_iosize(XDR *,
						       threshold4_write_iosize
						       *);
	static inline bool xdr_threshold_item4(XDR *, threshold_item4 *);
	static inline bool xdr_mdsthreshold4(XDR *, mdsthreshold4 *);
	static inline bool xdr_retention_get4(XDR *, retention_get4 *);
	static inline bool xdr_retention_set4(XDR *, retention_set4 *);
	static inline bool xdr_fs_charset_cap4(XDR *, fs_charset_cap4 *);
	static inline bool xdr_fattr4_supported_attrs(XDR *,
						      fattr4_supported_attrs *);
	static inline bool xdr_fattr4_type(XDR *, fattr4_type *);
	static inline bool xdr_fattr4_fh_expire_type(XDR *,
						     fattr4_fh_expire_type *);
	static inline bool xdr_fattr4_change(XDR *, fattr4_change *);
	static inline bool xdr_fattr4_size(XDR *, fattr4_size *);
	static inline bool xdr_fattr4_link_support(XDR *,
						   fattr4_link_support *);
	static inline bool xdr_fattr4_symlink_support(XDR *,
						      fattr4_symlink_support *);
	static inline bool xdr_fattr4_named_attr(XDR *, fattr4_named_attr *);
	static inline bool xdr_fattr4_fsid(XDR *, fattr4_fsid *);
	static inline bool xdr_fattr4_unique_handles(XDR *,
						     fattr4_unique_handles *);
	static inline bool xdr_fattr4_lease_time(XDR *, fattr4_lease_time *);
	static inline bool xdr_fattr4_rdattr_error(XDR *,
						   fattr4_rdattr_error *);
	static inline bool xdr_fattr4_acl(XDR *, fattr4_acl *);
	static inline bool xdr_fattr4_aclsupport(XDR *, fattr4_aclsupport *);
	static inline bool xdr_fattr4_archive(XDR *, fattr4_archive *);
	static inline bool xdr_fattr4_cansettime(XDR *, fattr4_cansettime *);
	static inline bool xdr_fattr4_case_insensitive(XDR *,
						       fattr4_case_insensitive
						       *);
	static inline bool xdr_fattr4_case_preserving(XDR *,
						      fattr4_case_preserving *);
	static inline bool xdr_fattr4_chown_restricted(XDR *,
						       fattr4_chown_restricted
						       *);
	static inline bool xdr_fattr4_fileid(XDR *, fattr4_fileid *);
	static inline bool xdr_fattr4_files_avail(XDR *, fattr4_files_avail *);
	static inline bool xdr_fattr4_filehandle(XDR *, fattr4_filehandle *);
	static inline bool xdr_fattr4_files_free(XDR *, fattr4_files_free *);
	static inline bool xdr_fattr4_files_total(XDR *, fattr4_files_total *);
	static inline bool xdr_fattr4_fs_locations(XDR *,
						   fattr4_fs_locations *);
	static inline bool xdr_fattr4_hidden(XDR *, fattr4_hidden *);
	static inline bool xdr_fattr4_homogeneous(XDR *, fattr4_homogeneous *);
	static inline bool xdr_fattr4_maxfilesize(XDR *, fattr4_maxfilesize *);
	static inline bool xdr_fattr4_maxlink(XDR *, fattr4_maxlink *);
	static inline bool xdr_fattr4_maxname(XDR *, fattr4_maxname *);
	static inline bool xdr_fattr4_maxread(XDR *, fattr4_maxread *);
	static inline bool xdr_fattr4_maxwrite(XDR *, fattr4_maxwrite *);
	static inline bool xdr_fattr4_mimetype(XDR *, fattr4_mimetype *);
	static inline bool xdr_fattr4_mode(XDR *, fattr4_mode *);
	static inline bool xdr_fattr4_mode_set_masked(XDR *,
						      fattr4_mode_set_masked *);
	static inline bool xdr_fattr4_mounted_on_fileid(XDR *,
							fattr4_mounted_on_fileid
							*);
	static inline bool xdr_fattr4_no_trunc(XDR *, fattr4_no_trunc *);
	static inline bool xdr_fattr4_numlinks(XDR *, fattr4_numlinks *);
	static inline bool xdr_fattr4_owner(XDR *, fattr4_owner *);
	static inline bool xdr_fattr4_owner_group(XDR *, fattr4_owner_group *);
	static inline bool xdr_fattr4_quota_avail_hard(XDR *,
						       fattr4_quota_avail_hard
						       *);
	static inline bool xdr_fattr4_quota_avail_soft(XDR *,
						       fattr4_quota_avail_soft
						       *);
	static inline bool xdr_fattr4_quota_used(XDR *, fattr4_quota_used *);
	static inline bool xdr_fattr4_rawdev(XDR *, fattr4_rawdev *);
	static inline bool xdr_fattr4_space_avail(XDR *, fattr4_space_avail *);
	static inline bool xdr_fattr4_space_free(XDR *, fattr4_space_free *);
	static inline bool xdr_fattr4_space_total(XDR *, fattr4_space_total *);
	static inline bool xdr_fattr4_space_used(XDR *, fattr4_space_used *);
	static inline bool xdr_fattr4_system(XDR *, fattr4_system *);
	static inline bool xdr_fattr4_time_access(XDR *, fattr4_time_access *);
	static inline bool xdr_fattr4_time_access_set(XDR *,
						      fattr4_time_access_set *);
	static inline bool xdr_fattr4_time_backup(XDR *, fattr4_time_backup *);
	static inline bool xdr_fattr4_time_create(XDR *, fattr4_time_create *);
	static inline bool xdr_fattr4_time_delta(XDR *, fattr4_time_delta *);
	static inline bool xdr_fattr4_time_metadata(XDR *,
						    fattr4_time_metadata *);
	static inline bool xdr_fattr4_time_modify(XDR *, fattr4_time_modify *);
	static inline bool xdr_fattr4_time_modify_set(XDR *,
						      fattr4_time_modify_set *);
	static inline bool xdr_fattr4_suppattr_exclcreat(
		XDR *,
		fattr4_suppattr_exclcreat
		*);
	static inline bool xdr_fattr4_dir_notif_delay(XDR *,
						      fattr4_dir_notif_delay *);
	static inline bool xdr_fattr4_dirent_notif_delay(
		XDR *,
		fattr4_dirent_notif_delay
		*);
	static inline bool xdr_fattr4_fs_layout_types(XDR *,
						      fattr4_fs_layout_types *);
	static inline bool xdr_fattr4_fs_status(XDR *, fattr4_fs_status *);
	static inline bool xdr_fattr4_fs_charset_cap(XDR *,
						     fattr4_fs_charset_cap *);
	static inline bool xdr_fattr4_layout_alignment(XDR *,
						       fattr4_layout_alignment
						       *);
	static inline bool xdr_fattr4_layout_blksize(XDR *,
						     fattr4_layout_blksize *);
	static inline bool xdr_fattr4_layout_hint(XDR *, fattr4_layout_hint *);
	static inline bool xdr_fattr4_layout_types(XDR *,
						   fattr4_layout_types *);
	static inline bool xdr_fattr4_mdsthreshold(XDR *,
						   fattr4_mdsthreshold *);
	static inline bool xdr_fattr4_retention_get(XDR *,
						    fattr4_retention_get *);
	static inline bool xdr_fattr4_retention_set(XDR *,
						    fattr4_retention_set *);
	static inline bool xdr_fattr4_retentevt_get(XDR *,
						    fattr4_retentevt_get *);
	static inline bool xdr_fattr4_retentevt_set(XDR *,
						    fattr4_retentevt_set *);
	static inline bool xdr_fattr4_retention_hold(XDR *,
						     fattr4_retention_hold *);
	static inline bool xdr_fattr4_dacl(XDR *, fattr4_dacl *);
	static inline bool xdr_fattr4_sacl(XDR *, fattr4_sacl *);
	static inline bool xdr_fattr4_change_policy(XDR *,
						    fattr4_change_policy *);
	static inline bool xdr_fattr4(XDR *, fattr4 *);
	static inline bool xdr_change_info4(XDR *, change_info4 *);
	static inline bool xdr_clientaddr4(XDR *, clientaddr4 *);
	static inline bool xdr_cb_client4(XDR *, cb_client4 *);
	static inline bool xdr_nfs_client_id4(XDR *, nfs_client_id4 *);
	static inline bool xdr_client_owner4(XDR *, client_owner4 *);
	static inline bool xdr_server_owner4(XDR *, server_owner4 *);
	static inline bool xdr_state_owner4(XDR *, state_owner4 *);
	static inline bool xdr_open_owner4(XDR *, open_owner4 *);
	static inline bool xdr_lock_owner4(XDR *, lock_owner4 *);
	static inline bool xdr_nfs_lock_type4(XDR *, nfs_lock_type4 *);
	static inline bool xdr_ssv_subkey4(XDR *, ssv_subkey4 *);
	static inline bool xdr_ssv_mic_plain_tkn4(XDR *, ssv_mic_plain_tkn4 *);
	static inline bool xdr_ssv_mic_tkn4(XDR *, ssv_mic_tkn4 *);
	static inline bool xdr_ssv_seal_plain_tkn4(XDR *,
						   ssv_seal_plain_tkn4 *);
	static inline bool xdr_ssv_seal_cipher_tkn4(XDR *,
						    ssv_seal_cipher_tkn4 *);
	static inline bool xdr_fs_locations_server4(XDR *,
						    fs_locations_server4 *);
	static inline bool xdr_fs_locations_item4(XDR *, fs_locations_item4 *);
	static inline bool xdr_fs_locations_info4(XDR *, fs_locations_info4 *);
	static inline bool xdr_fattr4_fs_locations_info(XDR *,
							fattr4_fs_locations_info
							*);
	static inline bool xdr_nfl_util4(XDR *, nfl_util4 *);
	static inline bool xdr_filelayout_hint_care4(XDR *,
						     filelayout_hint_care4 *);
	static inline bool xdr_nfsv4_1_file_layouthint4(XDR *,
							nfsv4_1_file_layouthint4
							*);
	static inline bool xdr_multipath_list4(XDR *, multipath_list4 *);
	static inline bool xdr_nfsv4_1_file_layout_ds_addr4(
		XDR *,
		nfsv4_1_file_layout_ds_addr4
		*);
	static inline bool xdr_nfsv4_1_file_layout4(XDR *,
						    nfsv4_1_file_layout4 *);
	static inline bool xdr_ACCESS4args(XDR *, ACCESS4args *);
	static inline bool xdr_ACCESS4resok(XDR *, ACCESS4resok *);
	static inline bool xdr_ACCESS4res(XDR *, ACCESS4res *);
	static inline bool xdr_CLOSE4args(XDR *, CLOSE4args *);
	static inline bool xdr_CLOSE4res(XDR *, CLOSE4res *);
	static inline bool xdr_COMMIT4args(XDR *, COMMIT4args *);
	static inline bool xdr_COMMIT4resok(XDR *, COMMIT4resok *);
	static inline bool xdr_COMMIT4res(XDR *, COMMIT4res *);
	static inline bool xdr_createtype4(XDR *, createtype4 *);
	static inline bool xdr_CREATE4args(XDR *, CREATE4args *);
	static inline bool xdr_CREATE4resok(XDR *, CREATE4resok *);
	static inline bool xdr_CREATE4res(XDR *, CREATE4res *);
	static inline bool xdr_DELEGPURGE4args(XDR *, DELEGPURGE4args *);
	static inline bool xdr_DELEGPURGE4res(XDR *, DELEGPURGE4res *);
	static inline bool xdr_DELEGRETURN4args(XDR *, DELEGRETURN4args *);
	static inline bool xdr_DELEGRETURN4res(XDR *, DELEGRETURN4res *);
	static inline bool xdr_GETATTR4args(XDR *, GETATTR4args *);
	static inline bool xdr_GETATTR4resok(XDR *, GETATTR4resok *);
	static inline bool xdr_GETATTR4res(XDR *, GETATTR4res *);
	static inline bool xdr_GETFH4resok(XDR *, GETFH4resok *);
	static inline bool xdr_GETFH4res(XDR *, GETFH4res *);
	static inline bool xdr_LINK4args(XDR *, LINK4args *);
	static inline bool xdr_LINK4resok(XDR *, LINK4resok *);
	static inline bool xdr_LINK4res(XDR *, LINK4res *);
	static inline bool xdr_open_to_lock_owner4(XDR *,
						   open_to_lock_owner4 *);
	static inline bool xdr_exist_lock_owner4(XDR *, exist_lock_owner4 *);
	static inline bool xdr_locker4(XDR *, locker4 *);
	static inline bool xdr_LOCK4args(XDR *, LOCK4args *);
	static inline bool xdr_LOCK4denied(XDR *, LOCK4denied *);
	static inline bool xdr_LOCK4resok(XDR *, LOCK4resok *);
	static inline bool xdr_LOCK4res(XDR *, LOCK4res *);
	static inline bool xdr_LOCKT4args(XDR *, LOCKT4args *);
	static inline bool xdr_LOCKT4res(XDR *, LOCKT4res *);
	static inline bool xdr_LOCKU4args(XDR *, LOCKU4args *);
	static inline bool xdr_LOCKU4res(XDR *, LOCKU4res *);
	static inline bool xdr_LOOKUP4args(XDR *, LOOKUP4args *);
	static inline bool xdr_LOOKUP4res(XDR *, LOOKUP4res *);
	static inline bool xdr_LOOKUPP4res(XDR *, LOOKUPP4res *);
	static inline bool xdr_NVERIFY4args(XDR *, NVERIFY4args *);
	static inline bool xdr_NVERIFY4res(XDR *, NVERIFY4res *);
	static inline bool xdr_createmode4(XDR *, createmode4 *);
	static inline bool xdr_creatverfattr(XDR *, creatverfattr *);
	static inline bool xdr_createhow4(XDR *, createhow4 *);
	static inline bool xdr_opentype4(XDR *, opentype4 *);
	static inline bool xdr_openflag4(XDR *, openflag4 *);
	static inline bool xdr_limit_by4(XDR *, limit_by4 *);
	static inline bool xdr_nfs_modified_limit4(XDR *,
						   nfs_modified_limit4 *);
	static inline bool xdr_nfs_space_limit4(XDR *, nfs_space_limit4 *);
	static inline bool xdr_open_delegation_type4(XDR *,
						     open_delegation_type4 *);
	static inline bool xdr_open_claim_type4(XDR *, open_claim_type4 *);
	static inline bool xdr_open_claim_delegate_cur4(XDR *,
							open_claim_delegate_cur4
							*);
	static inline bool xdr_open_claim4(XDR *, open_claim4 *);
	static inline bool xdr_OPEN4args(XDR *, OPEN4args *);
	static inline bool xdr_open_read_delegation4(XDR *,
						     open_read_delegation4 *);
	static inline bool xdr_open_write_delegation4(XDR *,
						      open_write_delegation4 *);
	static inline bool xdr_why_no_delegation4(XDR *, why_no_delegation4 *);
	static inline bool xdr_open_none_delegation4(XDR *,
						     open_none_delegation4 *);
	static inline bool xdr_open_delegation4(XDR *, open_delegation4 *);
	static inline bool xdr_OPEN4resok(XDR *, OPEN4resok *);
	static inline bool xdr_OPEN4res(XDR *, OPEN4res *);
	static inline bool xdr_OPENATTR4args(XDR *, OPENATTR4args *);
	static inline bool xdr_OPENATTR4res(XDR *, OPENATTR4res *);
	static inline bool xdr_OPEN_CONFIRM4args(XDR *, OPEN_CONFIRM4args *);
	static inline bool xdr_OPEN_CONFIRM4resok(XDR *, OPEN_CONFIRM4resok *);
	static inline bool xdr_OPEN_CONFIRM4res(XDR *, OPEN_CONFIRM4res *);
	static inline bool xdr_OPEN_DOWNGRADE4args(XDR *,
						   OPEN_DOWNGRADE4args *);
	static inline bool xdr_OPEN_DOWNGRADE4resok(XDR *,
						    OPEN_DOWNGRADE4resok *);
	static inline bool xdr_OPEN_DOWNGRADE4res(XDR *, OPEN_DOWNGRADE4res *);
	static inline bool xdr_PUTFH4args(XDR *, PUTFH4args *);
	static inline bool xdr_PUTFH4res(XDR *, PUTFH4res *);
	static inline bool xdr_PUTPUBFH4res(XDR *, PUTPUBFH4res *);
	static inline bool xdr_PUTROOTFH4res(XDR *, PUTROOTFH4res *);
	static inline bool xdr_READ4args(XDR *, READ4args *);
	static inline bool xdr_READ4resok(XDR *, READ4resok *);
	static inline bool xdr_READ4res(XDR *, READ4res *);
	static inline bool xdr_READDIR4args(XDR *, READDIR4args *);
	static inline bool xdr_entry4(XDR *, entry4 *);
	static inline bool xdr_dirlist4(XDR *, dirlist4 *);
	static inline bool xdr_READDIR4resok(XDR *, READDIR4resok *);
	static inline bool xdr_READDIR4res(XDR *, READDIR4res *);
	static inline bool xdr_READLINK4resok(XDR *, READLINK4resok *);
	static inline bool xdr_READLINK4res(XDR *, READLINK4res *);
	static inline bool xdr_REMOVE4args(XDR *, REMOVE4args *);
	static inline bool xdr_REMOVE4resok(XDR *, REMOVE4resok *);
	static inline bool xdr_REMOVE4res(XDR *, REMOVE4res *);
	static inline bool xdr_RENAME4args(XDR *, RENAME4args *);
	static inline bool xdr_RENAME4resok(XDR *, RENAME4resok *);
	static inline bool xdr_RENAME4res(XDR *, RENAME4res *);
	static inline bool xdr_RENEW4args(XDR *, RENEW4args *);
	static inline bool xdr_RENEW4res(XDR *, RENEW4res *);
	static inline bool xdr_RESTOREFH4res(XDR *, RESTOREFH4res *);
	static inline bool xdr_SAVEFH4res(XDR *, SAVEFH4res *);
	static inline bool xdr_SECINFO4args(XDR *, SECINFO4args *);
	static inline bool xdr_rpc_gss_svc_t(XDR *, rpc_gss_svc_t *);
	static inline bool xdr_rpcsec_gss_info(XDR *, rpcsec_gss_info *);
	static inline bool xdr_secinfo4(XDR *, secinfo4 *);
	static inline bool xdr_SECINFO4resok(XDR *, SECINFO4resok *);
	static inline bool xdr_SECINFO4res(XDR *, SECINFO4res *);
	static inline bool xdr_SETATTR4args(XDR *, SETATTR4args *);
	static inline bool xdr_SETATTR4res(XDR *, SETATTR4res *);
	static inline bool xdr_SETCLIENTID4args(XDR *, SETCLIENTID4args *);
	static inline bool xdr_SETCLIENTID4resok(XDR *, SETCLIENTID4resok *);
	static inline bool xdr_SETCLIENTID4res(XDR *, SETCLIENTID4res *);
	static inline bool xdr_SETCLIENTID_CONFIRM4args(XDR *,
							SETCLIENTID_CONFIRM4args
							*);
	static inline bool xdr_SETCLIENTID_CONFIRM4res(XDR *,
						       SETCLIENTID_CONFIRM4res
						       *);
	static inline bool xdr_VERIFY4args(XDR *, VERIFY4args *);
	static inline bool xdr_VERIFY4res(XDR *, VERIFY4res *);
	static inline bool xdr_stable_how4(XDR *, stable_how4 *);
	static inline bool xdr_WRITE4args(XDR *, WRITE4args *);
	static inline bool xdr_WRITE4resok(XDR *, WRITE4resok *);
	static inline bool xdr_WRITE4res(XDR *, WRITE4res *);
	static inline bool xdr_RELEASE_LOCKOWNER4args(XDR *,
						      RELEASE_LOCKOWNER4args *);
	static inline bool xdr_RELEASE_LOCKOWNER4res(XDR *,
						     RELEASE_LOCKOWNER4res *);
	static inline bool xdr_ILLEGAL4res(XDR *, ILLEGAL4res *);
	static inline bool xdr_gsshandle4_t(XDR *, gsshandle4_t *);
	static inline bool xdr_gss_cb_handles4(XDR *, gss_cb_handles4 *);
	static inline bool xdr_callback_sec_parms4(XDR *,
						   callback_sec_parms4 *);
	static inline bool xdr_BACKCHANNEL_CTL4args(XDR *,
						    BACKCHANNEL_CTL4args *);
	static inline bool xdr_BACKCHANNEL_CTL4res(XDR *,
						   BACKCHANNEL_CTL4res *);
	static inline bool xdr_channel_dir_from_client4(XDR *,
							channel_dir_from_client4
							*);
	static inline bool xdr_BIND_CONN_TO_SESSION4args(
		XDR *,
		BIND_CONN_TO_SESSION4args
		*);
	static inline bool xdr_channel_dir_from_server4(
		XDR *,
		channel_dir_from_server4
		*);
	static inline bool xdr_BIND_CONN_TO_SESSION4resok(
		XDR *,
		BIND_CONN_TO_SESSION4resok
		*);
	static inline bool xdr_BIND_CONN_TO_SESSION4res(XDR *,
							BIND_CONN_TO_SESSION4res
							*);
	static inline bool xdr_state_protect_ops4(XDR *, state_protect_ops4 *);
	static inline bool xdr_ssv_sp_parms4(XDR *, ssv_sp_parms4 *);
	static inline bool xdr_state_protect_how4(XDR *, state_protect_how4 *);
	static inline bool xdr_state_protect4_a(XDR *, state_protect4_a *);
	static inline bool xdr_EXCHANGE_ID4args(XDR *, EXCHANGE_ID4args *);
	static inline bool xdr_ssv_prot_info4(XDR *, ssv_prot_info4 *);
	static inline bool xdr_state_protect4_r(XDR *, state_protect4_r *);
	static inline bool xdr_EXCHANGE_ID4resok(XDR *, EXCHANGE_ID4resok *);
	static inline bool xdr_EXCHANGE_ID4res(XDR *, EXCHANGE_ID4res *);
	static inline bool xdr_channel_attrs4(XDR *, channel_attrs4 *);
	static inline bool xdr_CREATE_SESSION4args(XDR *,
						   CREATE_SESSION4args *);
	static inline bool xdr_CREATE_SESSION4resok(XDR *,
						    CREATE_SESSION4resok *);
	static inline bool xdr_CREATE_SESSION4res(XDR *, CREATE_SESSION4res *);
	static inline bool xdr_DESTROY_SESSION4args(XDR *,
						    DESTROY_SESSION4args *);
	static inline bool xdr_DESTROY_SESSION4res(XDR *,
						   DESTROY_SESSION4res *);
	static inline bool xdr_FREE_STATEID4args(XDR *, FREE_STATEID4args *);
	static inline bool xdr_FREE_STATEID4res(XDR *, FREE_STATEID4res *);
	static inline bool xdr_attr_notice4(XDR *, attr_notice4 *);
	static inline bool xdr_GET_DIR_DELEGATION4args(XDR *,
						       GET_DIR_DELEGATION4args
						       *);
	static inline bool xdr_GET_DIR_DELEGATION4resok(XDR *,
							GET_DIR_DELEGATION4resok
							*);
	static inline bool xdr_gddrnf4_status(XDR *, gddrnf4_status *);
	static inline bool xdr_GET_DIR_DELEGATION4res_non_fatal(
		XDR *,
		GET_DIR_DELEGATION4res_non_fatal
		*);
	static inline bool xdr_GET_DIR_DELEGATION4res(XDR *,
						      GET_DIR_DELEGATION4res *);
	static inline bool xdr_GETDEVICEINFO4args(XDR *, GETDEVICEINFO4args *);
	static inline bool xdr_GETDEVICEINFO4resok(XDR *,
						   GETDEVICEINFO4resok *);
	static inline bool xdr_GETDEVICEINFO4res(XDR *, GETDEVICEINFO4res *);
	static inline bool xdr_GETDEVICELIST4args(XDR *, GETDEVICELIST4args *);
	static inline bool xdr_GETDEVICELIST4resok(XDR *,
						   GETDEVICELIST4resok *);
	static inline bool xdr_GETDEVICELIST4res(XDR *, GETDEVICELIST4res *);
	static inline bool xdr_newtime4(XDR *, newtime4 *);
	static inline bool xdr_newoffset4(XDR *, newoffset4 *);
	static inline bool xdr_LAYOUTCOMMIT4args(XDR *, LAYOUTCOMMIT4args *);
	static inline bool xdr_newsize4(XDR *, newsize4 *);
	static inline bool xdr_LAYOUTCOMMIT4resok(XDR *, LAYOUTCOMMIT4resok *);
	static inline bool xdr_LAYOUTCOMMIT4res(XDR *, LAYOUTCOMMIT4res *);
	static inline bool xdr_LAYOUTGET4args(XDR *, LAYOUTGET4args *);
	static inline bool xdr_LAYOUTGET4resok(XDR *, LAYOUTGET4resok *);
	static inline bool xdr_LAYOUTGET4res(XDR *, LAYOUTGET4res *);
	static inline bool xdr_LAYOUTRETURN4args(XDR *, LAYOUTRETURN4args *);
	static inline bool xdr_layoutreturn_stateid(XDR *,
						    layoutreturn_stateid *);
	static inline bool xdr_LAYOUTRETURN4res(XDR *, LAYOUTRETURN4res *);
	static inline bool xdr_secinfo_style4(XDR *, secinfo_style4 *);
	static inline bool xdr_SECINFO_NO_NAME4args(XDR *,
						    SECINFO_NO_NAME4args *);
	static inline bool xdr_SECINFO_NO_NAME4res(XDR *,
						   SECINFO_NO_NAME4res *);
	static inline bool xdr_SEQUENCE4args(XDR *, SEQUENCE4args *);
	static inline bool xdr_SEQUENCE4resok(XDR *, SEQUENCE4resok *);
	static inline bool xdr_SEQUENCE4res(XDR *, SEQUENCE4res *);
	static inline bool xdr_ssa_digest_input4(XDR *, ssa_digest_input4 *);
	static inline bool xdr_SET_SSV4args(XDR *, SET_SSV4args *);
	static inline bool xdr_ssr_digest_input4(XDR *, ssr_digest_input4 *);
	static inline bool xdr_SET_SSV4resok(XDR *, SET_SSV4resok *);
	static inline bool xdr_SET_SSV4res(XDR *, SET_SSV4res *);
	static inline bool xdr_TEST_STATEID4args(XDR *, TEST_STATEID4args *);
	static inline bool xdr_TEST_STATEID4resok(XDR *, TEST_STATEID4resok *);
	static inline bool xdr_TEST_STATEID4res(XDR *, TEST_STATEID4res *);
	static inline bool xdr_deleg_claim4(XDR *, deleg_claim4 *);
	static inline bool xdr_WANT_DELEGATION4args(XDR *,
						    WANT_DELEGATION4args *);
	static inline bool xdr_WANT_DELEGATION4res(XDR *,
						   WANT_DELEGATION4res *);
	static inline bool xdr_DESTROY_CLIENTID4args(XDR *,
						     DESTROY_CLIENTID4args *);
	static inline bool xdr_DESTROY_CLIENTID4res(XDR *,
						    DESTROY_CLIENTID4res *);
	static inline bool xdr_RECLAIM_COMPLETE4args(XDR *,
						     RECLAIM_COMPLETE4args *);
	static inline bool xdr_RECLAIM_COMPLETE4res(XDR *,
						    RECLAIM_COMPLETE4res *);
	static inline bool xdr_nfs_opnum4(XDR *, nfs_opnum4 *);
	static inline bool xdr_nfs_argop4(XDR *, nfs_argop4 *);
	static inline bool xdr_nfs_resop4(XDR *, nfs_resop4 *);
	static inline bool xdr_COMPOUND4args(XDR *, COMPOUND4args *);
	static inline bool xdr_COMPOUND4res(XDR *, COMPOUND4res *);
	static inline bool xdr_CB_GETATTR4args(XDR *, CB_GETATTR4args *);
	static inline bool xdr_CB_GETATTR4resok(XDR *, CB_GETATTR4resok *);
	static inline bool xdr_CB_GETATTR4res(XDR *, CB_GETATTR4res *);
	static inline bool xdr_CB_RECALL4args(XDR *, CB_RECALL4args *);
	static inline bool xdr_CB_RECALL4res(XDR *, CB_RECALL4res *);
	static inline bool xdr_CB_ILLEGAL4res(XDR *, CB_ILLEGAL4res *);
	static inline bool xdr_layoutrecall_type4(XDR *, layoutrecall_type4 *);
	static inline bool xdr_layoutrecall_file4(XDR *, layoutrecall_file4 *);
	static inline bool xdr_layoutrecall4(XDR *, layoutrecall4 *);
	static inline bool xdr_CB_LAYOUTRECALL4args(XDR *,
						    CB_LAYOUTRECALL4args *);
	static inline bool xdr_CB_LAYOUTRECALL4res(XDR *,
						   CB_LAYOUTRECALL4res *);
	static inline bool xdr_notify_type4(XDR *, notify_type4 *);
	static inline bool xdr_notify_entry4(XDR *, notify_entry4 *);
	static inline bool xdr_prev_entry4(XDR *, prev_entry4 *);
	static inline bool xdr_notify_remove4(XDR *, notify_remove4 *);
	static inline bool xdr_notify_add4(XDR *, notify_add4 *);
	static inline bool xdr_notify_attr4(XDR *, notify_attr4 *);
	static inline bool xdr_notify_rename4(XDR *, notify_rename4 *);
	static inline bool xdr_notify_verifier4(XDR *, notify_verifier4 *);
	static inline bool xdr_notifylist4(XDR *, notifylist4 *);
	static inline bool xdr_notify4(XDR *, notify4 *);
	static inline bool xdr_CB_NOTIFY4args(XDR *, CB_NOTIFY4args *);
	static inline bool xdr_CB_NOTIFY4res(XDR *, CB_NOTIFY4res *);
	static inline bool xdr_CB_PUSH_DELEG4args(XDR *, CB_PUSH_DELEG4args *);
	static inline bool xdr_CB_PUSH_DELEG4res(XDR *, CB_PUSH_DELEG4res *);
	static inline bool xdr_CB_RECALL_ANY4args(XDR *, CB_RECALL_ANY4args *);
	static inline bool xdr_CB_RECALL_ANY4res(XDR *, CB_RECALL_ANY4res *);
	static inline bool xdr_CB_RECALLABLE_OBJ_AVAIL4args(
		XDR *,
		CB_RECALLABLE_OBJ_AVAIL4args
		*);
	static inline bool xdr_CB_RECALLABLE_OBJ_AVAIL4res(
		XDR *,
		CB_RECALLABLE_OBJ_AVAIL4res
		*);
	static inline bool xdr_CB_RECALL_SLOT4args(XDR *,
						   CB_RECALL_SLOT4args *);
	static inline bool xdr_CB_RECALL_SLOT4res(XDR *, CB_RECALL_SLOT4res *);
	static inline bool xdr_referring_call4(XDR *, referring_call4 *);
	static inline bool xdr_referring_call_list4(XDR *,
						    referring_call_list4 *);
	static inline bool xdr_CB_SEQUENCE4args(XDR *, CB_SEQUENCE4args *);
	static inline bool xdr_CB_SEQUENCE4resok(XDR *, CB_SEQUENCE4resok *);
	static inline bool xdr_CB_SEQUENCE4res(XDR *, CB_SEQUENCE4res *);
	static inline bool xdr_CB_WANTS_CANCELLED4args(XDR *,
						       CB_WANTS_CANCELLED4args
						       *);
	static inline bool xdr_CB_WANTS_CANCELLED4res(XDR *,
						      CB_WANTS_CANCELLED4res *);
	static inline bool xdr_CB_NOTIFY_LOCK4args(XDR *,
						   CB_NOTIFY_LOCK4args *);
	static inline bool xdr_CB_NOTIFY_LOCK4res(XDR *, CB_NOTIFY_LOCK4res *);
	static inline bool xdr_notify_deviceid_type4(XDR *,
						     notify_deviceid_type4 *);
	static inline bool xdr_notify_deviceid_delete4(XDR *,
						       notify_deviceid_delete4
						       *);
	static inline bool xdr_notify_deviceid_change4(XDR *,
						       notify_deviceid_change4
						       *);
	static inline bool xdr_CB_NOTIFY_DEVICEID4args(XDR *,
						       CB_NOTIFY_DEVICEID4args
						       *);
	static inline bool xdr_CB_NOTIFY_DEVICEID4res(XDR *,
						      CB_NOTIFY_DEVICEID4res *);
	static inline bool xdr_nfs_cb_opnum4(XDR *, nfs_cb_opnum4 *);
	static inline bool xdr_nfs_cb_argop4(XDR *, nfs_cb_argop4 *);
	static inline bool xdr_nfs_cb_resop4(XDR *, nfs_cb_resop4 *);
	static inline bool xdr_CB_COMPOUND4args(XDR *, CB_COMPOUND4args *);
	static inline bool xdr_CB_COMPOUND4res(XDR *, CB_COMPOUND4res *);

  /* NFS end-to-end integrity */
	static inline bool xdr_nfs_protection_type4(XDR *, nfs_protection_type4*);
	static inline bool xdr_nfs_protection_info4(XDR *, nfs_protection_info4*);
	// static inline bool xdr_INITPROTINFO4args(XDR *, INITPROTINFO4args*);
	// static inline bool xdr_INITPROTINFO4res(XDR *, INITPROTINFO4res*);
	static inline bool xdr_data_content4(XDR *, data_content4*);
	static inline bool xdr_data_protected4(XDR *, data_protected4*);
	static inline bool xdr_data_protect_info4(XDR *, data_protect_info4*);
	static inline bool xdr_data_info4(XDR *, data_info4*);
	static inline bool xdr_data4(XDR *, data4*);
	static inline bool xdr_app_data_hole4(XDR *, app_data_hole4*);
	static inline bool xdr_WRITE_PLUS4args(XDR *, WRITE_PLUS4args*);
	static inline bool xdr_WRITE_PLUS4res(XDR *, WRITE_PLUS4res*);

#else				/* K&R C */
	static inline bool xdr_nfs_ftype4();
	static inline bool xdr_nfsstat4();
	static inline bool xdr_attrlist4();
	static inline bool xdr_bitmap4();
	static inline bool xdr_changeid4();
	static inline bool xdr_clientid4();
	static inline bool xdr_count4();
	static inline bool xdr_length4();
	static inline bool xdr_mode4();
	static inline bool xdr_nfs_cookie4();
	static inline bool xdr_nfs_fh4();
	static inline bool xdr_offset4();
	static inline bool xdr_qop4();
	static inline bool xdr_sec_oid4();
	static inline bool xdr_sequenceid4();
	static inline bool xdr_seqid4();
	static inline bool xdr_sessionid4();
	static inline bool xdr_slotid4();
	static inline bool xdr_utf8string();
	static inline bool xdr_utf8str_cis();
	static inline bool xdr_utf8str_cs();
	static inline bool xdr_utf8str_mixed();
	static inline bool xdr_component4();
	static inline bool xdr_linktext4();
	static inline bool xdr_pathname4();
	static inline bool xdr_verifier4();
	static inline bool xdr_nfstime4();
	static inline bool xdr_time_how4();
	static inline bool xdr_settime4();
	static inline bool xdr_nfs_lease4();
	static inline bool xdr_fsid4();
	static inline bool xdr_change_policy4();
	static inline bool xdr_fs_location4();
	static inline bool xdr_fs_locations4();
	static inline bool xdr_acetype4();
	static inline bool xdr_aceflag4();
	static inline bool xdr_acemask4();
	static inline bool xdr_nfsace4();
	static inline bool xdr_aclflag4();
	static inline bool xdr_nfsacl41();
	static inline bool xdr_mode_masked4();
	static inline bool xdr_specdata4();
	static inline bool xdr_netaddr4();
	static inline bool xdr_nfs_impl_id4();
	static inline bool xdr_stateid4();
	static inline bool xdr_layouttype4();
	static inline bool xdr_layout_content4();
	static inline bool xdr_layouthint4();
	static inline bool xdr_layoutiomode4();
	static inline bool xdr_layout4();
	static inline bool xdr_deviceid4();
	static inline bool xdr_device_addr4();
	static inline bool xdr_layoutupdate4();
	static inline bool xdr_layoutreturn_type4();
	static inline bool xdr_layoutreturn_file4();
	static inline bool xdr_layoutreturn4();
	static inline bool xdr_fs4_status_type();
	static inline bool xdr_fs4_status();
	static inline bool xdr_threshold4_read_size();
	static inline bool xdr_threshold4_write_size();
	static inline bool xdr_threshold4_read_iosize();
	static inline bool xdr_threshold4_write_iosize();
	static inline bool xdr_threshold_item4();
	static inline bool xdr_mdsthreshold4();
	static inline bool xdr_retention_get4();
	static inline bool xdr_retention_set4();
	static inline bool xdr_fs_charset_cap4();
	static inline bool xdr_fattr4_supported_attrs();
	static inline bool xdr_fattr4_type();
	static inline bool xdr_fattr4_fh_expire_type();
	static inline bool xdr_fattr4_change();
	static inline bool xdr_fattr4_size();
	static inline bool xdr_fattr4_link_support();
	static inline bool xdr_fattr4_symlink_support();
	static inline bool xdr_fattr4_named_attr();
	static inline bool xdr_fattr4_fsid();
	static inline bool xdr_fattr4_unique_handles();
	static inline bool xdr_fattr4_lease_time();
	static inline bool xdr_fattr4_rdattr_error();
	static inline bool xdr_fattr4_acl();
	static inline bool xdr_fattr4_aclsupport();
	static inline bool xdr_fattr4_archive();
	static inline bool xdr_fattr4_cansettime();
	static inline bool xdr_fattr4_case_insensitive();
	static inline bool xdr_fattr4_case_preserving();
	static inline bool xdr_fattr4_chown_restricted();
	static inline bool xdr_fattr4_fileid();
	static inline bool xdr_fattr4_files_avail();
	static inline bool xdr_fattr4_filehandle();
	static inline bool xdr_fattr4_files_free();
	static inline bool xdr_fattr4_files_total();
	static inline bool xdr_fattr4_fs_locations();
	static inline bool xdr_fattr4_hidden();
	static inline bool xdr_fattr4_homogeneous();
	static inline bool xdr_fattr4_maxfilesize();
	static inline bool xdr_fattr4_maxlink();
	static inline bool xdr_fattr4_maxname();
	static inline bool xdr_fattr4_maxread();
	static inline bool xdr_fattr4_maxwrite();
	static inline bool xdr_fattr4_mimetype();
	static inline bool xdr_fattr4_mode();
	static inline bool xdr_fattr4_mode_set_masked();
	static inline bool xdr_fattr4_mounted_on_fileid();
	static inline bool xdr_fattr4_no_trunc();
	static inline bool xdr_fattr4_numlinks();
	static inline bool xdr_fattr4_owner();
	static inline bool xdr_fattr4_owner_group();
	static inline bool xdr_fattr4_quota_avail_hard();
	static inline bool xdr_fattr4_quota_avail_soft();
	static inline bool xdr_fattr4_quota_used();
	static inline bool xdr_fattr4_rawdev();
	static inline bool xdr_fattr4_space_avail();
	static inline bool xdr_fattr4_space_free();
	static inline bool xdr_fattr4_space_total();
	static inline bool xdr_fattr4_space_used();
	static inline bool xdr_fattr4_system();
	static inline bool xdr_fattr4_time_access();
	static inline bool xdr_fattr4_time_access_set();
	static inline bool xdr_fattr4_time_backup();
	static inline bool xdr_fattr4_time_create();
	static inline bool xdr_fattr4_time_delta();
	static inline bool xdr_fattr4_time_metadata();
	static inline bool xdr_fattr4_time_modify();
	static inline bool xdr_fattr4_time_modify_set();
	static inline bool xdr_fattr4_suppattr_exclcreat();
	static inline bool xdr_fattr4_dir_notif_delay();
	static inline bool xdr_fattr4_dirent_notif_delay();
	static inline bool xdr_fattr4_fs_layout_types();
	static inline bool xdr_fattr4_fs_status();
	static inline bool xdr_fattr4_fs_charset_cap();
	static inline bool xdr_fattr4_layout_alignment();
	static inline bool xdr_fattr4_layout_blksize();
	static inline bool xdr_fattr4_layout_hint();
	static inline bool xdr_fattr4_layout_types();
	static inline bool xdr_fattr4_mdsthreshold();
	static inline bool xdr_fattr4_retention_get();
	static inline bool xdr_fattr4_retention_set();
	static inline bool xdr_fattr4_retentevt_get();
	static inline bool xdr_fattr4_retentevt_set();
	static inline bool xdr_fattr4_retention_hold();
	static inline bool xdr_fattr4_dacl();
	static inline bool xdr_fattr4_sacl();
	static inline bool xdr_fattr4_change_policy();
	static inline bool xdr_fattr4();
	static inline bool xdr_change_info4();
	static inline bool xdr_clientaddr4();
	static inline bool xdr_cb_client4();
	static inline bool xdr_nfs_client_id4();
	static inline bool xdr_client_owner4();
	static inline bool xdr_server_owner4();
	static inline bool xdr_state_owner4();
	static inline bool xdr_open_owner4();
	static inline bool xdr_lock_owner4();
	static inline bool xdr_nfs_lock_type4();
	static inline bool xdr_ssv_subkey4();
	static inline bool xdr_ssv_mic_plain_tkn4();
	static inline bool xdr_ssv_mic_tkn4();
	static inline bool xdr_ssv_seal_plain_tkn4();
	static inline bool xdr_ssv_seal_cipher_tkn4();
	static inline bool xdr_fs_locations_server4();
	static inline bool xdr_fs_locations_item4();
	static inline bool xdr_fs_locations_info4();
	static inline bool xdr_fattr4_fs_locations_info();
	static inline bool xdr_nfl_util4();
	static inline bool xdr_filelayout_hint_care4();
	static inline bool xdr_nfsv4_1_file_layouthint4();
	static inline bool xdr_multipath_list4();
	static inline bool xdr_nfsv4_1_file_layout_ds_addr4();
	static inline bool xdr_nfsv4_1_file_layout4();
	static inline bool xdr_ACCESS4args();
	static inline bool xdr_ACCESS4resok();
	static inline bool xdr_ACCESS4res();
	static inline bool xdr_CLOSE4args();
	static inline bool xdr_CLOSE4res();
	static inline bool xdr_COMMIT4args();
	static inline bool xdr_COMMIT4resok();
	static inline bool xdr_COMMIT4res();
	static inline bool xdr_createtype4();
	static inline bool xdr_CREATE4args();
	static inline bool xdr_CREATE4resok();
	static inline bool xdr_CREATE4res();
	static inline bool xdr_DELEGPURGE4args();
	static inline bool xdr_DELEGPURGE4res();
	static inline bool xdr_DELEGRETURN4args();
	static inline bool xdr_DELEGRETURN4res();
	static inline bool xdr_GETATTR4args();
	static inline bool xdr_GETATTR4resok();
	static inline bool xdr_GETATTR4res();
	static inline bool xdr_GETFH4resok();
	static inline bool xdr_GETFH4res();
	static inline bool xdr_LINK4args();
	static inline bool xdr_LINK4resok();
	static inline bool xdr_LINK4res();
	static inline bool xdr_open_to_lock_owner4();
	static inline bool xdr_exist_lock_owner4();
	static inline bool xdr_locker4();
	static inline bool xdr_LOCK4args();
	static inline bool xdr_LOCK4denied();
	static inline bool xdr_LOCK4resok();
	static inline bool xdr_LOCK4res();
	static inline bool xdr_LOCKT4args();
	static inline bool xdr_LOCKT4res();
	static inline bool xdr_LOCKU4args();
	static inline bool xdr_LOCKU4res();
	static inline bool xdr_LOOKUP4args();
	static inline bool xdr_LOOKUP4res();
	static inline bool xdr_LOOKUPP4res();
	static inline bool xdr_NVERIFY4args();
	static inline bool xdr_NVERIFY4res();
	static inline bool xdr_createmode4();
	static inline bool xdr_creatverfattr();
	static inline bool xdr_createhow4();
	static inline bool xdr_opentype4();
	static inline bool xdr_openflag4();
	static inline bool xdr_limit_by4();
	static inline bool xdr_nfs_modified_limit4();
	static inline bool xdr_nfs_space_limit4();
	static inline bool xdr_open_delegation_type4();
	static inline bool xdr_open_claim_type4();
	static inline bool xdr_open_claim_delegate_cur4();
	static inline bool xdr_open_claim4();
	static inline bool xdr_OPEN4args();
	static inline bool xdr_open_read_delegation4();
	static inline bool xdr_open_write_delegation4();
	static inline bool xdr_why_no_delegation4();
	static inline bool xdr_open_none_delegation4();
	static inline bool xdr_open_delegation4();
	static inline bool xdr_OPEN4resok();
	static inline bool xdr_OPEN4res();
	static inline bool xdr_OPENATTR4args();
	static inline bool xdr_OPENATTR4res();
	static inline bool xdr_OPEN_CONFIRM4args();
	static inline bool xdr_OPEN_CONFIRM4resok();
	static inline bool xdr_OPEN_CONFIRM4res();
	static inline bool xdr_OPEN_DOWNGRADE4args();
	static inline bool xdr_OPEN_DOWNGRADE4resok();
	static inline bool xdr_OPEN_DOWNGRADE4res();
	static inline bool xdr_PUTFH4args();
	static inline bool xdr_PUTFH4res();
	static inline bool xdr_PUTPUBFH4res();
	static inline bool xdr_PUTROOTFH4res();
	static inline bool xdr_READ4args();
	static inline bool xdr_READ4resok();
	static inline bool xdr_READ4res();
	static inline bool xdr_READDIR4args();
	static inline bool xdr_entry4();
	static inline bool xdr_dirlist4();
	static inline bool xdr_READDIR4resok();
	static inline bool xdr_READDIR4res();
	static inline bool xdr_READLINK4resok();
	static inline bool xdr_READLINK4res();
	static inline bool xdr_REMOVE4args();
	static inline bool xdr_REMOVE4resok();
	static inline bool xdr_REMOVE4res();
	static inline bool xdr_RENAME4args();
	static inline bool xdr_RENAME4resok();
	static inline bool xdr_RENAME4res();
	static inline bool xdr_RENEW4args();
	static inline bool xdr_RENEW4res();
	static inline bool xdr_RESTOREFH4res();
	static inline bool xdr_SAVEFH4res();
	static inline bool xdr_SECINFO4args();
	static inline bool xdr_rpc_gss_svc_t();
	static inline bool xdr_rpcsec_gss_info();
	static inline bool xdr_secinfo4();
	static inline bool xdr_SECINFO4resok();
	static inline bool xdr_SECINFO4res();
	static inline bool xdr_SETATTR4args();
	static inline bool xdr_SETATTR4res();
	static inline bool xdr_SETCLIENTID4args();
	static inline bool xdr_SETCLIENTID4resok();
	static inline bool xdr_SETCLIENTID4res();
	static inline bool xdr_SETCLIENTID_CONFIRM4args();
	static inline bool xdr_SETCLIENTID_CONFIRM4res();
	static inline bool xdr_VERIFY4args();
	static inline bool xdr_VERIFY4res();
	static inline bool xdr_stable_how4();
	static inline bool xdr_WRITE4args();
	static inline bool xdr_WRITE4resok();
	static inline bool xdr_WRITE4res();
	static inline bool xdr_RELEASE_LOCKOWNER4args();
	static inline bool xdr_RELEASE_LOCKOWNER4res();
	static inline bool xdr_ILLEGAL4res();
	static inline bool xdr_gsshandle4_t();
	static inline bool xdr_gss_cb_handles4();
	static inline bool xdr_callback_sec_parms4();
	static inline bool xdr_BACKCHANNEL_CTL4args();
	static inline bool xdr_BACKCHANNEL_CTL4res();
	static inline bool xdr_channel_dir_from_client4();
	static inline bool xdr_BIND_CONN_TO_SESSION4args();
	static inline bool xdr_channel_dir_from_server4();
	static inline bool xdr_BIND_CONN_TO_SESSION4resok();
	static inline bool xdr_BIND_CONN_TO_SESSION4res();
	static inline bool xdr_state_protect_ops4();
	static inline bool xdr_ssv_sp_parms4();
	static inline bool xdr_state_protect_how4();
	static inline bool xdr_state_protect4_a();
	static inline bool xdr_EXCHANGE_ID4args();
	static inline bool xdr_ssv_prot_info4();
	static inline bool xdr_state_protect4_r();
	static inline bool xdr_EXCHANGE_ID4resok();
	static inline bool xdr_EXCHANGE_ID4res();
	static inline bool xdr_channel_attrs4();
	static inline bool xdr_CREATE_SESSION4args();
	static inline bool xdr_CREATE_SESSION4resok();
	static inline bool xdr_CREATE_SESSION4res();
	static inline bool xdr_DESTROY_SESSION4args();
	static inline bool xdr_DESTROY_SESSION4res();
	static inline bool xdr_FREE_STATEID4args();
	static inline bool xdr_FREE_STATEID4res();
	static inline bool xdr_attr_notice4();
	static inline bool xdr_GET_DIR_DELEGATION4args();
	static inline bool xdr_GET_DIR_DELEGATION4resok();
	static inline bool xdr_gddrnf4_status();
	static inline bool xdr_GET_DIR_DELEGATION4res_non_fatal();
	static inline bool xdr_GET_DIR_DELEGATION4res();
	static inline bool xdr_GETDEVICEINFO4args();
	static inline bool xdr_GETDEVICEINFO4resok();
	static inline bool xdr_GETDEVICEINFO4res();
	static inline bool xdr_GETDEVICELIST4args();
	static inline bool xdr_GETDEVICELIST4resok();
	static inline bool xdr_GETDEVICELIST4res();
	static inline bool xdr_newtime4();
	static inline bool xdr_newoffset4();
	static inline bool xdr_LAYOUTCOMMIT4args();
	static inline bool xdr_newsize4();
	static inline bool xdr_LAYOUTCOMMIT4resok();
	static inline bool xdr_LAYOUTCOMMIT4res();
	static inline bool xdr_LAYOUTGET4args();
	static inline bool xdr_LAYOUTGET4resok();
	static inline bool xdr_LAYOUTGET4res();
	static inline bool xdr_LAYOUTRETURN4args();
	static inline bool xdr_layoutreturn_stateid();
	static inline bool xdr_LAYOUTRETURN4res();
	static inline bool xdr_secinfo_style4();
	static inline bool xdr_SECINFO_NO_NAME4args();
	static inline bool xdr_SECINFO_NO_NAME4res();
	static inline bool xdr_SEQUENCE4args();
	static inline bool xdr_SEQUENCE4resok();
	static inline bool xdr_SEQUENCE4res();
	static inline bool xdr_ssa_digest_input4();
	static inline bool xdr_SET_SSV4args();
	static inline bool xdr_ssr_digest_input4();
	static inline bool xdr_SET_SSV4resok();
	static inline bool xdr_SET_SSV4res();
	static inline bool xdr_TEST_STATEID4args();
	static inline bool xdr_TEST_STATEID4resok();
	static inline bool xdr_TEST_STATEID4res();
	static inline bool xdr_deleg_claim4();
	static inline bool xdr_WANT_DELEGATION4args();
	static inline bool xdr_WANT_DELEGATION4res();
	static inline bool xdr_DESTROY_CLIENTID4args();
	static inline bool xdr_DESTROY_CLIENTID4res();
	static inline bool xdr_RECLAIM_COMPLETE4args();
	static inline bool xdr_RECLAIM_COMPLETE4res();
	static inline bool xdr_nfs_opnum4();
	static inline bool xdr_nfs_argop4();
	static inline bool xdr_nfs_resop4();
	static inline bool xdr_COMPOUND4args();
	static inline bool xdr_COMPOUND4res();
	static inline bool xdr_CB_GETATTR4args();
	static inline bool xdr_CB_GETATTR4resok();
	static inline bool xdr_CB_GETATTR4res();
	static inline bool xdr_CB_RECALL4args();
	static inline bool xdr_CB_RECALL4res();
	static inline bool xdr_CB_ILLEGAL4res();
	static inline bool xdr_layoutrecall_type4();
	static inline bool xdr_layoutrecall_file4();
	static inline bool xdr_layoutrecall4();
	static inline bool xdr_CB_LAYOUTRECALL4args();
	static inline bool xdr_CB_LAYOUTRECALL4res();
	static inline bool xdr_notify_type4();
	static inline bool xdr_notify_entry4();
	static inline bool xdr_prev_entry4();
	static inline bool xdr_notify_remove4();
	static inline bool xdr_notify_add4();
	static inline bool xdr_notify_attr4();
	static inline bool xdr_notify_rename4();
	static inline bool xdr_notify_verifier4();
	static inline bool xdr_notifylist4();
	static inline bool xdr_notify4();
	static inline bool xdr_CB_NOTIFY4args();
	static inline bool xdr_CB_NOTIFY4res();
	static inline bool xdr_CB_PUSH_DELEG4args();
	static inline bool xdr_CB_PUSH_DELEG4res();
	static inline bool xdr_CB_RECALL_ANY4args();
	static inline bool xdr_CB_RECALL_ANY4res();
	static inline bool xdr_CB_RECALLABLE_OBJ_AVAIL4args();
	static inline bool xdr_CB_RECALLABLE_OBJ_AVAIL4res();
	static inline bool xdr_CB_RECALL_SLOT4args();
	static inline bool xdr_CB_RECALL_SLOT4res();
	static inline bool xdr_referring_call4();
	static inline bool xdr_referring_call_list4();
	static inline bool xdr_CB_SEQUENCE4args();
	static inline bool xdr_CB_SEQUENCE4resok();
	static inline bool xdr_CB_SEQUENCE4res();
	static inline bool xdr_CB_WANTS_CANCELLED4args();
	static inline bool xdr_CB_WANTS_CANCELLED4res();
	static inline bool xdr_CB_NOTIFY_LOCK4args();
	static inline bool xdr_CB_NOTIFY_LOCK4res();
	static inline bool xdr_notify_deviceid_type4();
	static inline bool xdr_notify_deviceid_delete4();
	static inline bool xdr_notify_deviceid_change4();
	static inline bool xdr_CB_NOTIFY_DEVICEID4args();
	static inline bool xdr_CB_NOTIFY_DEVICEID4res();
	static inline bool xdr_nfs_cb_opnum4();
	static inline bool xdr_nfs_cb_argop4();
	static inline bool xdr_nfs_cb_resop4();
	static inline bool xdr_CB_COMPOUND4args();
	static inline bool xdr_CB_COMPOUND4res();
  /* NFS end-to-end integrity */
	static inline bool xdr_nfs_protection_type4();
	static inline bool xdr_nfs_protection_info4();
	// static inline bool xdr_INITPROTINFO4args();
	// static inline bool xdr_INITPROTINFO4res();
	static inline bool xdr_data_content4();
	static inline bool xdr_data_protected4();
	static inline bool xdr_data_protect_info4();
	static inline bool xdr_data_info4();
	static inline bool xdr_data4();
	static inline bool xdr_app_data_hole4();
	static inline bool xdr_WRITE_PLUS4args();
	static inline bool xdr_WRITE_PLUS4res();

#endif				/* 0 */
#endif				/* K&R C */

#ifdef __cplusplus
}
#endif

#endif				/* !_NFSV41_H_RPCGEN */