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
|
/* packet-lustre.c
* Routines for lustre dissection
* Copyright (c) 2011, 2016, 2017 Intel Corporation.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
* This is accurate for Lustre dissection as of Lustre 2.10.2 - November 2017
*/
#include <config.h>
#include <epan/packet.h>
#include <epan/expert.h>
#include "packet-tcp.h"
#include "packet-lnet.h"
void proto_reg_handoff_lustre(void);
void proto_register_lustre(void);
static dissector_handle_t lustre_handle;
/* Initialize the protocol and registered fields */
static int proto_lustre;
static int hf_lustre_lustre_msg_v1_lm_magic;
static int hf_lustre_lustre_msg_v1_lm_handle;
static int hf_lustre_lustre_msg_v1_lm_last_xid;
static int hf_lustre_lustre_msg_v1_lm_status;
static int hf_lustre_lustre_msg_v1_lm_type;
static int hf_lustre_lustre_msg_v1_lm_flags;
static int hf_lustre_lustre_msg_v1_lm_last_committed;
static int hf_lustre_lustre_msg_v1_lm_buflens;
static int hf_lustre_lustre_msg_v1_lm_conn_cnt;
static int hf_lustre_lustre_msg_v1_lm_transno;
static int hf_lustre_lustre_msg_v1_lm_opc;
static int hf_lustre_lustre_msg_v1_lm_version;
static int hf_lustre_lustre_msg_v1_lm_bufcount;
static int hf_lustre_lustre_msg_v2_lm_magic;
static int hf_lustre_lustre_msg_v2_lm_bufcount;
static int hf_lustre_lustre_msg_v2_lm_repsize;
static int hf_lustre_lustre_msg_v2_lm_cksum;
static int hf_lustre_lustre_msg_v2_lm_buflens;
static int hf_lustre_lustre_msg_v2_lm_flags;
static int hf_lustre_lustre_msg_v2_lm_secflvr;
static int hf_lustre_lustre_msg_v2_lm_padding_2;
static int hf_lustre_lustre_msg_v2_lm_padding_3;
static int hf_lustre_extra_padding;
static int hf_lustre_target_uuid;
static int hf_lustre_client_uuid;
static int hf_lustre_mdt_body;
static int hf_lustre_mdt_body_fid1;
static int hf_lustre_mdt_body_fid2;
static int hf_lustre_mdt_body_handle;
static int hf_lustre_mdt_body_valid;
static int hf_lustre_mdt_body_size;
static int hf_lustre_mdt_body_mtime;
static int hf_lustre_mdt_body_atime;
static int hf_lustre_mdt_body_ctime;
static int hf_lustre_mdt_body_blocks;
static int hf_lustre_mdt_body_ioepoch;
static int hf_lustre_mdt_body_ino;
static int hf_lustre_mdt_body_fsuid;
static int hf_lustre_mdt_body_fsgid;
static int hf_lustre_mdt_body_capability;
static int hf_lustre_mdt_body_mode;
static int hf_lustre_mdt_body_uid;
static int hf_lustre_mdt_body_gid;
static int hf_lustre_mdt_body_flags;
static int hf_lustre_mdt_body_rdev;
static int hf_lustre_mdt_body_nlink;
static int hf_lustre_mdt_body_generation;
static int hf_lustre_mdt_body_suppgid;
static int hf_lustre_mdt_body_eadatasize;
static int hf_lustre_mdt_body_aclsize;
static int hf_lustre_mdt_body_max_mdsize;
static int hf_lustre_mdt_body_max_cookiesize;
static int hf_lustre_mdt_body_uid_h;
static int hf_lustre_mdt_body_gid_h;
static int hf_lustre_mdt_body_projid;
static int hf_lustre_mdt_body_dom_size;
static int hf_lustre_mdt_body_dom_blocks;
static int hf_lustre_mdt_body_btime;
static int hf_lustre_mdt_body_padding_9;
static int hf_lustre_mdt_body_padding_10;
static int hf_lustre_close_data;
static int hf_lustre_close_fid;
static int hf_lustre_close_handle;
static int hf_lustre_close_data_ver;
static int hf_lustre_close_reserved;
static int hf_lustre_mdt_key;
static int hf_lustre_mdt_val;
static int hf_lustre_mdt_vallen;
static int hf_lustre_mdt_rec_reint;
static int hf_lustre_mdt_rec_reint_opcode;
static int hf_lustre_mdt_rec_reint_cap;
static int hf_lustre_mdt_rec_reint_fsuid;
static int hf_lustre_mdt_rec_reint_fsuid_h;
static int hf_lustre_mdt_rec_reint_fsgid;
static int hf_lustre_mdt_rec_reint_fsgid_h;
static int hf_lustre_mdt_rec_reint_suppgid1;
static int hf_lustre_mdt_rec_reint_suppgid1_h;
static int hf_lustre_mdt_rec_reint_suppgid2;
static int hf_lustre_mdt_rec_reint_suppgid2_h;
static int hf_lustre_mdt_rec_reint_mtime;
static int hf_lustre_mdt_rec_reint_atime;
static int hf_lustre_mdt_rec_reint_ctime;
static int hf_lustre_mdt_rec_reint_time;
static int hf_lustre_mdt_rec_reint_size32;
static int hf_lustre_mdt_rec_reint_size64;
static int hf_lustre_mdt_rec_reint_blocks;
static int hf_lustre_mdt_rec_reint_bias;
static int hf_lustre_mdt_rec_reint_mode;
static int hf_lustre_mdt_rec_reint_flags;
static int hf_lustre_mdt_rec_reint_flags_h;
static int hf_lustre_mdt_rec_reint_attr_flags;
static int hf_lustre_mdt_rec_reint_umask;
static int hf_lustre_mdt_rec_reint_padding;
static int hf_lustre_mdt_rec_reint_fid1;
static int hf_lustre_mdt_rec_reint_fid2;
static int hf_lustre_mdt_rec_reint_old_handle;
static int hf_lustre_mdt_rec_reint_rdev;
static int hf_lustre_mdt_rec_reint_valid;
static int hf_lustre_mdt_rec_reint_ioepoch;
static int hf_lustre_mdt_rec_reint_uid;
static int hf_lustre_mdt_rec_reint_gid;
static int hf_lustre_mdt_rec_reint_projid;
static int hf_lustre_mdt_ioepoch;
static int hf_lustre_mdt_ioepoch_ioepoch;
static int hf_lustre_mdt_ioepoch_handle;
static int hf_lustre_mdt_ioepoch_flags;
static int hf_lustre_mdt_ioepoch_padding;
static int hf_lustre_ptlrpc_body_pb;
static int hf_lustre_ptlrpc_body_pb_last_committed;
static int hf_lustre_ptlrpc_body_pb_version;
static int hf_lustre_ptlrpc_body_pb_slv;
static int hf_lustre_ptlrpc_body_pb_pre_version;
static int hf_lustre_ptlrpc_body_pb_padding;
static int hf_lustre_ptlrpc_body_pb_jobid;
static int hf_lustre_ptlrpc_body_pb_timeout;
static int hf_lustre_ptlrpc_body_pb_op_flags;
static int hf_lustre_ptlrpc_body_pb_type;
static int hf_lustre_ptlrpc_body_pb_flags;
static int hf_lustre_ptlrpc_body_pb_limit;
static int hf_lustre_ptlrpc_body_pb_transno;
static int hf_lustre_ptlrpc_body_pb_service_time;
static int hf_lustre_ptlrpc_body_pb_conn_cnt;
static int hf_lustre_ptlrpc_body_pb_opc;
static int hf_lustre_ptlrpc_body_pb_last_seen;
static int hf_lustre_ptlrpc_body_pb_last_xid;
static int hf_lustre_ptlrpc_body_pb_status;
static int hf_lustre_ptlrpc_body_pb_handle;
static int hf_lustre_mdc_swap_layouts;
static int hf_lustre_mdc_swap_layouts_flags;
static int hf_lustre_hsm_current_action;
static int hf_lustre_hsm_current_action_state;
static int hf_lustre_hsm_current_action_action;
static int hf_lustre_hsm_archive;
static int hf_lustre_hsm_archive_id;
static int hf_lustre_hsm_req;
static int hf_lustre_hsm_req_action;
static int hf_lustre_hsm_req_archive_id;
static int hf_lustre_hsm_req_flags;
static int hf_lustre_hsm_req_itemcount;
static int hf_lustre_hsm_req_data_len;
static int hf_lustre_hsm_extent;
static int hf_lustre_hsm_extent_offset;
static int hf_lustre_hsm_extent_length;
static int hf_lustre_hsm_prog;
static int hf_lustre_hsm_prog_fid;
static int hf_lustre_hsm_prog_cookie;
static int hf_lustre_hsm_prog_flags;
static int hf_lustre_hsm_prog_errval;
static int hf_lustre_hsm_prog_data_ver;
static int hf_lustre_hsm_prog_padding1;
static int hf_lustre_hsm_prog_padding2;
static int hf_lustre_hsm_user_state;
static int hf_lustre_hsm_us_states;
static int hf_lustre_hsm_us_archive_id;
static int hf_lustre_hsm_us_in_prog_state;
static int hf_lustre_hsm_us_in_prog_action;
static int hf_lustre_hsm_us_ext_info;
static int hf_lustre_hsm_state_set;
static int hf_lustre_hsm_hss_valid;
static int hf_lustre_hsm_hss_archive_id;
static int hf_lustre_hsm_hss_setmask;
static int hf_lustre_hsm_hss_clearmask;
static int hf_lustre_obd_ioobj;
static int hf_lustre_obd_ioobj_ioo_bufcnt;
static int hf_lustre_obd_ioobj_ioo_id;
static int hf_lustre_obd_ioobj_ioo_max_brw;
static int hf_lustre_obd_ioobj_ioo_seq;
static int hf_lustre_obd_statfs;
static int hf_lustre_obd_statfs_os_type;
static int hf_lustre_obd_statfs_os_bavail;
static int hf_lustre_obd_statfs_os_bsize;
static int hf_lustre_obd_statfs_os_maxbytes;
static int hf_lustre_obd_statfs_os_ffree;
static int hf_lustre_obd_statfs_os_files;
static int hf_lustre_obd_statfs_os_bfree;
static int hf_lustre_obd_statfs_os_namelen;
static int hf_lustre_obd_statfs_os_blocks;
static int hf_lustre_obd_statfs_os_fsid;
static int hf_lustre_obd_statfs_os_state;
static int hf_lustre_obd_statfs_os_fprecreated;
static int hf_lustre_obd_statfs_os_granted;
static int hf_lustre_obd_statfs_os_spare;
static int hf_lustre_obd_connect_data;
static int hf_lustre_obd_connect_data_ocd_version;
static int hf_lustre_obd_connect_data_ocd_grant;
static int hf_lustre_obd_connect_data_ocd_nllg;
static int hf_lustre_obd_connect_data_ocd_nllu;
static int hf_lustre_obd_connect_data_ocd_grant_blkbits;
static int hf_lustre_obd_connect_data_ocd_grant_inobits;
static int hf_lustre_obd_connect_data_ocd_grant_tax_kb;
static int hf_lustre_obd_connect_data_ocd_grant_max_blks;
static int hf_lustre_obd_connect_data_ocd_padding;
static int hf_lustre_obd_connect_data_ocd_ibits_known;
static int hf_lustre_obd_connect_data_ocd_group;
static int hf_lustre_obd_connect_data_ocd_brw_size;
static int hf_lustre_obd_connect_data_ocd_index;
static int hf_lustre_obd_connect_data_ocd_connect_flags;
static int hf_lustre_obd_connect_data_ocd_connect_flags2;
static int hf_lustre_obd_connect_data_ocd_cksum_types;
static int hf_lustre_obd_connect_data_ocd_max_easize;
static int hf_lustre_obd_connect_data_ocd_instance;
static int hf_lustre_obd_connect_data_ocd_maxbytes;
static int hf_lustre_obd_connect_data_ocd_maxmodrpcs;
static int hf_lustre_obd_connect_data_ocd_transno;
static int hf_lustre_obd_uuid;
static int hf_lustre_obd_quotactl;
static int hf_lustre_obd_quotactl_qc_stat;
static int hf_lustre_obd_quotactl_qc_cmd;
static int hf_lustre_obd_quotactl_qc_id;
static int hf_lustre_obd_quotactl_qc_type;
static int hf_lustre_obd_dqinfo;
static int hf_lustre_obd_dqinfo_dqi_valid;
static int hf_lustre_obd_dqinfo_dqi_igrace;
static int hf_lustre_obd_dqinfo_dqi_bgrace;
static int hf_lustre_obd_dqinfo_dqi_flags;
static int hf_lustre_obd_dqblk;
static int hf_lustre_obd_dqblk_dqb_isoftlimit;
static int hf_lustre_obd_dqblk_dqb_bhardlimit;
static int hf_lustre_obd_dqblk_dqb_curspace;
static int hf_lustre_obd_dqblk_dqb_itime;
static int hf_lustre_obd_dqblk_dqb_valid;
static int hf_lustre_obd_dqblk_padding;
static int hf_lustre_obd_dqblk_dqb_curinodes;
static int hf_lustre_obd_dqblk_dqb_bsoftlimit;
static int hf_lustre_obd_dqblk_dqb_btime;
static int hf_lustre_obd_dqblk_dqb_ihardlimit;
static int hf_lustre_ost_body;
static int hf_lustre_ost_key;
static int hf_lustre_ost_val;
static int hf_lustre_ost_lvb;
static int hf_lustre_ost_lvb_atime;
static int hf_lustre_ost_lvb_ctime;
static int hf_lustre_ost_lvb_mtime;
static int hf_lustre_ost_lvb_mtime_ns;
static int hf_lustre_ost_lvb_atime_ns;
static int hf_lustre_ost_lvb_ctime_ns;
static int hf_lustre_ost_lvb_padding;
static int hf_lustre_ost_lvb_size;
static int hf_lustre_ost_lvb_blocks;
static int hf_lustre_ost_id;
static int hf_lustre_ost_id_fid;
static int hf_lustre_ost_id_oi;
static int hf_lustre_ost_layout;
static int hf_lustre_ost_layout_stripe_size;
static int hf_lustre_ost_layout_stripe_count;
static int hf_lustre_ost_layout_comp_start;
static int hf_lustre_ost_layout_comp_end;
static int hf_lustre_ost_layout_comp_id;
static int hf_lustre_lu_ladvise_hdr;
static int hf_lustre_lu_ladvise_hdr_magic;
static int hf_lustre_lu_ladvise_hdr_count;
static int hf_lustre_lu_ladvise_hdr_flags;
static int hf_lustre_lu_ladvise_hdr_value1;
static int hf_lustre_lu_ladvise_hdr_value2;
static int hf_lustre_lu_ladvise_hdr_value3;
static int hf_lustre_lu_ladvise;
static int hf_lustre_lu_ladvise_advice;
static int hf_lustre_lu_ladvise_value1;
static int hf_lustre_lu_ladvise_value2;
static int hf_lustre_lu_ladvise_start;
static int hf_lustre_lu_ladvise_end;
static int hf_lustre_lu_ladvise_value3;
static int hf_lustre_lu_ladvise_value4;
static int hf_lustre_llogd_body;
static int hf_lustre_llogd_body_lgd_len;
static int hf_lustre_llogd_body_lgd_logid;
static int hf_lustre_llogd_body_lgd_index;
static int hf_lustre_llogd_body_lgd_saved_index;
static int hf_lustre_llogd_body_lgd_llh_flags;
static int hf_lustre_llogd_body_lgd_cur_offset;
static int hf_lustre_llogd_body_lgd_ctxt_idx;
static int hf_lustre_llogd_conn_body;
static int hf_lustre_llogd_conn_body_lgdc_gen;
static int hf_lustre_llogd_conn_body_lgdc_logid;
static int hf_lustre_llogd_conn_body_lgdc_ctxt_idx;
static int hf_lustre_llog_rec;
static int hf_lustre_llog_rec_hdr;
static int hf_lustre_llog_rec_tail;
static int hf_lustre_llog_rec_hdr_lrh_type;
static int hf_lustre_llog_rec_hdr_lrh_len;
static int hf_lustre_llog_rec_hdr_lrh_index;
static int hf_lustre_llog_rec_hdr_lrh_id;
static int hf_lustre_llog_rec_tail_lrt_index;
static int hf_lustre_llog_rec_tail_lrt_len;
static int hf_lustre_llog_log_hdr;
static int hf_lustre_llog_log_hdr_tgtuuid;
static int hf_lustre_llog_log_hdr_cat_idx;
static int hf_lustre_llog_log_hdr_bitmap_offset;
static int hf_lustre_llog_log_hdr_flags;
static int hf_lustre_llog_log_hdr_size;
static int hf_lustre_llog_log_hdr_tail;
static int hf_lustre_llog_log_hdr_bitmap;
static int hf_lustre_llog_log_hdr_count;
static int hf_lustre_llog_log_hdr_timestamp;
static int hf_lustre_llog_log_hdr_hdr;
static int hf_lustre_llog_log_hdr_reserved;
static int hf_lustre_llog_hdr_flag_zap_when_empty;
static int hf_lustre_llog_hdr_flag_is_cat;
static int hf_lustre_llog_hdr_flag_is_plain;
static int hf_lustre_llog_hdr_flag_ext_jobid;
static int hf_lustre_llog_hdr_flag_is_fixsize;
static int hf_lustre_llog_gen_rec;
static int hf_lustre_llog_gen_rec_hdr;
static int hf_lustre_llog_gen_rec_tail;
static int hf_lustre_llog_gen_rec_gen;
static int hf_lustre_llog_gen_rec_padding;
static int hf_lustre_llog_logid_rec;
static int hf_lustre_llog_logid_rec_hdr;
static int hf_lustre_llog_logid_rec_tail;
static int hf_lustre_llog_logid_rec_id;
static int hf_lustre_llog_logid_rec_padding;
static int hf_lustre_llog_logid_lgl_ogen;
static int hf_lustre_llog_unlink_rec;
static int hf_lustre_llog_unlink_rec_hdr;
static int hf_lustre_llog_unlink_rec_tail;
static int hf_lustre_llog_unlink_rec_oseq;
static int hf_lustre_llog_unlink_rec_oid;
static int hf_lustre_llog_unlink_rec_count;
static int hf_lustre_llog_unlink64_rec;
static int hf_lustre_llog_unlink64_rec_hdr;
static int hf_lustre_llog_unlink64_rec_fid;
static int hf_lustre_llog_unlink64_rec_count;
static int hf_lustre_llog_unlink64_rec_padding;
static int hf_lustre_llog_unlink64_rec_tail;
static int hf_lustre_llog_setattr64_rec;
static int hf_lustre_llog_setattr64_rec_hdr;
static int hf_lustre_llog_setattr64_rec_uid;
static int hf_lustre_llog_setattr64_rec_uid_h;
static int hf_lustre_llog_setattr64_rec_gid;
static int hf_lustre_llog_setattr64_rec_gid_h;
static int hf_lustre_llog_setattr64_rec_valid;
static int hf_lustre_llog_setattr64_rec_tail;
static int hf_lustre_llog_size_change_rec;
static int hf_lustre_llog_size_change_rec_hdr;
static int hf_lustre_llog_size_change_rec_io_epoch;
static int hf_lustre_llog_size_change_rec_fid;
static int hf_lustre_llog_size_change_rec_tail;
static int hf_lustre_llog_size_change_rec_padding;
static int hf_lustre_llog_cookie;
static int hf_lustre_llog_cookie_lgc_lgl;
static int hf_lustre_llog_cookie_lgc_padding;
static int hf_lustre_llog_cookie_lgc_index;
static int hf_lustre_llog_cookie_lgc_subsys;
static int hf_lustre_llog_gen_conn_cnt;
static int hf_lustre_llog_gen_mnt_cnt;
static int hf_lustre_llog_setattr_rec;
static int hf_lustre_llog_setattr_rec_hdr;
static int hf_lustre_llog_setattr_rec_oseq;
static int hf_lustre_llog_setattr_rec_padding;
static int hf_lustre_llog_setattr_rec_uid;
static int hf_lustre_llog_setattr_rec_oid;
static int hf_lustre_llog_setattr_rec_gid;
static int hf_lustre_llog_setattr_rec_tail;
static int hf_lustre_llog_changelog_rec;
static int hf_lustre_llog_changelog_rec_hdr;
static int hf_lustre_llog_changelog_rec_tail;
static int hf_lustre_changelog_rec;
static int hf_lustre_changelog_rec_namelen;
static int hf_lustre_changelog_rec_flags;
static int hf_lustre_changelog_rec_type;
static int hf_lustre_changelog_rec_index;
static int hf_lustre_changelog_rec_prev;
static int hf_lustre_changelog_rec_time;
static int hf_lustre_changelog_rec_tfid;
static int hf_lustre_changelog_rec_markerflags;
static int hf_lustre_changelog_rec_padding;
static int hf_lustre_changelog_rec_pfid;
static int hf_lustre_changelog_ext_rename_sfid;
static int hf_lustre_changelog_ext_rename_spfid;
static int hf_lustre_changelog_ext_jobid_jobid;
static int hf_lustre_changelog_extra_flags_extra_flags;
static int hf_lustre_changelog_ext_name;
static int hf_lustre_lustre_cfg;
static int hf_lustre_lustre_cfg_version;
static int hf_lustre_lustre_cfg_command;
static int hf_lustre_lustre_cfg_num;
static int hf_lustre_lustre_cfg_flags;
static int hf_lustre_lustre_cfg_nid;
static int hf_lustre_lustre_cfg_padding;
static int hf_lustre_lustre_cfg_bufcount;
static int hf_lustre_lustre_cfg_buflen;
static int hf_lustre_lustre_cfg_buffer;
static int hf_lustre_cfg_marker;
static int hf_lustre_cfg_marker_step;
static int hf_lustre_cfg_marker_flags;
static int hf_lustre_cfg_marker_vers;
static int hf_lustre_cfg_marker_padding;
static int hf_lustre_cfg_marker_createtime;
static int hf_lustre_cfg_marker_canceltime;
static int hf_lustre_cfg_marker_tgtname;
static int hf_lustre_cfg_marker_comment;
static int hf_lustre_rcs;
static int hf_lustre_rcs_rc;
static int hf_lustre_fid_array;
static int hf_lustre_fid_array_fid;
static int hf_lustre_niobuf_remote;
static int hf_lustre_niobuf_remote_len;
static int hf_lustre_niobuf_remote_flags;
static int hf_lustre_niobuf_remote_offset;
static int hf_lustre_lov_ost_data_v1;
static int hf_lustre_lov_ost_data_v1_l_ost_gen;
static int hf_lustre_lov_ost_data_v1_l_ost_idx;
static int hf_lustre_lmv_mds_md;
static int hf_lustre_lmv_mds_md_magic;
static int hf_lustre_lmv_mds_md_stripe_count;
static int hf_lustre_lmv_mds_md_master_mdt_index;
static int hf_lustre_lmv_mds_md_hash_type;
static int hf_lustre_lmv_mds_md_status;
static int hf_lustre_lmv_mds_md_layout_version;
static int hf_lustre_lmv_mds_md_padding;
static int hf_lustre_lmv_mds_md_pool_name;
static int hf_lustre_lmv_mds_md_stripe_fid;
static int hf_lustre_lmv_user_md_v1;
static int hf_lustre_lmv_user_md_v1_magic;
static int hf_lustre_lmv_user_md_v1_stripe_count;
static int hf_lustre_lmv_user_md_v1_stripe_offset;
static int hf_lustre_lmv_user_md_v1_hash_type;
static int hf_lustre_lmv_user_md_v1_type;
static int hf_lustre_lmv_user_md_v1_max_inherit;
static int hf_lustre_lmv_user_md_v1_max_inherit_rr;
static int hf_lustre_lmv_user_md_v1_padding;
static int hf_lustre_lmv_user_md_v1_pool_name;
static int hf_lustre_lmv_user_md_v1_objects;
static int hf_lustre_lmv_user_mds_data;
static int hf_lustre_lmv_user_mds_data_fid;
static int hf_lustre_lmv_user_mds_data_padding;
static int hf_lustre_lmv_user_mds_data_mds;
static int hf_lustre_lov_mds_md;
static int hf_lustre_lov_mds_md_lmm_magic;
static int hf_lustre_lov_mds_md_lmm_stripe_size;
static int hf_lustre_lov_mds_md_lmm_object_id;
static int hf_lustre_lov_mds_md_lmm_object_seq;
static int hf_lustre_lov_mds_md_lmm_stripe_count;
static int hf_lustre_lov_mds_md_lmm_pattern;
static int hf_lustre_lov_mds_md_lmm_layout_gen;
static int hf_lustre_lov_mds_md_lmm_pool_name;
static int hf_lustre_lov_desc;
static int hf_lustre_lov_desc_padding;
static int hf_lustre_lov_desc_pattern;
static int hf_lustre_lov_desc_default_stripe_count;
static int hf_lustre_lov_desc_magic;
static int hf_lustre_lov_desc_uuid;
static int hf_lustre_lov_desc_tgt_count;
static int hf_lustre_lov_desc_default_stripe_size;
static int hf_lustre_lov_desc_default_stripe_offset;
static int hf_lustre_lov_desc_qos_maxage;
static int hf_lustre_quota_body;
static int hf_lustre_qb_flags;
static int hf_lustre_qb_fid;
static int hf_lustre_qb_padding;
static int hf_lustre_qb_lockh;
static int hf_lustre_qb_glb_lockh;
static int hf_lustre_qb_count;
static int hf_lustre_qb_usage;
static int hf_lustre_qb_slv_ver;
static int hf_lustre_quota_adjust_qunit;
static int hf_lustre_quota_adjust_qunit_qaq_id;
static int hf_lustre_quota_adjust_qunit_qaq_flags;
static int hf_lustre_quota_adjust_qunit_qaq_iunit_sz;
static int hf_lustre_quota_adjust_qunit_qaq_bunit_sz;
static int hf_lustre_quota_adjust_qunit_padding1;
static int hf_lustre_lquota_id;
static int hf_lustre_qid_fid;
static int hf_lustre_qid_uid;
static int hf_lustre_qid_gid;
static int hf_lustre_ldlm_extent_gid;
static int hf_lustre_ldlm_extent_start;
static int hf_lustre_ldlm_extent_end;
static int hf_lustre_ldlm_flock_owner;
static int hf_lustre_ldlm_flock_pid;
static int hf_lustre_ldlm_flock_start;
static int hf_lustre_ldlm_flock_end;
static int hf_lustre_ldlm_flock_padding;
static int hf_lustre_ldlm_request;
static int hf_lustre_ldlm_request_lock_handle;
static int hf_lustre_ldlm_request_lock_flags;
static int hf_lustre_ldlm_request_lock_count;
static int hf_lustre_ldlm_reply;
static int hf_lustre_ldlm_reply_lock_flags;
static int hf_lustre_ldlm_reply_lock_policy_res1;
static int hf_lustre_ldlm_reply_lock_policy_res2;
static int hf_lustre_ldlm_reply_lock_handle;
static int hf_lustre_ldlm_reply_lock_padding;
static int hf_lustre_ldlm_inodebits_bits;
static int hf_lustre_ldlm_inodebits_try_bits;
static int hf_lustre_ldlm_lock_desc;
static int hf_lustre_ldlm_lock_desc_l_policy_data;
static int hf_lustre_ldlm_lock_desc_l_granted_mode;
static int hf_lustre_ldlm_lock_desc_l_req_mode;
static int hf_lustre_ldlm_res_id;
static int hf_lustre_ldlm_res_id_name;
static int hf_lustre_ldlm_res_id_bits;
static int hf_lustre_ldlm_res_id_string;
static int hf_lustre_ldlm_res_id_type;
static int hf_lustre_ldlm_resource_desc;
static int hf_lustre_ldlm_resource_desc_lr_type;
static int hf_lustre_ldlm_resource_desc_lr_padding;
static int hf_lustre_ldlm_intent_opc;
static int hf_lustre_ldlm_intent_opc_open;
static int hf_lustre_ldlm_intent_opc_creat;
static int hf_lustre_ldlm_intent_opc_readdir;
static int hf_lustre_ldlm_intent_opc_getattr;
static int hf_lustre_ldlm_intent_opc_lookup;
static int hf_lustre_ldlm_intent_opc_unlink;
static int hf_lustre_ldlm_intent_opc_trunc;
static int hf_lustre_ldlm_intent_opc_getxattr;
static int hf_lustre_ldlm_intent_opc_exec;
static int hf_lustre_ldlm_intent_opc_pin;
static int hf_lustre_ldlm_intent_opc_layout;
static int hf_lustre_ldlm_intent_opc_q_dqacq;
static int hf_lustre_ldlm_intent_opc_q_conn;
static int hf_lustre_ldlm_intent_opc_setxattr;
static int hf_lustre_ldlm_gl_barrier_desc;
static int hf_lustre_ldlm_gl_barrier_desc_status;
static int hf_lustre_ldlm_gl_barrier_desc_timeout;
static int hf_lustre_ldlm_gl_barrier_desc_padding;
static int hf_lustre_ldlm_gl_lquota_desc;
static int hf_lustre_ldlm_gl_lquota_desc_flags;
static int hf_lustre_ldlm_gl_lquota_desc_ver;
static int hf_lustre_ldlm_gl_lquota_desc_hardlimit;
static int hf_lustre_ldlm_gl_lquota_desc_softlimit;
static int hf_lustre_ldlm_gl_lquota_desc_time;
static int hf_lustre_ldlm_gl_lquota_desc_pad2;
static int hf_lustre_ldlm_key;
static int hf_lustre_ldlm_val;
static int hf_lustre_barrier_lvb;
static int hf_lustre_barrier_lvb_status;
static int hf_lustre_barrier_lvb_index;
static int hf_lustre_barrier_lvb_padding;
static int hf_lustre_mgs_target_info;
static int hf_lustre_mgs_target_info_mti_flags;
static int hf_lustre_mgs_target_info_mti_fsname;
static int hf_lustre_mgs_target_info_mti_svname;
static int hf_lustre_mgs_target_info_mti_config_ver;
static int hf_lustre_mgs_target_info_mti_uuid;
static int hf_lustre_mgs_target_info_mti_stripe_index;
static int hf_lustre_mgs_target_info_mti_params;
static int hf_lustre_mgs_target_info_mti_nids;
static int hf_lustre_mgs_target_info_mti_lustre_ver;
static int hf_lustre_mgs_target_info_mti_nid_count;
static int hf_lustre_mgs_target_info_mti_instance;
static int hf_lustre_mgs_target_info_padding;
static int hf_lustre_mgs_send_param;
static int hf_lustre_mgs_config_body;
static int hf_lustre_mgs_config_body_name;
static int hf_lustre_mgs_config_body_offset;
static int hf_lustre_mgs_config_body_type;
static int hf_lustre_mgs_config_body_nm_cur_pass;
static int hf_lustre_mgs_config_body_bits;
static int hf_lustre_mgs_config_body_units;
static int hf_lustre_mgs_config_res;
static int hf_lustre_mgs_config_res_offset;
static int hf_lustre_mgs_config_res_size;
static int hf_lustre_mgs_config_res_nm_cur_pass;
static int hf_lustre_lustre_handle;
static int hf_lustre_lustre_handle_cookie;
static int hf_lustre_lu_fid_f_seq;
static int hf_lustre_lu_fid_f_oid;
static int hf_lustre_lu_fid_f_ver;
static int hf_lustre_ost_oi_id;
static int hf_lustre_ost_oi_seq;
static int hf_lustre_obdo;
static int hf_lustre_obdo_o_nlink;
static int hf_lustre_obdo_o_uid;
static int hf_lustre_obdo_o_valid;
static int hf_lustre_obdo_o_misc;
static int hf_lustre_obdo_o_padding_4;
static int hf_lustre_obdo_o_size;
static int hf_lustre_obdo_o_mode;
static int hf_lustre_obdo_o_handle;
static int hf_lustre_obdo_o_atime;
static int hf_lustre_obdo_o_gid;
static int hf_lustre_obdo_o_ioepoch;
static int hf_lustre_obdo_o_data_version;
static int hf_lustre_obdo_o_projid;
//static int hf_lustre_obdo_o_lcookie;
static int hf_lustre_obdo_o_padding_6;
static int hf_lustre_obdo_o_padding_3;
static int hf_lustre_obdo_o_flags;
static int hf_lustre_obdo_o_mtime;
static int hf_lustre_obdo_o_blksize;
static int hf_lustre_obdo_o_blocks;
static int hf_lustre_obdo_o_grant;
static int hf_lustre_obdo_o_uid_h;
static int hf_lustre_obdo_o_gid_h;
static int hf_lustre_obdo_o_stripe_idx;
static int hf_lustre_obdo_o_parent_ver;
static int hf_lustre_obdo_o_parent_oid;
static int hf_lustre_obdo_o_padding_5;
static int hf_lustre_obdo_o_parent_seq;
static int hf_lustre_obdo_o_ctime;
static int hf_lustre_xattr_list;
static int hf_lustre_xattr;
static int hf_lustre_xattr_name;
static int hf_lustre_xattr_data;
static int hf_lustre_xattr_size;
static int hf_lustre_seq_opc;
static int hf_lustre_seq_range;
static int hf_lustre_seq_range_start;
static int hf_lustre_seq_range_end;
static int hf_lustre_seq_range_index;
static int hf_lustre_seq_range_flags;
static int hf_lustre_fld_opc;
static int hf_lustre_capa;
static int hf_lustre_capa_fid;
static int hf_lustre_capa_opc;
static int hf_lustre_capa_uid;
static int hf_lustre_capa_gid;
static int hf_lustre_capa_flags;
static int hf_lustre_capa_keyid;
static int hf_lustre_capa_timeout;
static int hf_lustre_capa_expiry;
static int hf_lustre_capa_hmac;
static int hf_lustre_acl;
static int hf_lustre_hsm_user_item;
static int hf_lustre_hsm_user_item_fid;
static int hf_lustre_layout_intent;
static int hf_lustre_layout_intent_opc;
static int hf_lustre_layout_intent_flags;
static int hf_lustre_layout_intent_start;
static int hf_lustre_layout_intent_end;
static int hf_lustre_data;
static int hf_lustre_name;
static int hf_lustre_filename;
static int hf_lustre_secctx_name;
static int hf_lustre_selinux_pol;
static int hf_lustre_target;
static int hf_lustre_eadata;
static int hf_lustre_idx_info;
static int hf_lustre_idx_info_magic;
static int hf_lustre_idx_info_flags;
static int hf_lustre_idx_info_count;
static int hf_lustre_idx_info_attrs;
static int hf_lustre_idx_info_fid;
static int hf_lustre_idx_info_hash_start;
static int hf_lustre_idx_info_hash_end;
static int hf_lustre_idx_info_keysize;
static int hf_lustre_idx_info_recsize;
static int hf_lustre_idx_info_padding;
static int hf_lustre_out_update_header;
static int hf_lustre_out_update_header_magic;
static int hf_lustre_out_update_header_count;
static int hf_lustre_out_update_header_inline_length;
static int hf_lustre_out_update_header_reply_size;
static int hf_lustre_out_update_header_inline_data;
static int hf_lustre_out_update_buffer;
static int hf_lustre_out_update_buffer_size;
static int hf_lustre_out_update_buffer_padding;
static int hf_lustre_obj_update_reply;
static int hf_lustre_obj_update_reply_magic;
static int hf_lustre_obj_update_reply_count;
static int hf_lustre_obj_update_reply_padding;
static int hf_lustre_obj_update_reply_lens;
static int hf_lustre_obj_update_request;
static int hf_lustre_obj_update_request_magic;
static int hf_lustre_obj_update_request_count;
static int hf_lustre_obj_update_request_padding;
static int hf_lustre_obj_update_result;
static int hf_lustre_obj_update_result_rc;
static int hf_lustre_obj_update_result_datalen;
static int hf_lustre_obj_update_result_padding;
static int hf_lustre_obj_update_result_data;
static int hf_lustre_obj_update;
static int hf_lustre_obj_update_type;
static int hf_lustre_obj_update_params_count;
static int hf_lustre_obj_update_result_size;
static int hf_lustre_obj_update_flags;
static int hf_lustre_obj_update_padding;
static int hf_lustre_obj_update_batchid;
static int hf_lustre_obj_update_fid;
static int hf_lustre_obj_update_param;
static int hf_lustre_obj_update_param_len;
static int hf_lustre_obj_update_param_padding;
static int hf_lustre_obj_update_param_buf;
static int hf_lustre_lfsck_request;
static int hf_lustre_lfsck_request_event;
static int hf_lustre_lfsck_request_index;
static int hf_lustre_lfsck_request_flags;
static int hf_lustre_lfsck_request_valid;
static int hf_lustre_lfsck_request_speed;
static int hf_lustre_lfsck_request_status;
static int hf_lustre_lfsck_request_version;
static int hf_lustre_lfsck_request_active;
static int hf_lustre_lfsck_request_param;
static int hf_lustre_lfsck_request_async_windows;
static int hf_lustre_lfsck_request_flags2;
static int hf_lustre_lfsck_request_fid;
static int hf_lustre_lfsck_request_fid2;
static int hf_lustre_lfsck_request_comp_id;
static int hf_lustre_lfsck_request_padding;
static int hf_lustre_lfsck_reply;
static int hf_lustre_lfsck_reply_status;
static int hf_lustre_lfsck_reply_padding;
static int hf_lustre_lfsck_reply_repaired;
/* Ett declarations */
static int ett_lustre;
static int ett_lustre_lustre_handle_cookie;
static int ett_lustre_lustre_msg_v1;
static int ett_lustre_lustre_handle_v1;
static int ett_lustre_lustre_msg_v2;
static int ett_lustre_ptlrpc_body;
static int ett_lustre_lustre_handle_v2;
static int ett_lustre_obd_connect_data;
static int ett_lustre_lov_ost_data_v1;
static int ett_lustre_obd_statfs;
static int ett_lustre_obd_ioobj;
static int ett_lustre_niobuf_remote;
static int ett_lustre_rcs;
static int ett_lustre_fid_array;
static int ett_lustre_ost_lvb;
static int ett_lustre_lu_fid;
static int ett_lustre_mdc_swap_layouts;
static int ett_lustre_mdt_body;
static int ett_lustre_mdt_rec_reint;
static int ett_lustre_obd_quotactl;
static int ett_lustre_obd_dqinfo;
static int ett_lustre_obd_dqblk;
static int ett_lustre_quota_adjust_qunit;
static int ett_lustre_lov_desc;
static int ett_lustre_obd_uuid;
static int ett_lustre_ldlm_res_id;
static int ett_lustre_ldlm_extent;
static int ett_lustre_ldlm_inodebits;
static int ett_lustre_ldlm_flock;
static int ett_lustre_ldlm_intent_opc;
static int ett_lustre_ldlm_resource_desc;
static int ett_lustre_ldlm_lock_desc;
static int ett_lustre_ldlm_request;
static int ett_lustre_lustre_handle;
static int ett_lustre_ldlm_reply;
static int ett_lustre_ldlm_gl_barrier_desc;
static int ett_lustre_ldlm_gl_lquota_desc;
static int ett_lustre_mgs_target_info;
static int ett_lustre_mgs_config_body;
static int ett_lustre_mgs_config_res;
static int ett_lustre_llog_rec;
static int ett_lustre_llog_rec_hdr;
static int ett_lustre_llog_rec_tail;
static int ett_lustre_llog_logid_rec;
static int ett_lustre_llog_logid;
static int ett_lustre_lmv_mds_md;
static int ett_lustre_lmv_user_md_v1;
static int ett_lustre_lmv_user_mds_data;
static int ett_lustre_lov_mds_md;
static int ett_lustre_llog_unlink_rec;
static int ett_lustre_llog_unlink64_rec;
static int ett_lustre_llog_setattr_rec;
static int ett_lustre_llog_setattr64_rec;
static int ett_lustre_llog_size_change_rec;
static int ett_lustre_llog_gen_rec;
static int ett_lustre_llog_changelog_rec;
static int ett_lustre_llog_log_hdr;
static int ett_lustre_llog_hdr_flags;
static int ett_lustre_llog_cookie;
static int ett_lustre_llogd_body;
static int ett_lustre_llogd_conn_body;
static int ett_lustre_llog_gen;
static int ett_lustre_changelog_rec;
static int ett_lustre_lustre_cfg;
static int ett_lustre_cfg_marker;
static int ett_lustre_obdo;
static int ett_lustre_ost_body;
static int ett_lustre_ldlm_lock_flags;
static int ett_lustre_seq_range;
static int ett_lustre_mdt_ioepoch;
static int ett_lustre_capa;
static int ett_lustre_idx_info;
static int ett_lustre_close_data;
static int ett_lustre_acl;
static int ett_lustre_ladvise_hdr;
static int ett_lustre_ladvise;
static int ett_lustre_hsm_request;
static int ett_lustre_hsm_archive;
static int ett_lustre_hsm_current_action;
static int ett_lustre_hsm_user_item;
static int ett_lustre_hsm_extent;
static int ett_lustre_hsm_state_set;
static int ett_lustre_hsm_progress;
static int ett_lustre_hsm_user_state;
static int ett_lustre_quota_body;
static int ett_lustre_lquota_id;
static int ett_lustre_layout_intent;
static int ett_lustre_xattrs;
static int ett_lustre_xattr_item;
static int ett_lustre_ost_id;
static int ett_lustre_ost_id_oi;
static int ett_lustre_ost_layout;
static int ett_lustre_eadata;
static int ett_lustre_out_update_header;
static int ett_lustre_out_update_header_data;
static int ett_lustre_out_update_buffer;
static int ett_lustre_obj_update_reply;
static int ett_lustre_obj_update_result;
static int ett_lustre_object_update_request;
static int ett_lustre_object_update;
static int ett_lustre_object_update_param;
static int ett_lustre_lfsck_request;
static int ett_lustre_lfsck_reply;
static int ett_lustre_barrier_lvb;
static expert_field ei_lustre_buflen;
static expert_field ei_lustre_badopc;
static expert_field ei_lustre_badmagic;
static expert_field ei_lustre_obsopc;
/* --------------------------------------------------------------------------------------- */
/* def and macro to know where we are the the lustre payload */
#define LUSTRE_MAGIC_OFFSET 8
#define LUSTRE_BUFCOUNT_OFF ((tvb_get_letohl(tvb, LUSTRE_MAGIC_OFFSET)== MSG_MAGIC_V2) ? 0 : 60)
#define LUSTRE_BUFCOUNT ((tvb_get_letohl(tvb, LUSTRE_MAGIC_OFFSET)== MSG_MAGIC_V2) \
? (tvb_get_letohl(tvb, LUSTRE_BUFCOUNT_OFF)) : ((tvb_get_letohl(tvb, LUSTRE_BUFCOUNT_OFF))) )
/* remark : BUFLENOFF don't have the same meaning if it's for v1 or v2
* v1 : LUSTRE_BUFLEN_OFF = offset buflen[0] - 4 bytes.
* v2 : LUSTRE_BUFLEN_OFF = offset buflen[0]
*/
#define LUSTRE_BUFLEN_OFF ((tvb_get_letohl(tvb, LUSTRE_MAGIC_OFFSET)== MSG_MAGIC_V2) ? 32 : 60)
/* LUSTRE_BUFFER_LEN(buffnum) */
#define LUSTRE_BUFFER_LEN(_n) (LUSTRE_BUFCOUNT <= (_n) ? 0 \
: tvb_get_letohl(tvb, LUSTRE_BUFLEN_OFF+ \
4*(_n)))
#define LUSTRE_REC_OFF 1 /* normal request/reply record offset */
/* --------------------------------------------------------------------------------------- */
#define LUSTRE_PTLRPC_MSG_VERSION 0x00000003
#define LUSTRE_VERSION_MASK 0xffff0000
#if 0 /* @@ NOT USED */
#define LUSTRE_OBD_VERSION 0x00010000
#define LUSTRE_MDS_VERSION 0x00020000
#define LUSTRE_OST_VERSION 0x00030000
#define LUSTRE_DLM_VERSION 0x00040000
#define LUSTRE_LOG_VERSION 0x00050000
#define LUSTRE_MGS_VERSION 0x00060000
#endif
#define LMV_HASH_TYPE_MASK 0x0000ffff
#define lustre_magic_VALUE_STRING_LIST(XXX) \
XXX(MSG_MAGIC_V1, 0x0BD00BD0) \
XXX(MSG_MAGIC_V2, 0x0BD00BD3) \
XXX(LOV_MAGIC_V1, 0x0BD10BD0) \
XXX(LOV_MAGIC_V3, 0x0BD30BD0) \
XXX(LMV_MAGIC_V1, 0x0CD20CD0) \
XXX(LMV_USER_MAGIC, 0x0CD30CD0) \
XXX(LMV_MAGIC_STRIPE, 0x0CD40CD0) \
XXX(LMV_MAGIC_FOREIGN, 0x0CD50CD0) \
XXX(LADVISE_MAGIC, 0x1ADF1CE0) \
XXX(IDX_INFO_MAGIC, 0x3D37CC37)
VALUE_STRING_ENUM2(lustre_magic);
VALUE_STRING_ARRAY2(lustre_magic);
#define lov_pattern_vals_VALUE_STRING_LIST(XXX) \
XXX(LOV_PATTERN_NONE, 0x000, "NONE") \
XXX(LOV_PATTERN_RAID0, 0x001, "RAID0") \
XXX(LOV_PATTERN_RAID1, 0x002, "RAID1") \
XXX(LOV_PATTERN_MDT, 0x100, "MDT") \
XXX(LOV_PATTERN_CMOBD, 0x200, "CMOBD")
VALUE_STRING_ENUM(lov_pattern_vals);
VALUE_STRING_ARRAY(lov_pattern_vals);
#define lmv_hash_type_vals_VALUE_STRING_LIST(XXX) \
XXX(LMV_HASH_TYPE_ALL_CHARS, 1, "all_char") \
XXX(LMV_HASH_TYPE_FNV_1A_64, 2, "fnv_1a_64") \
XXX(LMV_HASH_TYPE_CRUSH, 3, "crush") \
XXX(LMV_HASH_TYPE_CRUSH2, 4, "crush2")
VALUE_STRING_ENUM(lmv_hash_type_vals);
VALUE_STRING_ARRAY(lmv_hash_type_vals);
#define capa_flags_vals_VALUE_STRING_LIST(XXX) \
XXX(CAPA_OPC_BODY_WRITE, 1<<0) \
XXX(CAPA_OPC_BODY_READ, 1<<1) \
XXX(CAPA_OPC_INDEX_LOOKUP, 1<<2) \
XXX(CAPA_OPC_INDEX_INSERT, 1<<3) \
XXX(CAPA_OPC_INDEX_DELETE, 1<<4) \
XXX(CAPA_OPC_OSS_WRITE, 1<<5) \
XXX(CAPA_OPC_OSS_READ, 1<<6) \
XXX(CAPA_OPC_OSS_TRUNC, 1<<7) \
XXX(CAPA_OPC_OSS_DESTROY, 1<<8) \
XXX(CAPA_OPC_META_WRITE, 1<<9) \
XXX(CAPA_OPC_META_READ, 1<<10)
//VALUE_STRING_ENUM2(capa_flags_vals);
VALUE_STRING_ARRAY2(capa_flags_vals);
#define lustre_op_codes_VALUE_STRING_LIST(XXX) \
XXX(OST_REPLY, 0) \
XXX(OST_GETATTR, 1) \
XXX(OST_SETATTR, 2) \
XXX(OST_READ, 3) \
XXX(OST_WRITE, 4) \
XXX(OST_CREATE, 5) \
XXX(OST_DESTROY, 6) \
XXX(OST_GET_INFO, 7) \
XXX(OST_CONNECT, 8) \
XXX(OST_DISCONNECT, 9) \
XXX(OST_PUNCH, 10) \
XXX(OST_OPEN, 11) \
XXX(OST_CLOSE, 12) \
XXX(OST_STATFS, 13) \
XXX(OST_SYNC, 16) \
XXX(OST_SET_INFO, 17) \
XXX(OST_QUOTACHECK, 18) \
XXX(OST_QUOTACTL, 19) \
XXX(OST_QUOTA_ADJUST_QUNIT, 20) \
XXX(OST_LADVISE, 21) \
XXX(OST_LAST_OPC, 22) \
XXX(MDS_GETATTR, 33) \
XXX(MDS_GETATTR_NAME, 34) \
XXX(MDS_CLOSE, 35) \
XXX(MDS_REINT, 36) \
XXX(MDS_READPAGE, 37) \
XXX(MDS_CONNECT, 38) \
XXX(MDS_DISCONNECT, 39) \
XXX(MDS_GET_ROOT, 40) \
XXX(MDS_STATFS, 41) \
XXX(MDS_PIN, 42) \
XXX(MDS_UNPIN, 43) \
XXX(MDS_SYNC, 44) \
XXX(MDS_DONE_WRITING, 45) \
XXX(MDS_SET_INFO, 46) \
XXX(MDS_QUOTACHECK, 47) \
XXX(MDS_QUOTACTL, 48) \
XXX(MDS_GETXATTR, 49) \
XXX(MDS_SETXATTR, 50) \
XXX(MDS_WRITEPAGE, 51) \
XXX(MDS_IS_SUBDIR, 52) \
XXX(MDS_GET_INFO, 53) \
XXX(MDS_HSM_STATE_GET, 54) \
XXX(MDS_HSM_STATE_SET, 55) \
XXX(MDS_HSM_ACTION, 56) \
XXX(MDS_HSM_PROGRESS, 57) \
XXX(MDS_HSM_REQUEST, 58) \
XXX(MDS_HSM_CT_REGISTER, 59) \
XXX(MDS_HSM_CT_UNREGISTER, 60) \
XXX(MDS_SWAP_LAYOUTS, 61) \
XXX(MDS_RMFID, 62) \
XXX(MDS_LAST_OPC, 63) \
XXX(LDLM_ENQUEUE, 101) \
XXX(LDLM_CONVERT, 102) \
XXX(LDLM_CANCEL, 103) \
XXX(LDLM_BL_CALLBACK, 104) \
XXX(LDLM_CP_CALLBACK, 105) \
XXX(LDLM_GL_CALLBACK, 106) \
XXX(LDLM_SET_INFO, 107) \
XXX(LDLM_LAST_OPC, 108) \
XXX(MGS_CONNECT, 250) \
XXX(MGS_DISCONNECT, 251) \
XXX(MGS_EXCEPTION, 252) \
XXX(MGS_TARGET_REG, 253) \
XXX(MGS_TARGET_DEL, 254) \
XXX(MGS_SET_INFO, 255) \
XXX(MGS_CONFIG_READ, 256) \
XXX(MGS_LAST_OPC, 257) \
XXX(OBD_PING, 400) \
XXX(OBD_LOG_CANCEL, 401) \
XXX(OBD_QC_CALLBACK, 402) \
XXX(OBD_IDX_READ, 403) \
XXX(OBD_LAST_OPC, 404) \
XXX(LLOG_ORIGIN_HANDLE_CREATE, 501) \
XXX(LLOG_ORIGIN_HANDLE_NEXT_BLOCK, 502) \
XXX(LLOG_ORIGIN_HANDLE_READ_HEADER, 503) \
XXX(LLOG_ORIGIN_HANDLE_WRITE_REC, 504) \
XXX(LLOG_ORIGIN_HANDLE_CLOSE, 505) \
XXX(LLOG_ORIGIN_CONNECT, 506) \
XXX(LLOG_CATINFO, 507) \
XXX(LLOG_ORIGIN_HANDLE_PREV_BLOCK, 508) \
XXX(LLOG_ORIGIN_HANDLE_DESTROY, 509) \
XXX(LLOG_LAST_OPC, 510) \
XXX(QUOTA_DQACQ, 601) \
XXX(QUOTA_DQREL, 602) \
XXX(QUOTA_LAST_OPC, 603) \
XXX(SEQ_QUERY, 700) \
XXX(SEQ_LAST_OPC, 701) \
XXX(SEC_CTX_INIT, 801) \
XXX(SEC_CTX_INIT_CONT, 802) \
XXX(SEC_CTX_FINI, 803) \
XXX(SEC_LAST_OPC, 804) \
XXX(FLD_QUERY, 900) \
XXX(FLD_READ, 901) \
XXX(FLD_LAST_OPC, 902) \
XXX(OUT_UPDATE, 1000) \
XXX(OUT_UPDATE_LAST_OPC, 1001) \
XXX(LFSCK_NOTIFY, 1101) \
XXX(LFSCK_QUERY, 1102) \
XXX(LFSCK_LAST_OPC, 1103)
VALUE_STRING_ENUM2(lustre_op_codes);
VALUE_STRING_ARRAY2(lustre_op_codes);
#define OST_FIRST_OPC OST_REPLY
#define QUOTA_FIRST_OPC QUOTA_DQACQ
#define MDS_FIRST_OPC MDS_GETATTR
#define OUT_UPDATE_FIRST_OPC OUT_UPDATE
#define FLD_FIRST_OPC FLD_QUERY
#define SEQ_FIRST_OPC SEQ_QUERY
#define LFSCK_FIRST_OPC LFSCK_NOTIFY
#define LDLM_FIRST_OPC LDLM_ENQUEUE
#define MGS_FIRST_OPC MGS_CONNECT
#define OBD_FIRST_OPC OBD_PING
#define LLOG_FIRST_OPC LLOG_ORIGIN_HANDLE_CREATE
#define SEC_FIRST_OPC SEC_CTX_INIT
#define lustre_LMTypes_VALUE_STRING_LIST(XXX) \
XXX(PTL_RPC_MSG_REQUEST, 4711, "request") \
XXX(PTL_RPC_MSG_ERR, 4712, "error") \
XXX(PTL_RPC_MSG_REPLY, 4713, "reply")
VALUE_STRING_ENUM(lustre_LMTypes);
VALUE_STRING_ARRAY(lustre_LMTypes);
static const true_false_string lnet_flags_set_truth = { "Set", "Unset" };
#define lustre_layout_intent_opc_vals_VALUE_STRING_LIST(XXX) \
XXX(LAYOUT_INTENT_ACCESS, 0, "ACCESS") \
XXX(LAYOUT_INTENT_READ, 1, "READ") \
XXX(LAYOUT_INTENT_WRITE, 2, "WRITE") \
XXX(LAYOUT_INTENT_GLIMPSE, 3, "GLIMPSE") \
XXX(LAYOUT_INTENT_TRUNC, 4, "TRUNCATE") \
XXX(LAYOUT_INTENT_RELEASE, 5, "RELEASE") \
XXX(LAYOUT_INTENT_RESTORE, 6, "RESTORE")
//VALUE_STRING_ENUM(lustre_layout_intent_opc_vals);
VALUE_STRING_ARRAY(lustre_layout_intent_opc_vals);
#define obd_statfs_state_VALUE_STRING_LIST(XXX) \
XXX(OS_STATE_DEGRADED, 0x00000001, "Degraded") \
XXX(OS_STATE_READONLY, 0x00000002, "ReadOnly") \
XXX(OS_STATE_ENOSPC, 0x00000020, "No Space") \
XXX(OS_STATE_ENOINO, 0x00000040, "No Indoes") \
XXX(OS_STATE_SUM, 0x00000100, "Sum") \
XXX(OS_STATE_NONROT, 0x00000200, "Non-Rotating")
//VALUE_STRING_ENUM(obd_statfs_state);
VALUE_STRING_ARRAY(obd_statfs_state);
/********************************************************************
*
* OST Definitions
*
*/
#define lu_ladvise_type_vals_VALUE_STRING_LIST(XXX) \
XXX(LU_LADVISE_WILLREAD, 1, "willread") \
XXX(LU_LADVISE_DONTNEED, 2, "dontneed")
//VALUE_STRING_ENUM2(lu_ladvise_type_vals);
VALUE_STRING_ARRAY(lu_ladvise_type_vals);
/********************************************************************
*
* MDS Definitions
*
*/
#define mds_reint_vals_VALUE_STRING_LIST(XXX) \
XXX(REINT_SETATTR, 1, "SETATTR") \
XXX(REINT_CREATE, 2, "CREATE") \
XXX(REINT_LINK, 3, "LINK") \
XXX(REINT_UNLINK, 4, "UNLINK") \
XXX(REINT_RENAME, 5, "RENAME") \
XXX(REINT_OPEN, 6, "OPEN") \
XXX(REINT_SETXATTR, 7, "SETXATTR") \
XXX(REINT_RMENTRY, 8, "RMENTRY") \
XXX(REINT_MIGRATE, 9, "MIGRATE")
VALUE_STRING_ENUM(mds_reint_vals);
VALUE_STRING_ARRAY(mds_reint_vals);
#define lustre_mds_flags_vals_VALUE_STRING_LIST(XXX) \
XXX(LUSTRE_SYNC_FL, 0x00000008) \
XXX(LUSTRE_IMMUTABLE_FL, 0x00000010) \
XXX(LUSTRE_APPEND_FL, 0x00000020) \
XXX(LUSTRE_NODUMP_FL, 0x00000040) \
XXX(LUSTRE_NOATIME_FL, 0x00000080) \
XXX(LUSTRE_INDEX_FL, 0x00001000) \
XXX(LUSTRE_DIRSYNC_FL, 0x00010000) \
XXX(LUSTRE_TOPDIR_FL, 0x00020000) \
XXX(LUSTRE_DIRECTIO_FL, 0x00100000) \
XXX(LUSTRE_INLINE_DATA_FL, 0x10000000) \
XXX(LUSTRE_PROJINHERIT_FL, 0x20000000) \
XXX(LUSTRE_ORPHAN_FL, 0x00002000)
//VALUE_STRING_ENUM2(lustre_mds_flags_vals);
VALUE_STRING_ARRAY2(lustre_mds_flags_vals);
/********************************************************************
*
* MGS Definitions
*
*/
#define mgs_config_body_type_vals_VALUE_STRING_LIST(XXX) \
XXX(CONFIG_T_CONFIG, 0, "CONFIG") \
XXX(CONFIG_T_SPTLRPC, 1, "SPTLRPC") \
XXX(CONFIG_T_RECOVER, 2, "RECOVER") \
XXX(CONFIG_T_PARAMS, 3, "PARAMS") \
XXX(CONFIG_T_NODEMAP, 4, "NODEMAP") \
XXX(CONFIG_T_BARRIER, 5, "BARRIER")
VALUE_STRING_ENUM(mgs_config_body_type_vals);
VALUE_STRING_ARRAY(mgs_config_body_type_vals);
/********************************************************************
*
* LDLM Definitions
*
*/
#define lustre_ldlm_mode_vals_VALUE_STRING_LIST(XXX) \
XXX(LCK_MINMODE, 0, "MINMODE") \
XXX(LCK_EX, 1, "Exclusive") \
XXX(LCK_PW, 2, "Protected Write") \
XXX(LCK_PR, 4, "Protected Read") \
XXX(LCK_CW, 8, "Concurrent Write") \
XXX(LCK_CR, 16, "Concurrent Read") \
XXX(LCK_NL, 32, "Null") \
XXX(LCK_GROUP, 64, "Group") \
XXX(LCK_COS, 128, "Commit on Sharing")
VALUE_STRING_ENUM(lustre_ldlm_mode_vals);
VALUE_STRING_ARRAY(lustre_ldlm_mode_vals);
#define lustre_ldlm_type_vals_VALUE_STRING_LIST(XXX) \
XXX(LDLM_PLAIN, 10) \
XXX(LDLM_EXTENT, 11) \
XXX(LDLM_FLOCK, 12) \
XXX(LDLM_IBITS, 13)
VALUE_STRING_ENUM2(lustre_ldlm_type_vals);
VALUE_STRING_ARRAY2(lustre_ldlm_type_vals);
#define lustre_ldlm_intent_flags_VALUE_STRING_LIST(XXX) \
XXX(IT_OPEN, 0x00000001) \
XXX(IT_CREAT, 0x00000002) \
XXX(IT_OPEN_CREAT, 0x00000003) \
XXX(IT_READDIR, 0x00000004) \
XXX(IT_GETATTR, 0x00000008) \
XXX(IT_LOOKUP, 0x00000010) \
XXX(IT_UNLINK, 0x00000020) \
XXX(IT_TRUNC, 0x00000040) \
XXX(IT_GETXATTR, 0x00000080) \
XXX(IT_EXEC, 0x00000100) \
XXX(IT_PIN, 0x00000200) \
XXX(IT_LAYOUT, 0x00000400) \
XXX(IT_QUOTA_DQACQ, 0x00000800) \
XXX(IT_QUOTA_CONN, 0x00001000) \
XXX(IT_SETXATTR, 0x00002000)
VALUE_STRING_ENUM2(lustre_ldlm_intent_flags);
//VALUE_STRING_ARRAY2(lustre_ldlm_intent_flags);
#define lustre_barrier_status_vals_VALUE_STRING_LIST(XXX) \
XXX(BS_INIT, 0) \
XXX(BS_FREEZING_P1, 1) \
XXX(BS_FREEZING_P2, 2) \
XXX(BS_FROZEN, 3) \
XXX(BS_THAWING, 4) \
XXX(BS_THAWED, 5) \
XXX(BS_FAILED, 6) \
XXX(BS_EXPIRED, 7) \
XXX(BS_RESCAN, 8)
VALUE_STRING_ENUM2(lustre_barrier_status_vals);
VALUE_STRING_ARRAY2(lustre_barrier_status_vals);
#define LDLM_FL_LOCK_CHANGED 0x0000000000000001ULL
#define LDLM_FL_BLOCK_GRANTED 0x0000000000000002ULL
#define LDLM_FL_BLOCK_CONV 0x0000000000000004ULL
#define LDLM_FL_BLOCK_WAIT 0x0000000000000008ULL
#define LDLM_FL_AST_SENT 0x0000000000000020ULL
#define LDLM_FL_REPLAY 0x0000000000000100ULL
#define LDLM_FL_INTENT_ONLY 0x0000000000000200ULL
#define LDLM_FL_HAS_INTENT 0x0000000000001000ULL
#define LDLM_FL_FLOCK_DEADLOCK 0x0000000000008000ULL
#define LDLM_FL_DISCARD_DATA 0x0000000000010000ULL
#define LDLM_FL_NO_TIMEOUT 0x0000000000020000ULL
#define LDLM_FL_BLOCK_NOWAIT 0x0000000000040000ULL
#define LDLM_FL_TEST_LOCK 0x0000000000080000ULL
#define LDLM_FL_MATCH_LOCK 0x0000000000100000ULL
#define LDLM_FL_CANCEL_ON_BLOCK 0x0000000000800000ULL
#define LDLM_FL_COS_INCOMPAT 0x0000000001000000ULL
#define LDLM_FL_DENY_ON_CONTENTION 0x0000000040000000ULL
#define LDLM_FL_AST_DISCARD_DATA 0x0000000080000000ULL
/* ---- 32 Bits ---- */
#define LDLM_FL_FAIL_LOC 0x0000000100000000ULL
#define LDLM_FL_SKIPPED 0x0000000200000000ULL
#define LDLM_FL_CBPENDING 0x0000000400000000ULL
#define LDLM_FL_WAIT_NOREPROC 0x0000000800000000ULL
#define LDLM_FL_CANCEL 0x0000001000000000ULL
#define LDLM_FL_LOCAL_ONLY 0x0000002000000000ULL
#define LDLM_FL_FAILED 0x0000004000000000ULL
#define LDLM_FL_CANCELING 0x0000008000000000ULL
#define LDLM_FL_LOCAL 0x0000010000000000ULL
#define LDLM_FL_LVB_READY 0x0000020000000000ULL
#define LDLM_FL_KMS_IGNORE 0x0000040000000000ULL
#define LDLM_FL_CP_REQD 0x0000080000000000ULL
#define LDLM_FL_CLEANED 0x0000100000000000ULL
#define LDLM_FL_ATOMIC_CB 0x0000200000000000ULL
#define LDLM_FL_BL_AST 0x0000400000000000ULL
#define LDLM_FL_BL_DONE 0x0000800000000000ULL
#define LDLM_FL_NO_LRU 0x0001000000000000ULL
#define LDLM_FL_FAIL_NOTIFIED 0x0002000000000000ULL
#define LDLM_FL_DESTROYED 0x0004000000000000ULL
#define LDLM_FL_SERVER_LOCK 0x0008000000000000ULL
#define LDLM_FL_RES_LOCKED 0x0010000000000000ULL
#define LDLM_FL_WAITED 0x0020000000000000ULL
#define LDLM_FL_NS_SRV 0x0040000000000000ULL
#define LDLM_FL_EXCL 0x0080000000000000ULL
#define LDLM_FL_RESENT 0x0100000000000000ULL
#define LDLM_FL_COS_ENABLED 0x0200000000000000ULL
#if 0
static const value_string lustre_ldlm_flags_vals[] = {
{LDLM_FL_LOCK_CHANGED, "LDLM_FL_LOCK_CHANGED"},
{LDLM_FL_BLOCK_GRANTED, "LDLM_FL_BLOCK_GRANTED"},
{LDLM_FL_BLOCK_CONV, "LDLM_FL_BLOCK_CONV"},
{LDLM_FL_BLOCK_WAIT, "LDLM_FL_BLOCK_WAIT"},
{LDLM_FL_AST_SENT, "LDLM_FL_AST_SENT"},
{LDLM_FL_REPLAY, "LDLM_FL_REPLAY"},
{LDLM_FL_INTENT_ONLY, "LDLM_FL_INTENT_ONLY"},
{LDLM_FL_HAS_INTENT, "LDLM_FL_HAS_INTENT"},
{LDLM_FL_FLOCK_DEADLOCK, "LDLM_FL_FLOCK_DEADLOCK"},
{LDLM_FL_DISCARD_DATA, "LDLM_FL_DISCARD_DATA"},
{LDLM_FL_NO_TIMEOUT, "LDLM_FL_NO_TIMEOUT"},
{LDLM_FL_BLOCK_NOWAIT, "LDLM_FL_BLOCK_NOWAIT"},
{LDLM_FL_TEST_LOCK, "LDLM_FL_TEST_LOCK"},
{LDLM_FL_CANCEL_ON_BLOCK, "LDLM_FL_CANCEL_ON_BLOCK"},
{LDLM_FL_COS_INCOMPAT, "LDLM_FL_COS_INCOMPAT"},
{LDLM_FL_DENY_ON_CONTENTION, "LDLM_FL_DENY_ON_CONTENTION"},
{LDLM_FL_AST_DISCARD_DATA, "LDLM_FL_AST_DISCARD_DATA"},
{ 0, NULL }
};
#endif
/********************************************************************
*
* LLOG Definitions
*
*/
#define LLOG_OP_MAGIC 0x10600000
//#define LLOG_OP_MASK 0xfff00000
#define llog_op_types_VALUE_STRING_LIST(XXX) \
XXX(LLOG_PAD_MAGIC, LLOG_OP_MAGIC | 0x00000) \
XXX(OST_SZ_REC, LLOG_OP_MAGIC | 0x00f00) \
XXX(OST_RAID1_REC, LLOG_OP_MAGIC | 0x01000) \
XXX(MDS_UNLINK_REC, LLOG_OP_MAGIC | 0x10000 | (MDS_REINT << 8) | REINT_UNLINK) \
XXX(MDS_UNLINK64_REC, LLOG_OP_MAGIC | 0x90000 | (MDS_REINT << 8) | REINT_UNLINK) \
XXX(MDS_SETATTR_REC, LLOG_OP_MAGIC | 0x10000 | (MDS_REINT << 8) | REINT_SETATTR) \
XXX(MDS_SETATTR64_REC, LLOG_OP_MAGIC | 0x90000 | (MDS_REINT << 8) | REINT_SETATTR) \
XXX(OBD_CFG_REC, LLOG_OP_MAGIC | 0x20000) \
XXX(PTL_CFG_REC, LLOG_OP_MAGIC | 0x30000) \
XXX(LLOG_GEN_REC, LLOG_OP_MAGIC | 0x40000) \
XXX(LLOG_JOIN_REC, LLOG_OP_MAGIC | 0x50000) \
XXX(CHANGELOG_REC, LLOG_OP_MAGIC | 0x60000) \
XXX(CHANGELOG_USER_REC, LLOG_OP_MAGIC | 0x70000) \
XXX(HSM_AGENT_REC, LLOG_OP_MAGIC | 0x80000) \
XXX(UPDATE_REC, LLOG_OP_MAGIC | 0xa0000) \
XXX(LLOG_HDR_MAGIC, LLOG_OP_MAGIC | 0x45539) \
XXX(LLOG_LOGID_MAGIC, LLOG_OP_MAGIC | 0x4553b)
VALUE_STRING_ENUM2(llog_op_types);
VALUE_STRING_ARRAY2(llog_op_types);
#define llog_hdr_llh_flags_VALUE_STRING_LIST(XXX) \
XXX(LLOG_F_ZAP_WHEN_EMPTY, 0x01, "LLOhdr_llh_G_F_ZAP_WHEN_EMPTY") \
XXX(LLOG_F_IS_CAT, 0x02, "LLOhdr_llh_G_F_IS_CAT") \
XXX(LLOG_F_IS_PLAIN, 0x04, "LLOG_F_IS_PLAIN") \
XXX(LLOG_F_EXT_JOBID, 0x08, "LLOG_F_EXT_JOBID") \
XXX(LLOG_F_IS_FIXSIZE, 0x10, "LLOG_F_IS_FIXSIZE")
VALUE_STRING_ENUM(llog_hdr_llh_flags);
//VALUE_STRING_ARRAY(llog_hdr_llh_flags);
#define llog_ctxt_id_vals_VALUE_STRING_LIST(XXX) \
XXX(LLOG_CONFIG_ORIG_CTXT, 0) \
XXX(LLOG_CONFIG_REPL_CTXT, 1) \
XXX(LLOG_MDS_OST_ORIG_CTXT, 2) \
XXX(LLOG_MDS_OST_REPL_CTXT, 3) \
XXX(LLOG_SIZE_ORIG_CTXT, 4) \
XXX(LLOG_SIZE_REPL_CTXT, 5) \
XXX(LLOG_TEST_ORIG_CTXT, 8) \
XXX(LLOG_TEST_REPL_CTXT, 9) \
XXX(LLOG_CHANGELOG_ORIG_CTXT, 12) \
XXX(LLOG_CHANGELOG_REPL_CTXT, 13) \
XXX(LLOG_CHANGELOG_USER_ORIG_CTXT, 14) \
XXX(LLOG_AGENT_ORIG_CTXT, 15) \
XXX(LLOG_UPDATELOG_ORIG_CTXT, 16) \
XXX(LLOG_UPDATELOG_REPL_CTXT, 17)
//VALUE_STRING_ENUM2(llog_ctxt_id_vals);
VALUE_STRING_ARRAY2(llog_ctxt_id_vals);
#define changelog_rec_type_vals_VALUE_STRING_LIST(XXX) \
XXX(CL_MARK, 0) \
XXX(CL_CREATE, 1) \
XXX(CL_MKDIR, 2) \
XXX(CL_HARDLINK, 3) \
XXX(CL_SOFTLINK, 4) \
XXX(CL_MKNOD, 5) \
XXX(CL_UNLINK, 6) \
XXX(CL_RMDIR, 7) \
XXX(CL_RENAME, 8) \
XXX(CL_EXT, 9) \
XXX(CL_OPEN, 10) \
XXX(CL_CLOSE, 11) \
XXX(CL_LAYOUT, 12) \
XXX(CL_TRUNC, 13) \
XXX(CL_SETATTR, 14) \
XXX(CL_XATTR, 15) \
XXX(CL_HSM, 16) \
XXX(CL_MTIME, 17) \
XXX(CL_CTIME, 18) \
XXX(CL_ATIME, 19) \
XXX(CL_MIGRATE, 20) \
XXX(CL_FLRW, 21) \
XXX(CL_RESYNC, 22)
VALUE_STRING_ENUM2(changelog_rec_type_vals);
VALUE_STRING_ARRAY2(changelog_rec_type_vals);
#define changelog_rec_flags_vals_VALUE_STRING_LIST(XXX) \
XXX(CLF_VERSION, 0x1000) \
XXX(CLF_RENAME, 0x2000) \
XXX(CLF_JOBID, 0x4000) \
XXX(CLF_EXTRA_FLAGS, 0x8000)
VALUE_STRING_ENUM2(changelog_rec_flags_vals);
//VALUE_STRING_ARRAY2(changelog_rec_flags_vals);
#define lcfg_command_type_vals_VALUE_STRING_LIST(XXX) \
XXX(LCFG_ATTACH, 0x00cf001) \
XXX(LCFG_DETACH, 0x00cf002) \
XXX(LCFG_SETUP, 0x00cf003) \
XXX(LCFG_CLEANUP, 0x00cf004) \
XXX(LCFG_ADD_UUID, 0x00cf005) \
XXX(LCFG_DEL_UUID, 0x00cf006) \
XXX(LCFG_MOUNTOPT, 0x00cf007) \
XXX(LCFG_DEL_MOUNTOPT, 0x00cf008) \
XXX(LCFG_SET_TIMEOUT, 0x00cf009) \
XXX(LCFG_SET_UPCALL, 0x00cf00a) \
XXX(LCFG_ADD_CONN, 0x00cf00b) \
XXX(LCFG_DEL_CONN, 0x00cf00c) \
XXX(LCFG_LOV_ADD_OBD, 0x00cf00d) \
XXX(LCFG_LOV_DEL_OBD, 0x00cf00e) \
XXX(LCFG_PARAM, 0x00cf00f) \
XXX(LCFG_MARKER, 0x00cf010) \
XXX(LCFG_LOG_START, 0x00ce011) \
XXX(LCFG_LOG_END, 0x00ce012) \
XXX(LCFG_LOV_ADD_INA, 0x00ce013) \
XXX(LCFG_ADD_MDC, 0x00cf014) \
XXX(LCFG_DEL_MDC, 0x00cf015) \
XXX(LCFG_SPTLRPC_CONF, 0x00ce016) \
XXX(LCFG_POOL_NEW, 0x00ce020) \
XXX(LCFG_POOL_ADD, 0x00ce021) \
XXX(LCFG_POOL_REM, 0x00ce022) \
XXX(LCFG_POOL_DEL, 0x00ce023) \
XXX(LCFG_SET_LDLM_TIMEOUT, 0x00ce030) \
XXX(LCFG_PRE_CLEANUP, 0x00cf031) \
XXX(LCFG_SET_PARAM, 0x00ce032) \
XXX(LCFG_NODEMAP_ADD, 0x00ce040) \
XXX(LCFG_NODEMAP_DEL, 0x00ce041) \
XXX(LCFG_NODEMAP_ADD_RANGE, 0x00ce042) \
XXX(LCFG_NODEMAP_DEL_RANGE, 0x00ce043) \
XXX(LCFG_NODEMAP_ADD_UIDMAP, 0x00ce044) \
XXX(LCFG_NODEMAP_DEL_UIDMAP, 0x00ce045) \
XXX(LCFG_NODEMAP_ADD_GIDMAP, 0x00ce046) \
XXX(LCFG_NODEMAP_DEL_GIDMAP, 0x00ce047) \
XXX(LCFG_NODEMAP_ACTIVATE, 0x00ce048) \
XXX(LCFG_NODEMAP_ADMIN, 0x00ce049) \
XXX(LCFG_NODEMAP_TRUSTED, 0x00ce050) \
XXX(LCFG_NODEMAP_SQUASH_UID, 0x00ce051) \
XXX(LCFG_NODEMAP_SQUASH_GID, 0x00ce052) \
XXX(LCFG_NODEMAP_ADD_SHKEY, 0x00ce053) \
XXX(LCFG_NODEMAP_DEL_SHKEY, 0x00ce054) \
XXX(LCFG_NODEMAP_TEST_NID, 0x00ce055) \
XXX(LCFG_NODEMAP_TEST_ID, 0x00ce056) \
XXX(LCFG_NODEMAP_SET_FILESET, 0x00ce057) \
XXX(LCFG_NODEMAP_DENY_UNKNOWN, 0x00ce058) \
XXX(LCFG_NODEMAP_MAP_MODE, 0x00ce059)
VALUE_STRING_ENUM2(lcfg_command_type_vals);
VALUE_STRING_ARRAY2(lcfg_command_type_vals);
/********************************************************************
*
* HSM Definitions
*
*/
#define hsm_state_vals_VALUE_STRING_LIST(XXX) \
XXX(HS_NONE, 0x00000000) \
XXX(HS_EXISTS, 0x00000001) \
XXX(HS_DIRTY, 0x00000002) \
XXX(HS_RELEASED, 0x00000004) \
XXX(HS_ARCHIVED, 0x00000008) \
XXX(HS_NORELEASE, 0x00000010) \
XXX(HS_NOARCHIVE, 0x00000020) \
XXX(HS_LOST, 0x00000040)
VALUE_STRING_ARRAY2(hsm_state_vals);
#define hsm_user_action_vals_VALUE_STRING_LIST(XXX) \
XXX(HUA_NONE, 1, "NONE") \
XXX(HUA_ARCHIVE, 10, "ARCHIVE") \
XXX(HUA_RESTORE, 11, "RESTORE") \
XXX(HUA_RELEASE, 12, "RELEASE") \
XXX(HUA_REMOVE, 13, "REMOVE") \
XXX(HUA_CANCEL, 14, "CANCEL")
//VALUE_STRING_ENUM(hsm_user_action_vals);
VALUE_STRING_ARRAY(hsm_user_action_vals);
#define hsm_progress_state_vals_VALUE_STRING_LIST(XXX) \
XXX(HPS_WAITING, 1, "Waiting") \
XXX(HPS_RUNNING, 2, "Running") \
XXX(HPS_DONE, 3, "Done")
//VALUE_STRING_ENUM(hsm_progress_state_vals);
VALUE_STRING_ARRAY(hsm_progress_state_vals);
#define hss_valid_VALUE_STRING_LIST(XXX) \
XXX(HSS_SETMASK, 0x01) \
XXX(HSS_CLEARMASK, 0x02) \
XXX(HSS_ARCHIVE_ID, 0x04)
VALUE_STRING_ARRAY2(hss_valid);
/********************************************************************
*
* Quota Definitions
*
*/
#define quota_cmd_vals_VALUE_STRING_LIST(XXX) \
XXX(Q_SYNC, 0x800001) \
XXX(Q_QUOTAON, 0x800002) \
XXX(Q_QUOTAOFF, 0x800003) \
XXX(Q_GETFMT, 0x800004) \
XXX(Q_GETINFO, 0x800005) \
XXX(Q_SETINFO, 0x800006) \
XXX(Q_GETQUOTA, 0x800007) \
XXX(Q_SETQUOTA, 0x800008) \
XXX(Q_GETNEXTQUOTA, 0x800009) \
XXX(LUSTRE_Q_INVALIDATE, 0x80000b) \
XXX(LUSTRE_Q_FINVALIDATE, 0x80000c) \
XXX(Q_QUOTACHECK, 0x800100) \
XXX(Q_INITQUOTA, 0x800101) \
XXX(Q_GETOINFO, 0x800102) \
XXX(Q_GETOQUOTA, 0x800103) \
XXX(Q_FINVALIDATE, 0x800104)
VALUE_STRING_ARRAY2(quota_cmd_vals);
#define quota_type_vals_VALUE_STRING_LIST(XXX) \
XXX(USRQUOTA, 0) \
XXX(GRPQUOTA, 1) \
XXX(PRJQUOTA, 2)
VALUE_STRING_ARRAY2(quota_type_vals);
/********************************************************************
*
* SEQ Definitions
*
*/
#define seq_op_vals_VALUE_STRING_LIST(XXX) \
XXX(SEQ_ALLOC_SUPER, 0) \
XXX(SEQ_ALLOC_META, 1)
//VALUE_STRING_ENUM2(seq_op_vals);
VALUE_STRING_ARRAY2(seq_op_vals);
#define seq_range_flag_vals_VALUE_STRING_LIST(XXX) \
XXX(LU_SEQ_RANGE_MDT, 0x0, "MDT") \
XXX(LU_SEQ_RANGE_OST, 0x1, "OST") \
XXX(LU_SEQ_RANGE_ANY, 0x3, "ANY")
//VALUE_STRING_ENUM(seq_range_flag_vals);
VALUE_STRING_ARRAY(seq_range_flag_vals);
/********************************************************************
*
* FLD Definitions
*
*/
#define fld_op_vals_VALUE_STRING_LIST(XXX) \
XXX(FLD_CREATE, 0, "Create") \
XXX(FLD_DELETE, 1, "Delete") \
XXX(FLD_LOOKUP, 2, "Lookup")
//VALUE_STRING_ENUM(fld_op_vals);
VALUE_STRING_ARRAY(fld_op_vals);
/********************************************************************
*
* Out Update Definitions
*
*/
// These can't be in enum because they are bigger than MAXINT
#define OUT_UPDATE_HEADER_MAGIC 0xBDDF0001
static const value_string out_update_header_magic_vals[] = {
{OUT_UPDATE_HEADER_MAGIC, "OUT_UPDATE_HEADER_MAGIC"},
{0, NULL}
};
#define UPDATE_REQUEST_MAGIC_V1 0xBDDE0001
#define UPDATE_REQUEST_MAGIC_V2 0xBDDE0002
static const value_string update_request_magic_vals[] = {
{UPDATE_REQUEST_MAGIC_V1, "UPDATE_REQUEST_MAGIC_V1"},
{UPDATE_REQUEST_MAGIC_V2, "UPDATE_REQUEST_MAGIC_V2"},
{0, NULL}
};
#define update_reply_magic_vals_VALUE_STRING_LIST(XXX) \
XXX(UPDATE_REPLY_MAGIC_V1, 0x00BD0001) \
XXX(UPDATE_REPLY_MAGIC_V2, 0x00BD0002)
VALUE_STRING_ENUM2(update_reply_magic_vals);
VALUE_STRING_ARRAY2(update_reply_magic_vals);
#define update_type_vals_VALUE_STRING_LIST(XXX) \
XXX(OUT_START, 0) \
XXX(OUT_CREATE, 1) \
XXX(OUT_DESTROY, 2) \
XXX(OUT_REF_ADD, 3) \
XXX(OUT_REF_DEL, 4) \
XXX(OUT_ATTR_SET, 5) \
XXX(OUT_ATTR_GET, 6) \
XXX(OUT_XATTR_SET, 7) \
XXX(OUT_XATTR_GET, 8) \
XXX(OUT_INDEX_LOOKUP, 9) \
XXX(OUT_INDEX_INSERT, 10) \
XXX(OUT_INDEX_DELETE, 11) \
XXX(OUT_WRITE, 12) \
XXX(OUT_XATTR_DEL, 13) \
XXX(OUT_PUNCH, 14) \
XXX(OUT_READ, 15) \
XXX(OUT_NOOP, 16)
VALUE_STRING_ENUM2(update_type_vals);
VALUE_STRING_ARRAY2(update_type_vals);
/********************************************************************
* LFSCK Definitions
*/
#define lfsck_events_vals_VALUE_STRING_LIST(XXX) \
XXX(LE_LASTID_REBUILDING, 1) \
XXX(LE_LASTID_REBUILT, 2) \
XXX(LE_PHASE1_DONE, 3) \
XXX(LE_PHASE2_DONE, 4) \
XXX(LE_START, 5) \
XXX(LE_STOP, 6) \
XXX(LE_QUERY, 7) \
XXX(LE_FID_ACCESSED, 8) \
XXX(LE_PEER_EXIT, 9) \
XXX(LE_CONDITIONAL_DESTROY, 10) \
XXX(LE_PAIRS_VERIFY, 11) \
XXX(LE_SET_LMV_MASTER, 15) \
XXX(LE_SET_LMV_SLAVE, 16)
//VALUE_STRING_ENUM2(lfsck_events_vals);
VALUE_STRING_ARRAY2(lfsck_events_vals);
#define lfsck_start_valid_vals_VALUE_STRING_LIST(XXX) \
XXX(LSV_SPEED_LIMIT, 0x00000001) \
XXX(LSV_ERROR_HANDLE, 0x00000002) \
XXX(LSV_DRYRUN, 0x00000004) \
XXX(LSV_ASYNC_WINDOWS, 0x00000008) \
XXX(LSV_CREATE_OSTOBJ, 0x00000010) \
XXX(LSV_CREATE_MDTOBJ, 0x00000020) \
XXX(LSV_DELAY_CREATE_OSTOBJ, 0x00000040)
VALUE_STRING_ENUM2(lfsck_start_valid_vals);
//VALUE_STRING_ARRAY2(lfsck_start_valid_vals);
#define lfsck_status_vals_VALUE_STRING_LIST(XXX) \
XXX(LS_INIT, 0) \
XXX(LS_SCANNING_PHASE1, 1) \
XXX(LS_SCANNING_PHASE2, 2) \
XXX(LS_COMPLETED, 3) \
XXX(LS_FAILED, 4) \
XXX(LS_STOPPED, 5) \
XXX(LS_PAUSED, 6) \
XXX(LS_CRASHED, 7) \
XXX(LS_PARTIAL, 8) \
XXX(LS_CO_FAILED, 9) \
XXX(LS_CO_STOPPED, 10) \
XXX(LS_CO_PAUSED, 11)
//VALUE_STRING_ENUM2(lfsck_status_vals);
VALUE_STRING_ARRAY2(lfsck_status_vals);
#define lfsck_type_vals_VALUE_STRING_LIST(XXX) \
XXX(LFSCK_TYPE_SCRUB, 0x0000) \
XXX(LFSCK_TYPE_LAYOUT, 0x0001) \
XXX(LFSCK_TYPE_NAMESPACE, 0x0004) \
XXX(LFSCK_TYPES_SUPPORTED, 0x0005) \
XXX(LFSCK_TYPES_ALL, 0xFFFF)
/* LFSCK_TYPES_SUPPORTED = (LFSCK_TYPE_SCRUB | LFSCK_TYPE_LAYOUT | LFSCK_TYPE_NAMESPACE) */
//VALUE_STRING_ENUM2(lfsck_type_vals);
VALUE_STRING_ARRAY2(lfsck_type_vals);
/******************************************************************** \
*
* Helper Functions
*
\********************************************************************/
#define buffer_padding_length(_o) ((8 - ((_o) % 8)) % 8)
static int
add_extra_padding(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree * tree)
{
uint32_t padding_len;
padding_len = buffer_padding_length(offset);
if (padding_len) {
proto_tree_add_item(tree, hf_lustre_extra_padding, tvb, offset, padding_len, ENC_NA);
offset+=padding_len;
}
return offset;
}
/********************************************************************\
*
* Conversation
*
\********************************************************************/
typedef struct _lustre_conv_info_t {
wmem_map_t *pdus;
} lustre_conv_info_t;
typedef struct lustre_trans {
uint32_t opcode;
uint64_t sub_opcode; /* i.e. intent, reint */
uint64_t match_bits;
} lustre_trans_t;
static lustre_trans_t *
lustre_get_trans(packet_info *pinfo, struct lnet_trans_info *info)
{
conversation_t *conversation;
lustre_conv_info_t *conv_info;
lustre_trans_t *trans;
// Ignore ports because this is kernel level and there can only be one Lustre instance per server
conversation = find_conversation(pinfo->num, &pinfo->src, &pinfo->dst, conversation_pt_to_conversation_type(pinfo->ptype),
0, 0, 0);
if (conversation == NULL)
conversation = conversation_new(pinfo->num, &pinfo->src,
&pinfo->dst, conversation_pt_to_conversation_type(pinfo->ptype), 0, 0, 0);
conv_info = (lustre_conv_info_t *)conversation_get_proto_data(conversation, proto_lustre);
if (!conv_info) {
conv_info = wmem_new0(wmem_file_scope(), lustre_conv_info_t);
conv_info->pdus = wmem_map_new(wmem_file_scope(), g_direct_hash, g_direct_equal);
conversation_add_proto_data(conversation, proto_lustre, conv_info);
}
trans = (lustre_trans_t *)wmem_map_lookup(conv_info->pdus, GUINT_TO_POINTER(info->match_bits));
if (trans == NULL) {
void *ptr;
trans = wmem_new0(wmem_file_scope(),lustre_trans_t);
trans->match_bits = info->match_bits;
ptr = wmem_map_insert(conv_info->pdus, GUINT_TO_POINTER(trans->match_bits), trans);
if (ptr != NULL) {
/* XXX - Is this even possible? ?*/
trans = (lustre_trans_t *)ptr;
REPORT_DISSECTOR_BUG("ERROR: packet-lustre: conversation replaced: "
"trans:{opcode:%u sub_opcode:%" PRIu64 " match_bits:%" PRIx64 "} "
"with match_bits:%" PRIx64,
trans->opcode, trans->sub_opcode, trans->match_bits, info->match_bits);
}
}
return trans;
}
/********************************************************************\
*
* Generic Buffer Dumps
*
\********************************************************************/
static int
display_buffer_data(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *parent_tree, uint32_t buf_num, const char *msg)
{
proto_item *item;
uint32_t data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_data, tvb, offset, data_len, ENC_NA);
offset += data_len;
if (msg != NULL)
proto_item_append_text(item, ": %s", msg);
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
static int
display_buffer_string(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, int hf_index, uint32_t buf_num)
{
uint32_t string_len;
string_len = LUSTRE_BUFFER_LEN(buf_num);
if (string_len == 0)
return offset;
proto_tree_add_item(parent_tree, hf_index, tvb, offset, string_len, ENC_NA);
offset += string_len;
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
/********************************************************************\
*
* Sub Structures
*
\********************************************************************/
static void
lustre_fmt_ver( char *result, uint32_t version )
{
uint32_t major, minor, patch, fix;
fix = version & 0xff;
version >>= 8;
patch = version & 0xff;
version >>= 8;
minor = version & 0xff;
version >>= 8;
major = version & 0xff;
snprintf( result, ITEM_LABEL_LENGTH, "%d.%d.%d.%d", major, minor, patch, fix);
}
static int
dissect_struct_lustre_handle(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int hf_index)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 8, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lustre_handle_cookie);
proto_tree_add_item(tree, hf_lustre_lustre_handle_cookie, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_lu_fid(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int hf_index)
{
proto_tree *tree;
proto_item *item;
uint64_t seq;
uint32_t val;
/* struct lu_fid { */
/* __u64 f_seq; */
/* __u32 f_oid; */
/* __u32 f_ver; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lu_fid);
proto_tree_add_item_ret_uint64(tree, hf_lustre_lu_fid_f_seq, tvb, offset, 8, ENC_LITTLE_ENDIAN, &seq);
proto_item_append_text(item, ": [%#" PRIx64 ":", seq);
offset += 8;
proto_tree_add_item_ret_uint(tree, hf_lustre_lu_fid_f_oid, tvb, offset, 4, ENC_LITTLE_ENDIAN, &val);
proto_item_append_text(item, "%#x:", val);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_lu_fid_f_ver, tvb, offset, 4, ENC_LITTLE_ENDIAN, &val);
proto_item_append_text(item, "%#x]", val);
offset += 4;
return offset;
}
static int
dissect_struct_obd_uuid(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int hf_index)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 40, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_obd_uuid);
/* #define UUID_MAX 40 */
/* struct obd_uuid { */
/* char uuid[UUID_MAX]; */
/* }; */
proto_tree_add_item(tree, hf_lustre_obd_uuid, tvb, offset, 40, ENC_ASCII);
offset += 40;
return offset;
}
static int
dissect_struct_ost_id(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree, *oi_tree;
proto_item *item;
/* struct ost_id { */
/* union { */
/* struct { */
/* __u64 oi_id; */
/* __u64 oi_seq; */
/* } oi; */
/* struct lu_fid oi_fid; */
/* }; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_ost_id, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ost_id);
/* FID */
dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_ost_id_fid);
/* !OR! OI */
item = proto_tree_add_item(tree, hf_lustre_ost_id_oi, tvb, offset, 16, ENC_NA);
oi_tree = proto_item_add_subtree(item, ett_lustre_ost_id_oi);
proto_tree_add_item(oi_tree, hf_lustre_ost_oi_id, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(oi_tree, hf_lustre_ost_oi_seq, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_ost_layout(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_ost_layout, tvb, offset, 28, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ost_layout);
/* struct ost_layout { */
/* __u32 ol_stripe_size; */
/* __u32 ol_stripe_count; */
/* __u64 ol_comp_start; */
/* __u64 ol_comp_end; */
/* __u32 ol_comp_id; */
/* } __attribute__((packed)); */
proto_tree_add_item(tree, hf_lustre_ost_layout_stripe_size, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ost_layout_stripe_count, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ost_layout_comp_start, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ost_layout_comp_end, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ost_layout_comp_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_struct_obdo(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
int old_offset;
old_offset = offset;
item = proto_tree_add_item(parent_tree, hf_lustre_obdo, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_obdo);
/* struct obdo { */
/* __u64 o_valid; /\* hot fields in this obdo *\/ */
/* struct ost_id o_oi; */
/* __u64 o_parent_seq; */
/* __u64 o_size; /\* o_size-o_blocks == ost_lvb *\/ */
/* __s64 o_mtime; */
/* __s64 o_atime; */
/* __s64 o_ctime; */
/* __u64 o_blocks; /\* brw: cli sent cached bytes *\/ */
/* __u64 o_grant; */
/* __u32 o_blksize; /\* optimal IO blocksize *\/ */
/* __u32 o_mode; /\* brw: cli sent cache remain *\/ */
/* __u32 o_uid; */
/* __u32 o_gid; */
/* __u32 o_flags; */
/* __u32 o_nlink; /\* brw: checksum *\/ */
/* __u32 o_parent_oid; */
/* __u32 o_misc; /\* brw: o_dropped *\/ */
/* __u64 o_ioepoch; /\* epoch in ost writes *\/ */
/* __u32 o_stripe_idx; /\* holds stripe idx *\/ */
/* __u32 o_parent_ver; */
/* struct lustre_handle o_handle; /\* brw: lock handle to prolong * locks *\/ */
/* /\* Originally, the field is llog_cookie for destroy with unlink cookie */
/* * from MDS, it is obsolete in 2.8. Then reuse it by client to transfer */
/* * layout and PFL information in IO, setattr RPCs. Since llog_cookie is */
/* * not used on wire any longer, remove it from the obdo, then it can be */
/* * enlarged freely in the further without affect related RPCs. */
/* * */
/* * sizeof(ost_layout) + sieof(__u32) == sizeof(llog_cookie). *\/ */
/* #if VERSION < 2.8.0 */
/* struct llog_cookie o_lcookie; */
/* #else // VERSION >= 2.10 */
/* struct ost_layout o_layout; */
/* __u32 o_padding_3; */
/* #endif */
/* __u32 o_uid_h; */
/* __u32 o_gid_h; */
/* __u64 o_data_version; */
/* __u32 o_projid; */
/* __u32 o_padding_4; /\* also fix */
/* * lustre_swab_obdo() *\/ */
/* __u64 o_padding_5; */
/* __u64 o_padding_6; */
/* }; */
// @@ make into bitmap of OBD_MD_FL*
proto_tree_add_item(tree, hf_lustre_obdo_o_valid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
offset = dissect_struct_ost_id(tvb, offset, tree);
proto_tree_add_item(tree, hf_lustre_obdo_o_parent_seq, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_size, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_mtime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_atime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_ctime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_blocks, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_grant, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_blksize, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_mode, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_uid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_gid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_nlink, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_parent_oid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_misc, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_ioepoch, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_stripe_idx, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_parent_ver, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_obdo_o_handle);
/* pre-2.8 llog_cookie o_lcookie - o_valid & OBD_MD_FLCOOKIE */
/* 2.10 and later */
offset = dissect_struct_ost_layout(tvb, offset, tree);
proto_tree_add_item(tree, hf_lustre_obdo_o_padding_3, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_uid_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_gid_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_data_version, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_projid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_padding_4, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obdo_o_padding_5, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obdo_o_padding_6, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_item_set_len(tree, offset-old_offset);
return offset;
}
static int
dissect_struct_llog_logid(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int hf_index)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 20, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_logid);
offset = dissect_struct_ost_id(tvb, offset, tree);
proto_tree_add_item(tree, hf_lustre_llog_logid_lgl_ogen, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_struct_llog_gen(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int hf_index)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_gen);
proto_tree_add_item(tree, hf_lustre_llog_gen_conn_cnt, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_llog_gen_mnt_cnt, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_llog_rec_hdr(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int hf_index)
{
proto_tree *tree;
proto_item *item;
uint32_t ind, type;
item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_rec_hdr);
/* struct llog_rec_hdr { */
/* __u32 lrh_len; */
/* __u32 lrh_index; */
/* __u32 lrh_type; */
/* __u32 lrh_id; */
/* }; */
proto_tree_add_item(tree, hf_lustre_llog_rec_hdr_lrh_len, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_llog_rec_hdr_lrh_index, tvb, offset, 4, ENC_LITTLE_ENDIAN, &ind);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_llog_rec_hdr_lrh_type, tvb, offset, 4, ENC_LITTLE_ENDIAN, &type);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_rec_hdr_lrh_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_item_append_text(parent_tree, " [%02d]: %s", ind, val_to_str(type, llog_op_types, "Unknown(%x)"));
return offset;
}
static int
dissect_struct_llog_rec_tail(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int hf_index)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 8, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_rec_tail);
proto_tree_add_item(tree, hf_lustre_llog_rec_tail_lrt_len, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_rec_tail_lrt_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_struct_lquota_id(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_lquota_id, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lquota_id);
/* union lquota_id { */
/* struct lu_fid qid_fid; /\* FID for per-directory quota *\/ */
/* __u64 qid_uid; /\* user identifier *\/ */
/* __u64 qid_gid; /\* group identifier *\/ */
/* }; */
dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_qid_fid);
proto_tree_add_item(tree, hf_lustre_qid_uid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
proto_tree_add_item(tree, hf_lustre_qid_gid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset+=16;
return offset;
}
static int
dissect_struct_object_update(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree)
{
proto_tree *tree, *ptree;
proto_item *item;
unsigned count, i, len;
int old_offset;
old_offset = offset;
item = proto_tree_add_item(parent_tree, hf_lustre_obj_update, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_object_update);
/* struct object_update { */
/* __u16 ou_type; /\* enum update_type *\/ */
/* __u16 ou_params_count; /\* update parameters count *\/ */
/* __u32 ou_result_size; /\* how many bytes can return *\/ */
/* __u32 ou_flags; /\* enum update_flag *\/ */
/* __u32 ou_padding1; /\* padding 1 *\/ */
/* __u64 ou_batchid; /\* op transno on master *\/ */
/* struct lu_fid ou_fid; /\* object to be updated *\/ */
/* struct object_update_param ou_params[0]; /\* update params *\/ */
/* }; */
/* struct object_update_param { */
/* __u16 oup_len; /\* length of this parameter *\/ */
/* __u16 oup_padding; */
/* __u32 oup_padding2; */
/* char oup_buf[0]; */
/* }; */
proto_tree_add_item(tree, hf_lustre_obj_update_type, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item_ret_uint(tree, hf_lustre_obj_update_params_count, tvb, offset, 2, ENC_LITTLE_ENDIAN, &count);
offset += 2;
proto_tree_add_item(tree, hf_lustre_obj_update_result_size, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obj_update_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obj_update_padding, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obj_update_batchid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_obj_update_fid);
for (i = 0; i < count; ++i) {
item = proto_tree_add_item(tree, hf_lustre_obj_update_param, tvb, offset, -1, ENC_NA);
proto_item_append_text(item, ": [%d]", i);
ptree = proto_item_add_subtree(item, ett_lustre_object_update_param);
proto_tree_add_item_ret_uint(ptree, hf_lustre_obj_update_param_len, tvb, offset, 2, ENC_LITTLE_ENDIAN, &len);
offset += 2;
proto_tree_add_item(ptree, hf_lustre_obj_update_param_padding, tvb, offset, 6, ENC_NA);
offset += 6;
proto_tree_add_item(ptree, hf_lustre_obj_update_param_buf, tvb, offset, len, ENC_NA);
offset += len;
proto_item_set_len(ptree, 8+len);
offset = add_extra_padding(tvb, offset, pinfo, tree);
}
proto_item_set_len(tree, offset-old_offset);
return offset;
}
static int
dissect_struct_object_update_request(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
unsigned count, i, magic;
int old_offset;
old_offset = offset;
item = proto_tree_add_item(parent_tree, hf_lustre_obj_update_request, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_object_update_request);
/* struct object_update_request { */
/* __u32 ourq_magic; */
/* __u16 ourq_count; /\* number of ourq_updates[] *\/ */
/* __u16 ourq_padding; */
/* struct object_update ourq_updates[0]; */
/* }; */
proto_tree_add_item_ret_uint(tree, hf_lustre_obj_update_request_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN, &magic);
if (magic != UPDATE_REQUEST_MAGIC_V2)
expert_add_info(pinfo, tree, &ei_lustre_badmagic);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_obj_update_request_count, tvb, offset, 2, ENC_LITTLE_ENDIAN, &count);
offset += 2;
proto_tree_add_item(tree, hf_lustre_obj_update_request_padding, tvb, offset, 2, ENC_NA);
offset += 2;
for (i = 0; i < count; ++i)
offset = dissect_struct_object_update(tvb, offset, pinfo, tree);
proto_item_set_len(tree, offset-old_offset);
return offset;
}
static int
dissect_struct_lov_desc(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
/* struct lov_desc { */
/* __u32 ld_tgt_count; /\* how many OBD's *\/ */
/* __u32 ld_active_tgt_count; /\* how many active *\/ -- MAGIC on wire */
/* __s32 ld_default_stripe_count; /\* how many objects are used *\/ */
/* __u32 ld_pattern; /\* default PATTERN_RAID0 *\/ */
/* __u64 ld_default_stripe_size; /\* in bytes *\/ */
/* __s64 ld_default_stripe_offset; /\* starting OST index *\/ */
/* __u32 ld_padding_0; /\* unused *\/ */
/* __u32 ld_qos_maxage; /\* in second *\/ */
/* __u32 ld_padding_1; /\* also fix lustre_swab_lov_desc *\/ */
/* __u32 ld_padding_2; /\* also fix lustre_swab_lov_desc *\/ */
/* struct obd_uuid ld_uuid; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_lov_desc, tvb, offset, 88, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lov_desc);
proto_tree_add_item(tree, hf_lustre_lov_desc_tgt_count, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lov_desc_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lov_desc_default_stripe_count, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lov_desc_pattern, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lov_desc_default_stripe_size, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lov_desc_default_stripe_offset, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lov_desc_padding, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lov_desc_qos_maxage, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lov_desc_padding, tvb, offset, 8, ENC_NA);
offset += 8;
offset = dissect_struct_obd_uuid(tvb, offset, tree, hf_lustre_lov_desc_uuid);
return offset;
}
/********************************************************************
*
* LLOG Sub Structures
*
*/
static int
dissect_struct_changelog_rec(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
unsigned namelen, flags, type;
int old_offset = offset;
/* struct changelog_rec { */
/* __u16 cr_namelen; */
/* __u16 cr_flags; /\**< \a changelog_rec_flags *\/ */
/* __u32 cr_type; /\**< \a changelog_rec_type *\/ */
/* __u64 cr_index; /\**< changelog record number *\/ */
/* __u64 cr_prev; /\**< last index for this target fid *\/ */
/* __u64 cr_time; */
/* union { */
/* struct lu_fid cr_tfid; /\**< target fid *\/ */
/* __u32 cr_markerflags; /\**< CL_MARK flags *\/ */
/* }; */
/* struct lu_fid cr_pfid; /\**< parent fid *\/ */
/* }; 32+16+16+extras */
/* after changelog_rec, there are optional fields based on cr_flags
* CLF_RENAME :: struct changelog_ext_rename { struct lu_fid cr_sfid, cr_spfid; }
* CLF_JOBID :: struct changelog_ext_jobid { char cr_jobid[LUSTRE_JOBID_SIZE==32]; }
* CLF_EXTRA_FLAGS :: struct changelog_ext_extra_flags { __u64 cr_extra_flags; }
* cr_namelen>0 :: char name[cr_namelen+'\0']
*/
item = proto_tree_add_item(parent_tree, hf_lustre_changelog_rec, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_changelog_rec);
proto_tree_add_item_ret_uint(tree, hf_lustre_changelog_rec_namelen, tvb, offset, 2, ENC_LITTLE_ENDIAN, &namelen);
offset += 2;
proto_tree_add_item_ret_uint(tree, hf_lustre_changelog_rec_flags, tvb, offset, 2, ENC_LITTLE_ENDIAN, &flags);
offset += 2;
proto_tree_add_item_ret_uint(tree, hf_lustre_changelog_rec_type, tvb, offset, 4, ENC_LITTLE_ENDIAN, &type);
offset += 4;
proto_tree_add_item(tree, hf_lustre_changelog_rec_index, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_changelog_rec_prev, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_changelog_rec_time, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
if (type == CL_MARK) {
proto_tree_add_item(tree, hf_lustre_changelog_rec_markerflags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_changelog_rec_padding, tvb, offset, 12, ENC_NA);
offset += 12;
} else
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_changelog_rec_tfid);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_changelog_rec_pfid);
/* end of struct changelog_rec */
if (flags & CLF_RENAME) {
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_changelog_ext_rename_sfid);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_changelog_ext_rename_spfid);
}
if (flags & CLF_JOBID) {
proto_tree_add_item(tree, hf_lustre_changelog_ext_jobid_jobid, tvb, offset, 32, ENC_ASCII);
offset += 32;
}
if (flags & CLF_EXTRA_FLAGS) {
proto_tree_add_item(tree, hf_lustre_changelog_extra_flags_extra_flags, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
}
if (namelen > 0) {
proto_tree_add_item(tree, hf_lustre_changelog_ext_name, tvb, offset, namelen, ENC_ASCII);
offset += namelen;
}
proto_item_set_len(item, offset-old_offset);
return offset;
}
static int
dissect_struct_cfg_marker(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_cfg_marker, tvb, offset, 160, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_cfg_marker);
/* struct cfg_marker { */
/* __u32 cm_step; /\* aka config version *\/ */
/* __u32 cm_flags; */
/* __u32 cm_vers; /\* lustre release version number *\/ */
/* __u32 cm_padding; /\* 64 bit align *\/ */
/* __s64 cm_createtime; /\*when this record was first created *\/ */
/* __s64 cm_canceltime; /\*when this record is no longer valid*\/ */
/* char cm_tgtname[MTI_NAME_MAXLEN]; */
/* char cm_comment[MTI_NAME_MAXLEN]; */
/* }; */
proto_tree_add_item(tree, hf_lustre_cfg_marker_step, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_cfg_marker_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_cfg_marker_vers, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_cfg_marker_padding, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(tree, hf_lustre_cfg_marker_createtime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_cfg_marker_canceltime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_cfg_marker_tgtname, tvb, offset, 64, ENC_ASCII);
offset += 64;
proto_tree_add_item(tree, hf_lustre_cfg_marker_comment, tvb, offset, 64, ENC_ASCII);
offset += 64;
return offset;
}
static int
dissect_struct_lustre_cfg(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
int old_offset, buf_offset;
unsigned count, i, cmd, len;
old_offset = offset;
/* struct lustre_cfg {
* __u32 lcfg_version;
* __u32 lcfg_command;
* __u32 lcfg_num;
* __u32 lcfg_flags;
* __u64 lcfg_nid;
* __u32 lcfg_nal; // not used any more
* __u32 lcfg_bufcount;
* __u32 lcfg_buflens[];
* };
*/
item = proto_tree_add_item(parent_tree, hf_lustre_lustre_cfg, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lustre_cfg);
proto_tree_add_item(tree, hf_lustre_lustre_cfg_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_lustre_cfg_command, tvb, offset, 4, ENC_LITTLE_ENDIAN, &cmd);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_cfg_num, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_cfg_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = lnet_dissect_struct_nid(tvb, tree, offset, hf_lustre_lustre_cfg_nid);
proto_tree_add_item(tree, hf_lustre_lustre_cfg_padding, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_lustre_cfg_bufcount, tvb, offset, 4, ENC_LITTLE_ENDIAN, &count);
offset += 4;
buf_offset = offset;
for (i = 0; i < count; ++i) {
proto_tree_add_item(tree, hf_lustre_lustre_cfg_buflen, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
offset = add_extra_padding(tvb, offset, NULL, tree);
proto_item_append_text(item, ": %s", val_to_str(cmd, lcfg_command_type_vals, "Unknown(%x)"));
switch (cmd) {
case LCFG_MARKER:
offset = dissect_struct_cfg_marker(tvb, offset, tree);
break;
case LCFG_SETUP:
if (count == 2) {
len = tvb_get_letohl(tvb, buf_offset);
len += buffer_padding_length(len+offset);
proto_tree_add_item(tree, hf_lustre_lustre_cfg_buffer, tvb, offset, len, ENC_ASCII);
offset += len;
offset = dissect_struct_lov_desc(tvb, offset, tree);
break;
}
// ELSE FALL THROUGH
default:
for (i = 0; i < count; ++i) {
len = tvb_get_letohl(tvb, buf_offset+(4*i));
len += buffer_padding_length(len+offset);
proto_tree_add_item(tree, hf_lustre_lustre_cfg_buffer, tvb, offset, len, ENC_ASCII);
offset += len;
}
break;
}
proto_item_set_len(item, offset-old_offset);
return offset;
}
/********************************************************************
*
* LDLM Sub Structures
*
*/
static int
dissect_struct_ldlm_lock_desc(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, uint64_t *ltype)
{
proto_tree *tree, *res_tree, *id_tree, *l_tree;
proto_item *item;
int i;
uint32_t type;
/* struct ldlm_lock_desc { */
/* struct ldlm_resource_desc l_resource; */
/* enum ldlm_mode l_req_mode; */
/* enum ldlm_mode l_granted_mode; */
/* union ldlm_wire_policy_data l_policy_data; */
/* }; */
/* struct ldlm_resource_desc { */
/* enum ldlm_type lr_type; */
/* __u32 lr_pad; /\* also fix lustre_swab_ldlm_resource_desc *\/ */
/* struct ldlm_res_id lr_name; */
/* }; */
/* struct ldlm_res_id { */
/* __u64 name[RES_NAME_SIZE]; */
/* }; */
/* RES_NAME_SIZE == 4 */
/* SIZE == (4+4+32)+4+4+(32)*/
item = proto_tree_add_item(parent_tree, hf_lustre_ldlm_lock_desc, tvb, offset, 80, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ldlm_lock_desc);
item = proto_tree_add_item(tree, hf_lustre_ldlm_resource_desc, tvb, offset, 40, ENC_NA);
res_tree = proto_item_add_subtree(item, ett_lustre_ldlm_resource_desc);
proto_tree_add_item_ret_uint(res_tree, hf_lustre_ldlm_resource_desc_lr_type, tvb, offset, 4, ENC_LITTLE_ENDIAN, &type);
offset += 4;
proto_tree_add_item(res_tree, hf_lustre_ldlm_resource_desc_lr_padding, tvb, offset, 4, ENC_NA);
offset += 4;
for (i = 0; i < 4; ++i) {
item = proto_tree_add_item(res_tree, hf_lustre_ldlm_res_id, tvb, offset, 8, ENC_NA);
id_tree = proto_item_add_subtree(item, ett_lustre_ldlm_res_id);
proto_item_append_text(item, " [%d]", i);
switch (type) {
case LDLM_IBITS:
proto_tree_add_item(id_tree, hf_lustre_ldlm_res_id_bits, tvb, offset, 8, ENC_LITTLE_ENDIAN);
break;
case LDLM_PLAIN:
if (i == 1) {
if (ltype)
*ltype = tvb_get_letoh64(tvb, offset);
proto_tree_add_item(id_tree, hf_lustre_ldlm_res_id_type, tvb, offset, 4, ENC_LITTLE_ENDIAN);
} else
proto_tree_add_item(id_tree, hf_lustre_ldlm_res_id_string, tvb, offset, 8, ENC_ASCII);
break;
default:
proto_tree_add_item(id_tree, hf_lustre_ldlm_res_id_name, tvb, offset, 8, ENC_LITTLE_ENDIAN);
break;
}
offset += 8;
}
proto_tree_add_item(tree, hf_lustre_ldlm_lock_desc_l_req_mode, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ldlm_lock_desc_l_granted_mode, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* union ldlm_wire_policy_data { */
/* struct ldlm_extent l_extent; */
/* struct ldlm_flock_wire l_flock; */
/* struct ldlm_inodebits l_inodebits; */
/* } */
/* sizeof(ldlm_wire_policy_data) == 32 */
switch (type) {
case LDLM_EXTENT:
item = proto_tree_add_item(tree, hf_lustre_ldlm_lock_desc_l_policy_data, tvb, offset, 24, ENC_NA);
l_tree = proto_item_add_subtree(item, ett_lustre_ldlm_extent);
/* struct ldlm_extent { */
/* __u64 start; */
/* __u64 end; */
/* __u64 gid; */
/* }; */
proto_tree_add_item(l_tree, hf_lustre_ldlm_extent_start, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(l_tree, hf_lustre_ldlm_extent_end, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(l_tree, hf_lustre_ldlm_extent_gid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_extra_padding, tvb, offset, 8, ENC_NA);
offset += 8;
break;
case LDLM_PLAIN:
case LDLM_FLOCK:
item = proto_tree_add_item(tree, hf_lustre_ldlm_lock_desc_l_policy_data, tvb, offset, 32, ENC_NA);
l_tree = proto_item_add_subtree(item, ett_lustre_ldlm_flock);
/* struct ldlm_flock_wire { */
/* __u64 lfw_start; */
/* __u64 lfw_end; */
/* __u64 lfw_owner; */
/* __u32 lfw_padding; */
/* __u32 lfw_pid; */
/* }; */
proto_tree_add_item(l_tree, hf_lustre_ldlm_flock_start, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(l_tree, hf_lustre_ldlm_flock_end, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(l_tree, hf_lustre_ldlm_flock_owner, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(l_tree, hf_lustre_ldlm_flock_padding, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(l_tree, hf_lustre_ldlm_flock_pid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
break;
case LDLM_IBITS:
item = proto_tree_add_item(tree, hf_lustre_ldlm_lock_desc_l_policy_data, tvb, offset, 8, ENC_NA);
l_tree = proto_item_add_subtree(item, ett_lustre_ldlm_flock);
/* struct ldlm_inodebits { */
/* __u64 bits; */
/* __u64 try_bits; */
/* }; */
proto_tree_add_item(l_tree, hf_lustre_ldlm_inodebits_bits, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(l_tree, hf_lustre_ldlm_inodebits_try_bits, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(l_tree, hf_lustre_extra_padding, tvb, offset, 16, ENC_NA);
offset += 16;
break;
case 0: /* no actual locking */
proto_tree_add_item(tree, hf_lustre_extra_padding, tvb, offset, 32, ENC_NA);
offset += 32;
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "Unknown Lock Type: %d", type);
break;
}
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
static int
dissect_struct_seq_range(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* struct lu_seq_range { */
/* __u64 lsr_start; */
/* __u64 lsr_end; */
/* __u32 lsr_index; */
/* __u32 lsr_flags; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_seq_range, tvb, offset, 24, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_seq_range);
proto_tree_add_item(tree, hf_lustre_seq_range_start, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_seq_range_end, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_seq_range_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_seq_range_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_struct_ldlm_gl_barrier_desc(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* struct ldlm_gl_barrier_desc { */
/* __u32 lgbd_status; */
/* __u32 lgbd_timeout; */
/* __u64 lgbd_padding; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_ldlm_gl_barrier_desc, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ldlm_gl_barrier_desc);
proto_tree_add_item(tree, hf_lustre_ldlm_gl_barrier_desc_status, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ldlm_gl_barrier_desc_timeout, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ldlm_gl_barrier_desc_padding, tvb, offset, 8, ENC_NA);
offset += 8;
return offset;
}
static int
dissect_struct_ldlm_gl_lquota_desc(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* struct ldlm_gl_lquota_desc { */
/* union lquota_id gl_id; /\* quota ID subject to the glimpse *\/ */
/* __u64 gl_flags; /\* see LQUOTA_FL* below *\/ */
/* __u64 gl_ver; /\* new index version *\/ */
/* __u64 gl_hardlimit; /\* new hardlimit or qunit value *\/ */
/* __u64 gl_softlimit; /\* new softlimit *\/ */
/* __u64 gl_time; */
/* __u64 gl_pad2; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_ldlm_gl_lquota_desc, tvb, offset, 64, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ldlm_gl_lquota_desc);
offset = dissect_struct_lquota_id(tvb, offset, tree);
proto_tree_add_item(tree, hf_lustre_ldlm_gl_lquota_desc_flags, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ldlm_gl_lquota_desc_ver, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ldlm_gl_lquota_desc_hardlimit, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ldlm_gl_lquota_desc_softlimit, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ldlm_gl_lquota_desc_time, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ldlm_gl_lquota_desc_pad2, tvb, offset, 8, ENC_NA);
offset += 8;
return offset;
}
static int
dissect_struct_ldlm_gl_desc(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, lustre_trans_t *trans, unsigned buf_num)
{
unsigned data_len;
int old_offset;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
old_offset = offset;
/* union ldlm_gl_desc { */
/* struct ldlm_gl_lquota_desc lquota_desc; */
/* struct ldlm_gl_barrier_desc barrier_desc; */
/* }; SIZE == 64 */
switch (trans->sub_opcode) {
case CONFIG_T_BARRIER:
/* Size == 16 */
offset = dissect_struct_ldlm_gl_barrier_desc(tvb, offset, parent_tree, buf_num);
data_len = old_offset+64-offset;
proto_tree_add_item(parent_tree, hf_lustre_extra_padding, tvb, offset, data_len, ENC_NA);
offset += data_len;
break;
case CONFIG_T_CONFIG:
/* Size == 64 */
offset = dissect_struct_ldlm_gl_lquota_desc(tvb, offset, parent_tree, buf_num);
break;
default:
offset = display_buffer_data(tvb, pinfo, offset, parent_tree, buf_num, "GLIMPSE DESC");
break;
}
return offset;
}
static int
dissect_struct_ldlm_request(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, uint64_t *type, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned old_offset, data_len, count, i;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
old_offset = offset;
/* struct ldlm_request { */
/* __u32 lock_flags; */
/* __u32 lock_count; */
/* struct ldlm_lock_desc lock_desc; */
/* struct lustre_handle lock_handle[LDLM_LOCKREQ_HANDLES]; */
/* }; */
/* LDLM_LOCKREQ_HANDLES == 2 */
/* sizeof(ldlm_request) == 8+72+ 8*MAX(2,lock_count) */
item = proto_tree_add_item(parent_tree, hf_lustre_ldlm_request, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ldlm_request);
/* @@ change to bitmask on LDLM_FL_* */
proto_tree_add_item(tree, hf_lustre_ldlm_request_lock_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* There are always at least 2 buffers */
proto_tree_add_item_ret_uint(tree, hf_lustre_ldlm_request_lock_count, tvb, offset, 4, ENC_LITTLE_ENDIAN, &count);
if (count < 2)
count = 2;
offset += 4;
offset = dissect_struct_ldlm_lock_desc(tvb, offset, pinfo, tree, type);
for (i = 0; i < count; ++i)
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_ldlm_request_lock_handle);
proto_item_set_len(tree, offset-old_offset);
return offset;
}
static int
dissect_struct_ldlm_reply(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, uint64_t *type, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* struct ldlm_reply { */
/* __u32 lock_flags; */
/* __u32 lock_padding; /\* also fix lustre_swab_ldlm_reply *\/ */
/* struct ldlm_lock_desc lock_desc; */
/* struct lustre_handle lock_handle; */
/* __u64 lock_policy_res1; */
/* __u64 lock_policy_res2; */
/* }; */
/* SIZE == 24+80+8 */
item = proto_tree_add_item(parent_tree, hf_lustre_ldlm_reply, tvb, offset, 112, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ldlm_reply);
proto_tree_add_item(tree, hf_lustre_ldlm_reply_lock_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ldlm_reply_lock_padding, tvb, offset, 4, ENC_NA);
offset += 4;
offset = dissect_struct_ldlm_lock_desc(tvb, offset, pinfo, tree, type);
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_ldlm_reply_lock_handle);
proto_tree_add_item(tree, hf_lustre_ldlm_reply_lock_policy_res1, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ldlm_reply_lock_policy_res2, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
/********************************************************************\
*
* MGS Buffer Structures
*
\********************************************************************/
static int
dissect_struct_mgs_config_body(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, lustre_trans_t *trans)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_mgs_config_body, tvb, offset, 80, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_mgs_config_body);
/* struct mgs_config_body { */
/* char mcb_name[MTI_NAME_MAXLEN]; /\* logname *\/ */
/* __u64 mcb_offset; /\* next index of config log to request *\/ */
/* __u16 mcb_type; /\* type of log: CONFIG_T_[CONFIG|RECOVER] *\/ */
/* __u8 mcb_nm_cur_pass; */
/* __u8 mcb_bits; /\* bits unit size of config log *\/ */
/* __u32 mcb_units; /\* # of units for bulk transfer *\/ */
/* }; */
/* MTI_NAME_MAXLEN == 64 */
proto_tree_add_item(tree, hf_lustre_mgs_config_body_name, tvb, offset, 64, ENC_ASCII);
offset += 64;
proto_tree_add_item(tree, hf_lustre_mgs_config_body_offset, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
trans->sub_opcode = tvb_get_letohs(tvb, offset);
proto_tree_add_item(tree, hf_lustre_mgs_config_body_type, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_mgs_config_body_nm_cur_pass, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_lustre_mgs_config_body_bits, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_lustre_mgs_config_body_units, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_struct_mgs_config_res(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, lustre_trans_t *trans)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_mgs_config_res, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_mgs_config_res);
/* struct mgs_config_res { */
/* __u64 mcr_offset; /\* index of last config log *\/ */
/* union { */
/* __u64 mcr_size; /\* size of the log *\/ */
/* __u64 mcr_nm_cur_pass; /\* current nodemap config pass *\/ */
/* }; */
/* }; */
proto_tree_add_item(tree, hf_lustre_mgs_config_res_offset, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
if (trans->sub_opcode == CONFIG_T_NODEMAP)
proto_tree_add_item(tree, hf_lustre_mgs_config_res_nm_cur_pass, tvb, offset, 8, ENC_LITTLE_ENDIAN);
else
proto_tree_add_item(tree, hf_lustre_mgs_config_res_size, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_mgs_target_info(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
uint32_t data_len, old_offset, i, count;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
old_offset = offset;
item = proto_tree_add_item(parent_tree, hf_lustre_mgs_target_info, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_mgs_config_res);
/* #define MTI_NAME_MAXLEN 64 */
/* #define MTI_PARAM_MAXLEN 4096 */
/* #define MTI_NIDS_MAX 32 */
/* struct mgs_target_info { */
/* __u32 mti_lustre_ver; */
/* __u32 mti_stripe_index; */
/* __u32 mti_config_ver; */
/* __u32 mti_flags; */
/* __u32 mti_nid_count; */
/* __u32 mti_instance; /\* Running instance of target *\/ */
/* char mti_fsname[MTI_NAME_MAXLEN]; */
/* char mti_svname[MTI_NAME_MAXLEN]; */
/* char mti_uuid[sizeof(struct obd_uuid)]; */
/* __u64 mti_nids[MTI_NIDS_MAX]; /\* host nids (lnet_nid_t)*\/ */
/* char mti_params[MTI_PARAM_MAXLEN]; */
/* }; */
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_lustre_ver, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_stripe_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_config_ver, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_mgs_target_info_mti_nid_count, tvb, offset, 4, ENC_LITTLE_ENDIAN, &count);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_instance, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_fsname, tvb, offset, 64, ENC_NA);
offset += 64;
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_svname, tvb, offset, 64, ENC_NA);
offset += 64;
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_uuid, tvb, offset, 40, ENC_ASCII);
offset += 40;
for (i = 0; i < count; ++i)
offset = lnet_dissect_struct_nid(tvb, tree, offset, hf_lustre_mgs_target_info_mti_nids);
i = (32-count) * 8;
proto_tree_add_item(tree, hf_lustre_mgs_target_info_padding, tvb, offset, i, ENC_NA);
offset += i;
i = MIN(4096, data_len-(offset-old_offset));
proto_tree_add_item(tree, hf_lustre_mgs_target_info_mti_params, tvb, offset, i, ENC_NA);
offset += i;
proto_item_set_len(item, offset-old_offset);
return offset;
}
/********************************************************************\
*
* MDS Buffer Structures
*
\********************************************************************/
static int
dissect_struct_acl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_acl, tvb, offset, data_len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_acl);
proto_tree_add_item(tree, hf_lustre_data, tvb, offset, data_len, ENC_NA);
offset += data_len;
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
static int
dissect_struct_mdt_ioepoch(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_mdt_ioepoch, tvb, offset, 24, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_mdt_ioepoch);
/* struct mdt_ioepoch { */
/* struct lustre_handle mio_handle; */
/* __u64 mio_unused1; /\* was ioepoch *\/ */
/* __u32 mio_unused2; /\* was flags *\/ */
/* __u32 mio_padding; */
/* } */
/* sizeof(mdt_ioepoch) == 24 */
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_mdt_ioepoch_handle);
proto_tree_add_item(tree, hf_lustre_mdt_ioepoch_ioepoch, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_ioepoch_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_ioepoch_padding, tvb, offset, 4, ENC_NA);
offset += 4;
return offset;
}
static int
dissect_struct_close_data(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_close_data, tvb, offset, 96, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_close_data);
/* struct close_data { */
/* struct lustre_handle cd_handle; */
/* struct lu_fid cd_fid; */
/* __u64 cd_data_version; */
/* __u64 cd_reserved[8]; */
/* }; */
/* sizeof(mdt_ioepoch) == 8+16+8+64 */
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_close_handle);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_close_fid);
proto_tree_add_item(tree, hf_lustre_close_data_ver, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_close_reserved, tvb, offset, 64, ENC_NA);
offset += 64;
return offset;
}
static int
dissect_struct_mdt_rec_reint(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_tree *item;
unsigned data_len, opcode;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* struct mdt_rec_reint { LINK CREATE RENAME SETXATTR SETATTR
* 0 __u32 rr_opcode; UNLINK
* 4 __u32 rr_cap;
* 8 __u32 rr_fsuid;
* 12 __u32 rr_fsuid_h;
* 16 __u32 rr_fsgid;
* 20 __u32 rr_fsgid_h;
* 24 __u32 rr_suppgid1;
* 28 __u32 rr_suppgid1_h;
* 32 __u32 rr_suppgid2; pad
* 36 __u32 rr_suppgid2_h; pad
* 40 lu_fid rr_fid1;
* -- All above is the same
* 56 lu_fid rr_fid2; pad,pad,pad valid,uid,gid
* 72 __s64 rr_mtime; time COOKIE time valid size
* 80 __s64 rr_atime; pad time pad time blocks
* 88 __s64 rr_ctime; pad rdev pad pad mtime
* 96 __u64 rr_size; pad ioepoch pad pad atime
* 104 __u64 rr_blocks; pad pad pad pad ctime
* 112 __u32 rr_bias; mode size attr_flags
* 116 __u32 rr_mode; pad bias flags
* 120 __u32 rr_flags; pad pad pad bias
* 124 __u32 rr_flags_h; pad pad pad projid
* 128 __u32 rr_umask; pad pad pad pad
* 132 __u32 rr_padding_4;
* }; */
/* sizeof(mdt_rec_reint) == 136 */
item = proto_tree_add_item(parent_tree, hf_lustre_mdt_rec_reint, tvb, offset, 136, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_mdt_rec_reint);
if (data_len != 136)
expert_add_info_format(pinfo, tree, &ei_lustre_buflen,
"Buffer Length mismatch: expected:136 !== length:%u", data_len);
proto_tree_add_item_ret_uint(tree, hf_lustre_mdt_rec_reint_opcode, tvb, offset, 4, ENC_LITTLE_ENDIAN, &opcode);
proto_item_append_text(tree, " %s", val_to_str(opcode, mds_reint_vals, "BAD(%d)"));
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_cap, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_fsuid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_fsuid_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_fsgid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_fsgid_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_suppgid1, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_suppgid1_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* Byte: 32 */
if (opcode == REINT_SETATTR) {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_padding, tvb, offset, 8, ENC_NA);
offset += 8;
} else {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_suppgid2, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_suppgid2_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
/* Byte: 40 */
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_mdt_rec_reint_fid1);
if (opcode == REINT_SETXATTR) {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_padding, tvb, offset, 16, ENC_NA);
offset += 16;
} else if (opcode == REINT_SETATTR) {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_valid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_uid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_gid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
} else { /* DEFAULT */
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_mdt_rec_reint_fid2);
}
/* Byte: 72 */
if (opcode == REINT_CREATE) {
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_mdt_rec_reint_old_handle);
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_time, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_rdev, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_ioepoch, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_padding, tvb, offset, 8, ENC_NA);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_mode, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_bias, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
} else if (opcode == REINT_SETXATTR) {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_valid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_time, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_padding, tvb, offset, 24, ENC_NA);
offset += 24;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_size32, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
} else if (opcode == REINT_SETATTR) {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_size64, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_blocks, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_mtime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_atime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_ctime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_attr_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_mode, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
} else {
if (opcode == REINT_LINK || opcode == REINT_RENAME || opcode == REINT_UNLINK) {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_time, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_padding, tvb, offset, 32, ENC_NA);
offset += 32;
} else { /* DEFAULT */
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_mtime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_atime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_ctime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_size64, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_blocks, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
}
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_bias, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_mode, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
/* Byte: 120 */
if (opcode == REINT_LINK || opcode == REINT_RENAME || opcode == REINT_UNLINK || opcode == REINT_SETXATTR) {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_padding, tvb, offset, 12, ENC_NA);
offset += 12;
} else if (opcode == REINT_SETATTR) {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_bias, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_projid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
} else {
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_flags_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_umask, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
/* Byte: 132 */
proto_tree_add_item(tree, hf_lustre_mdt_rec_reint_padding, tvb, offset, 4, ENC_NA);
offset += 4;
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
static int
dissect_struct_lmv_mds_md_v1(tvbuff_t *tvb, packet_info *pinfo _U_, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned old_offset, count, i, magic;
count = LUSTRE_BUFFER_LEN(buf_num);
if (count == 0)
return offset;
old_offset = offset;
/* /\* LMV layout EA, and it will be stored both in master and slave object *\/ */
/* struct lmv_mds_md_v1 { */
/* __u32 lmv_magic; */
/* __u32 lmv_stripe_count; */
/* __u32 lmv_master_mdt_index; /\* On master object, it is master */
/* * MDT index, on slave object, it */
/* * is stripe index of the slave obj *\/ */
/* __u32 lmv_hash_type; /\* dir stripe policy, i.e. indicate */
/* * which hash function to be used, */
/* * Note: only lower 16 bits is being */
/* * used for now. Higher 16 bits will */
/* * be used to mark the object status, */
/* * for example migrating or dead. *\/ */
/* __u32 lmv_layout_version; /\* Used for directory restriping *\/ */
/* __u32 lmv_padding1; */
/* __u64 lmv_padding2; */
/* __u64 lmv_padding3; */
/* char lmv_pool_name[16]; /\* pool name *\/ */
/* struct lu_fid lmv_stripe_fids[0]; /\* FIDs for each stripe *\/ */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_lmv_mds_md, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lmv_mds_md);
proto_tree_add_item_ret_uint(tree, hf_lustre_lmv_mds_md_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN, &magic);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_lmv_mds_md_stripe_count, tvb, offset, 4, ENC_LITTLE_ENDIAN, &count);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_mds_md_master_mdt_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_mds_md_hash_type, tvb, offset, 4, ENC_LITTLE_ENDIAN);
proto_tree_add_item(tree, hf_lustre_lmv_mds_md_status, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_mds_md_layout_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_mds_md_padding, tvb, offset, 20, ENC_NA);
offset += 20;
proto_tree_add_item(tree, hf_lustre_lmv_mds_md_pool_name, tvb, offset, 16, ENC_ASCII);
offset += 16;
for (i = 0; i < count && magic == LMV_MAGIC_V1; ++i)
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_lmv_mds_md_stripe_fid);
proto_item_set_len(item, offset-old_offset);
return offset;
}
static int
dissect_struct_lmv_user_mds_data(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int hf_index)
{
proto_tree *tree;
proto_item *item;
/* struct lmv_user_mds_data { */
/* struct lu_fid lum_fid; */
/* __u32 lum_padding; */
/* __u32 lum_mds; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 24, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lmv_user_mds_data);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_lmv_user_mds_data_fid);
proto_tree_add_item(tree, hf_lustre_lmv_user_mds_data_padding, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_user_mds_data_mds, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_struct_lmv_user_md(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned old_offset, buf_len, i, magic, count;
buf_len = LUSTRE_BUFFER_LEN(buf_num);
if (buf_len == 0)
return offset;
old_offset = offset;
/* struct lmv_user_md_v1 { */
/* __u32 lum_magic; /\* must be the first field *\/ */
/* __u32 lum_stripe_count; /\* dirstripe count *\/ */
/* __u32 lum_stripe_offset; /\* MDT idx for default dirstripe *\/ */
/* __u32 lum_hash_type; /\* Dir stripe policy *\/ */
/* __u32 lum_type; /\* LMV type: default *\/ */
/* __u8 lum_max_inherit; /\* inherit depth of default LMV *\/ */
/* __u8 lum_max_inherit_rr; /\* inherit depth of default LMV to round-robin mkdir *\/ */
/* __u16 lum_padding1; */
/* __u32 lum_padding2; */
/* __u32 lum_padding3; */
/* char lum_pool_name[LOV_MAXPOOLNAME + 1]; */
/* struct lmv_user_mds_data lum_objects[0]; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_lmv_user_md_v1, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lmv_user_md_v1);
proto_tree_add_item_ret_uint(tree, hf_lustre_lmv_user_md_v1_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN, &magic);
offset += 4;
// @@ if magic == LMV_MAGIC_FOREIGN { -> lmv_foreign_md }
proto_tree_add_item_ret_uint(tree, hf_lustre_lmv_user_md_v1_stripe_count, tvb, offset, 4, ENC_LITTLE_ENDIAN, &count);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_user_md_v1_stripe_offset, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_user_md_v1_hash_type, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_user_md_v1_type, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lmv_user_md_v1_max_inherit, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_lustre_lmv_user_md_v1_max_inherit_rr, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_lustre_lmv_user_md_v1_padding, tvb, offset, 10, ENC_NA);
offset += 10;
proto_tree_add_item(tree, hf_lustre_lmv_user_md_v1_pool_name, tvb, offset, 16, ENC_ASCII);
offset += 16;
if (buf_len + old_offset >= (unsigned)offset + 24) {
for (i = 0; i < count && magic == LMV_USER_MAGIC; ++i)
offset = dissect_struct_lmv_user_mds_data(tvb, offset, tree, hf_lustre_lmv_user_md_v1_objects);
} else {
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
}
if (offset-old_offset != buf_len)
expert_add_info(pinfo, tree, &ei_lustre_buflen);
proto_item_set_len(item, offset-old_offset);
return offset;
}
static int
dissect_struct_lov_mds_md(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree, *ost_tree;
proto_item *item, *lov_item;
unsigned data_len, old_offset, stripe_count, i;
uint32_t magic;
old_offset = offset;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
magic = tvb_get_letohl(tvb, offset);
switch (magic) {
case LOV_MAGIC_V1:
item = proto_tree_add_item(parent_tree, hf_lustre_lov_mds_md, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lov_mds_md);
proto_item_append_text(item, " V1");
break;
case LOV_MAGIC_V3:
item = proto_tree_add_item(parent_tree, hf_lustre_lov_mds_md, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lov_mds_md);
proto_item_append_text(item, " V3");
break;
case LMV_MAGIC_V1:
case LMV_MAGIC_STRIPE: /* this uses struct lmv_mds_md, but without fids */
return dissect_struct_lmv_mds_md_v1(tvb, pinfo, offset, parent_tree, buf_num);
default:
// This is for speculative processing of LDLM Intent Reply
// IT_LAYOUT, and thus not an error
return display_buffer_data(tvb, pinfo, offset, parent_tree, buf_num, "DLM LVB");
}
/* struct lov_mds_md_v1 { */
/* uint32 lmm_magic; */
/* uint32 lmm_pattern; */
/* uint64 lmm_object_id; */
/* uint64 lmm_object_seq; */
/* uint32 lmm_stripe_size; */
/* uint16 lmm_stripe_count; */
/* uint16 lmm_layout_gen; */
/* struct lov_ost_data_v1 lmm_objects[0]; <-- en fait on en a lmm_stripe_count */
/* } */
/* struct lov_mds_md_v3 { /\* LOV EA mds/wire data (little-endian) *\/ */
/* __u32 lmm_magic; /\* magic number = LOV_MAGIC_V3 *\/ */
/* __u32 lmm_pattern; /\* LOV_PATTERN_RAID0, LOV_PATTERN_RAID1 *\/ */
/* struct ost_id lmm_oi; /\* LOV object ID *\/ */
/* __u32 lmm_stripe_size; /\* size of stripe in bytes *\/ */
/* /\* lmm_stripe_count used to be __u32 *\/ */
/* __u16 lmm_stripe_count; /\* num stripes in use for this object *\/ */
/* __u16 lmm_layout_gen; /\* layout generation number *\/ */
/* char lmm_pool_name[LOV_MAXPOOLNAME + 1]; /\* must be 32bit aligned *\/ */
/* struct lov_ost_data_v1 lmm_objects[0]; /\* per-stripe data *\/ */
/* }; LOV_MAXPOOLNAME == 15 */
proto_tree_add_item(tree, hf_lustre_lov_mds_md_lmm_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lov_mds_md_lmm_pattern, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
switch (magic) {
case LOV_MAGIC_V1:
proto_tree_add_item(tree, hf_lustre_lov_mds_md_lmm_object_id, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lov_mds_md_lmm_object_seq, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
break;
case LOV_MAGIC_V3:
offset = dissect_struct_ost_id(tvb, offset, tree);
break;
}
proto_tree_add_item(tree, hf_lustre_lov_mds_md_lmm_stripe_size, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_lov_mds_md_lmm_stripe_count, tvb, offset, 2, ENC_LITTLE_ENDIAN, &stripe_count);
offset += 2;
proto_tree_add_item(tree, hf_lustre_lov_mds_md_lmm_layout_gen, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
if (magic == LOV_MAGIC_V3) {
proto_tree_add_item(tree, hf_lustre_lov_mds_md_lmm_pool_name, tvb, offset, 16, ENC_ASCII);
offset += 16;
}
/* This may happen when, server is just returning the stripe
count, but not the stripe data (ie default stripe_count on a
directory) */
if (data_len-(offset-old_offset) != stripe_count*24)
stripe_count = (data_len-(offset-old_offset))/24;
for (i = 0; i < stripe_count; ++i) {
lov_item = proto_tree_add_item(tree, hf_lustre_lov_ost_data_v1, tvb, offset, 24, ENC_NA);
ost_tree = proto_item_add_subtree(lov_item, ett_lustre_lov_ost_data_v1);
proto_item_append_text(lov_item, " [%u]", i);
offset = dissect_struct_ost_id(tvb, offset, ost_tree);
proto_tree_add_item(ost_tree, hf_lustre_lov_ost_data_v1_l_ost_gen, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(ost_tree, hf_lustre_lov_ost_data_v1_l_ost_idx, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
if (offset-old_offset != data_len)
expert_add_info(pinfo, tree, &ei_lustre_buflen);
proto_item_set_len(item, data_len);
return offset;
}
static int
dissect_struct_llog_cookie_array(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i;
data_len = LUSTRE_BUFFER_LEN(buf_num);
for (i = 0; i < data_len/24; ++i) {
item = proto_tree_add_item(parent_tree, hf_lustre_llog_cookie, tvb, offset, 24, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_cookie);
proto_item_append_text(item, " [%d]", i);
/* struct llog_cookie { */
/* struct llog_logid lgc_lgl; */
/* __u32 lgc_subsys; */
/* __u32 lgc_index; */
/* __u32 lgc_padding; */
/* } */
/* sizeof(llog_cookie) == 12 + 20 */
offset = dissect_struct_llog_logid(tvb, offset, tree, hf_lustre_llog_cookie_lgc_lgl);
proto_tree_add_item(tree, hf_lustre_llog_cookie_lgc_subsys, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_cookie_lgc_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_cookie_lgc_padding, tvb, offset, 4, ENC_NA);
offset += 4;
}
return offset;
}
static int
dissect_struct_mdc_swap_layouts(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_mdc_swap_layouts, tvb, offset, 8, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_mdc_swap_layouts);
/* struct mdc_swap_layouts { */
/* __u64 msl_flags; */
/* } */
proto_tree_add_item(tree, hf_lustre_mdc_swap_layouts_flags, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_hsm_request(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_hsm_req, tvb, offset, 24, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_hsm_request);
/* struct hsm_request { */
/* __u32 hr_action; /\* enum hsm_user_action *\/ */
/* __u32 hr_archive_id; /\* archive id, used only with HUA_ARCHIVE *\/ */
/* __u64 hr_flags; /\* request flags *\/ */
/* __u32 hr_itemcount; /\* item count in hur_user_item vector *\/ */
/* __u32 hr_data_len; */
/* }; */
proto_tree_add_item(tree, hf_lustre_hsm_req_action, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_req_archive_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_req_flags, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_hsm_req_itemcount, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_req_data_len, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_struct_hsm_extent(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_hsm_extent, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_hsm_extent);
proto_tree_add_item(tree, hf_lustre_hsm_extent_offset, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_hsm_extent_length, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_hsm_progress(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_hsm_prog, tvb, offset, 64, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_hsm_progress);
/* struct hsm_progress_kernel { */
/* /\* Field taken from struct hsm_progress *\/ */
/* lustre_fid hpk_fid; */
/* __u64 hpk_cookie; */
/* struct hsm_extent hpk_extent; */
/* __u16 hpk_flags; */
/* __u16 hpk_errval; /\* positive val *\/ */
/* __u32 hpk_padding1; */
/* /\* Additional fields *\/ */
/* __u64 hpk_data_version; */
/* __u64 hpk_padding2; */
/* } */
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_hsm_prog_fid);
proto_tree_add_item(tree, hf_lustre_hsm_prog_cookie, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
offset = dissect_struct_hsm_extent(tvb, offset, tree);
proto_tree_add_item(tree, hf_lustre_hsm_prog_flags, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_hsm_prog_errval, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_hsm_prog_padding1, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_prog_data_ver, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_hsm_prog_padding2, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_hsm_user_state(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
if (data_len < 32)
expert_add_info_format(pinfo, parent_tree, &ei_lustre_buflen, "Buffer Length expected >= 32 length:%u", data_len);
item = proto_tree_add_item(parent_tree, hf_lustre_hsm_user_state, tvb, offset, data_len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_hsm_user_state);
/* struct hsm_user_state { */
/* /\** Current HSM states, from enum hsm_states. *\/ */
/* __u32 hus_states; */
/* __u32 hus_archive_id; */
/* /\** The current undergoing action, if there is one *\/ */
/* __u32 hus_in_progress_state; */
/* __u32 hus_in_progress_action; */
/* struct hsm_extent hus_in_progress_location; */
/* char hus_extended_info[]; */
/* }; */
proto_tree_add_item(tree, hf_lustre_hsm_us_states, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_us_archive_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_us_in_prog_state, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_us_in_prog_action, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = dissect_struct_hsm_extent(tvb, offset, tree);
data_len -= 32;
if (data_len > 0) {
proto_tree_add_item(tree, hf_lustre_hsm_us_ext_info, tvb, offset, data_len, ENC_NA);
offset += data_len;
}
return offset;
}
static int
dissect_struct_hsm_state_set(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
if (data_len < 24)
expert_add_info_format(pinfo, parent_tree, &ei_lustre_buflen,
"Buffer Length expected >= 24 length:%u", data_len);
item = proto_tree_add_item(parent_tree, hf_lustre_hsm_state_set, tvb, offset, data_len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_hsm_state_set);
/* struct hsm_state_set { */
/* __u32 hss_valid; */
/* __u32 hss_archive_id; */
/* __u64 hss_setmask; */
/* __u64 hss_clearmask; */
/* }; */
proto_tree_add_item(tree, hf_lustre_hsm_hss_valid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_hss_archive_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
// both of the following are 64-bit ints, but hold a mask that is used with 32-bit ints
// elsewhere
proto_tree_add_item(tree, hf_lustre_hsm_hss_setmask, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_hsm_hss_clearmask, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_hsm_user_item_array(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* struct hsm_user_item { */
/* lustre_fid hui_fid; */
/* struct hsm_extent hui_extent; */
/* } */
/* sizeof(hsm_user_item) == 16+16 */
for (i = 0; i < data_len/32; ++i) {
item = proto_tree_add_item(parent_tree, hf_lustre_hsm_user_item, tvb, offset, 32, ENC_NA);
proto_item_append_text(item, " [%d]", i);
tree = proto_item_add_subtree(item, ett_lustre_hsm_user_item);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_hsm_user_item_fid);
offset = dissect_struct_hsm_extent(tvb, offset, tree);
}
return offset;
}
static int
dissect_struct_hsm_current_action(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* 4+4+16 */
/* struct hsm_current_action { */
/* /\** The current undergoing action, if there is one *\/ */
/* /\* state is one of hsm_progress_states *\/ */
/* __u32 hca_state; */
/* /\* action is one of hsm_user_action *\/ */
/* __u32 hca_action; */
/* struct hsm_extent hca_location; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_hsm_current_action, tvb, offset, 24, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_hsm_current_action);
proto_tree_add_item(tree, hf_lustre_hsm_current_action_state, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_hsm_current_action_action, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = dissect_struct_hsm_extent(tvb, offset, tree);
return offset;
}
static int
dissect_hsm_archive(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i;
data_len = LUSTRE_BUFFER_LEN(buf_num);
item = proto_tree_add_item(parent_tree, hf_lustre_hsm_archive, tvb, offset, data_len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_hsm_archive);
// @@ First item may be count for older clients c.f. lustre/mdt/mdt_hsm.c::mdt_hsm_ct_register()
for (i = 0; i < data_len/4; ++i) {
proto_tree_add_item(tree, hf_lustre_hsm_archive_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
offset = add_extra_padding(tvb, offset, NULL, tree);
return offset;
}
/********************************************************************
*
* Out Buffer Structures
*
*/
static int
dissect_struct_out_update_header(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree, *data_tree;
proto_item *item;
unsigned i, count, magic, length;
int old_offset, data_len;
old_offset = offset;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* struct out_update_header { */
/* __u32 ouh_magic; */
/* __u32 ouh_count; */
/* __u32 ouh_inline_length; */
/* __u32 ouh_reply_size; */
/* __u32 ouh_inline_data[0]; */
/* }; */
/* SIZE = 20 + inline_length */
item = proto_tree_add_item(parent_tree, hf_lustre_out_update_header, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_out_update_header);
proto_tree_add_item_ret_uint(tree, hf_lustre_out_update_header_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN, &magic);
offset += 4;
if (magic != OUT_UPDATE_HEADER_MAGIC)
expert_add_info(pinfo, tree, &ei_lustre_badmagic);
proto_tree_add_item_ret_uint(tree, hf_lustre_out_update_header_count, tvb, offset, 4, ENC_LITTLE_ENDIAN, &count);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_out_update_header_inline_length, tvb, offset, 4, ENC_LITTLE_ENDIAN, &length);
offset += 4;
proto_tree_add_item(tree, hf_lustre_out_update_header_reply_size, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
item = proto_tree_add_item(tree, hf_lustre_out_update_header_inline_data, tvb, offset, length, ENC_NA);
if (length > 0) {
data_tree = proto_item_add_subtree(item, ett_lustre_out_update_header_data);
if (magic == OUT_UPDATE_HEADER_MAGIC) {
/* ouh_inline_data -> array[ouh_count] of struct object_update_request */
for (i = 0; i < count; ++i)
offset = dissect_struct_object_update_request(tvb, offset, pinfo, tree);
// @@ limit size?
if (offset-old_offset != data_len)
expert_add_info(pinfo, tree, &ei_lustre_buflen);
proto_item_set_len(tree, offset-old_offset);
} else {
proto_item_set_len(data_tree, data_len-20);
proto_item_set_len(tree, data_len);
}
}
if (data_len > offset-old_offset) {
expert_add_info(pinfo, tree, &ei_lustre_buflen);
offset = old_offset + data_len;
}
proto_item_set_len(tree, offset-old_offset);
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
static int
dissect_struct_out_update_buffer(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i;
int old_offset;
old_offset = offset;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* struct out_update_buffer { */
/* __u32 oub_size; */
/* __u32 oub_padding; */
/* }; */
for (i = 0; i < data_len/8; ++i) {
item = proto_tree_add_item(parent_tree, hf_lustre_out_update_buffer, tvb, offset, 8, ENC_NA);
proto_item_append_text(item, " [%d]", i);
tree = proto_item_add_subtree(item, ett_lustre_out_update_buffer);
proto_tree_add_item(tree, hf_lustre_out_update_buffer_size, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_out_update_buffer_padding, tvb, offset, 4, ENC_NA);
offset += 4;
}
if ((int)data_len != offset-old_offset)
expert_add_info(pinfo, parent_tree, &ei_lustre_buflen);
return offset;
}
static int
dissect_struct_obj_update_result(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
unsigned data_len;
int old_offset;
old_offset = offset;
/* struct object_update_result { */
/* __u32 our_rc; */
/* __u16 our_datalen; */
/* __u16 our_padding; */
/* __u32 our_data[0]; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_obj_update_result, tvb, offset, 8, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_obj_update_result);
proto_tree_add_item(tree, hf_lustre_obj_update_result_rc, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_obj_update_result_datalen, tvb, offset, 2, ENC_LITTLE_ENDIAN, &data_len);
offset += 2;
proto_tree_add_item(tree, hf_lustre_obj_update_result_padding, tvb, offset, 2, ENC_NA);
offset += 2;
proto_tree_add_item(tree, hf_lustre_obj_update_result_data, tvb, offset, data_len, ENC_NA);
offset += data_len;
proto_item_set_len(tree, offset-old_offset);
return offset;
}
static int
dissect_struct_obj_update_reply(tvbuff_t *tvb, int offset, packet_info * pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i, magic, count;
int old_offset;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
old_offset = offset;
/* struct object_update_reply { */
/* __u32 ourp_magic; */
/* __u16 ourp_count; */
/* __u16 ourp_padding; */
/* __u16 ourp_lens[0]; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_obj_update_reply, tvb, offset, 8, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_obj_update_reply);
/* @@ Check V1? */
proto_tree_add_item_ret_uint(tree, hf_lustre_obj_update_reply_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN, &magic);
if (magic != UPDATE_REPLY_MAGIC_V2) /* Currently (Lustre 2.10.2) the default */
expert_add_info(pinfo, tree, &ei_lustre_badmagic);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_obj_update_reply_count, tvb, offset, 2, ENC_LITTLE_ENDIAN, &count);
offset += 2;
proto_tree_add_item(tree, hf_lustre_obj_update_reply_padding, tvb, offset, 2, ENC_NA);
offset += 2;
for (i = 0; i < count; ++i) {
item = proto_tree_add_item(tree, hf_lustre_obj_update_reply_lens, tvb, offset, 2, ENC_LITTLE_ENDIAN);
proto_item_append_text(item, " [%d]", i);
offset += 2;
}
// @@ add check above lengths don't agree with below .our_data_len
for (i = 0; i < count; ++i) {
offset = dissect_struct_obj_update_result(tvb, offset, tree);
}
if (data_len > (unsigned)(offset-old_offset)) {
expert_add_info(pinfo, tree, &ei_lustre_buflen);
offset = old_offset + data_len;
}
proto_item_set_len(tree, offset-old_offset);
return offset;
}
/********************************************************************
*
* I/O Buffer Structures
*
*/
static int
dissect_struct_obd_ioobj(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i;
data_len = LUSTRE_BUFFER_LEN(buf_num);
/* struct obd_ioobj { */
/* uint64 ioo_id; */
/* uint64 ioo_seq; */
/* uint32 ioo_max_brw; */
/* uint32 ioo_bufcnt; */
/* } */
/* sizeof(struct obd_ioobj) == 24 */
for (i = 0; i < data_len/24; ++i) {
item = proto_tree_add_item(parent_tree, hf_lustre_obd_ioobj, tvb, offset, 24, ENC_NA);
proto_item_append_text(item, " [%d]", i);
tree = proto_item_add_subtree(item, ett_lustre_obd_ioobj);
proto_tree_add_item(tree, hf_lustre_obd_ioobj_ioo_id, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_ioobj_ioo_seq, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_ioobj_ioo_max_brw, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_ioobj_ioo_bufcnt, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
return offset;
}
static int
dissect_struct_niobuf_remote(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i;
data_len = LUSTRE_BUFFER_LEN(buf_num);
/* struct niobuf_remote { */
/* __u64 rnb_offset; */
/* __u32 rnb_len; */
/* __u32 rnb_flags; */
/* }; */
/* sizeof(struct niobuf_remote) == 16 */
for (i = 0; i < data_len/16; ++i) {
item = proto_tree_add_item(parent_tree, hf_lustre_niobuf_remote, tvb, offset, 16, ENC_NA);
proto_item_append_text(item, " [%d]", i);
tree = proto_item_add_subtree(item, ett_lustre_niobuf_remote);
proto_tree_add_item(tree, hf_lustre_niobuf_remote_offset, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_niobuf_remote_len, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_niobuf_remote_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
static int
dissect_rc_array(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i;
data_len = LUSTRE_BUFFER_LEN(buf_num);
item = proto_tree_add_item(parent_tree, hf_lustre_rcs, tvb, offset, data_len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_rcs);
for (i = 0; i < data_len/4; ++i) {
proto_tree_add_item(tree, hf_lustre_rcs_rc, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
offset = add_extra_padding(tvb, offset, pinfo, tree);
return offset;
}
static int
dissect_struct_fid_array(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len, i, num;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_fid_array, tvb, offset, data_len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_fid_array);
num = data_len/16;
for (i = 0; i < num; ++i) {
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_fid_array_fid);
}
offset = add_extra_padding(tvb, offset, pinfo, tree);
return offset;
}
static int
dissect_struct_quota_body(tvbuff_t *tvb, int offset, proto_tree *parent_tree, unsigned buf_num)
{
proto_tree *tree;
proto_item *item;
unsigned data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_quota_body, tvb, offset, 104, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_quota_body);
/* struct quota_body { */
/* struct lu_fid qb_fid; /\* FID of global index packing the pool ID */
/* * and type (data or metadata) as well as */
/* * the quota type (user or group). *\/ */
/* union lquota_id qb_id; /\* uid or gid or directory FID *\/ */
/* __u32 qb_flags; /\* see below *\/ */
/* __u32 qb_padding; */
/* __u64 qb_count; /\* acquire/release count (kbytes/inodes) *\/ */
/* __u64 qb_usage; /\* current slave usage (kbytes/inodes) *\/ */
/* __u64 qb_slv_ver; /\* slave index file version *\/ */
/* struct lustre_handle qb_lockh; /\* per-ID lock handle *\/ */
/* struct lustre_handle qb_glb_lockh; /\* global lock handle *\/ */
/* __u64 qb_padding1[4]; */
/* }; */
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_qb_fid);
offset = dissect_struct_lquota_id(tvb, offset, tree);
// @@ Add parsing QUOTA_DQACQ_FL_*
proto_tree_add_item(tree, hf_lustre_qb_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_qb_padding, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(tree, hf_lustre_qb_count, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_qb_usage, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_qb_slv_ver, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_qb_lockh);
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_qb_glb_lockh);
proto_tree_add_item(tree, hf_lustre_qb_padding, tvb, offset, 32, ENC_NA);
offset += 32;
return offset;
}
static int
dissect_struct_obd_quotactl(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree, *sub_tree;
proto_item *item;
item = proto_tree_add_item(parent_tree, hf_lustre_obd_quotactl, tvb, offset, 112, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_obd_quotactl);
/* struct obd_quotactl { */
/* __u32 qc_cmd; */
/* __u32 qc_type; /\* see Q_* flag below *\/ */
/* __u32 qc_id; */
/* __u32 qc_stat; */
/* struct obd_dqinfo qc_dqinfo; */
/* struct obd_dqblk qc_dqblk; */
/* sizeof(obd_quotactl) == 16 + 24 + 72 */
/* }; */
proto_tree_add_item(tree, hf_lustre_obd_quotactl_qc_cmd, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_quotactl_qc_type, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_quotactl_qc_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_quotactl_qc_stat, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
item = proto_tree_add_item(parent_tree, hf_lustre_obd_dqinfo, tvb, offset, 24, ENC_NA);
sub_tree = proto_item_add_subtree(item, ett_lustre_obd_dqinfo);
/* struct obd_dqinfo { */
/* __u64 dqi_bgrace; */
/* __u64 dqi_igrace; */
/* __u32 dqi_flags; */
/* __u32 dqi_valid; */
/* }; */
proto_tree_add_item(sub_tree, hf_lustre_obd_dqinfo_dqi_bgrace, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqinfo_dqi_igrace, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqinfo_dqi_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqinfo_dqi_valid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
item = proto_tree_add_item(parent_tree, hf_lustre_obd_dqblk, tvb, offset, 72, ENC_NA);
sub_tree = proto_item_add_subtree(item, ett_lustre_obd_dqblk);
/* struct obd_dqblk { */
/* __u64 dqb_bhardlimit; */
/* __u64 dqb_bsoftlimit; */
/* __u64 dqb_curspace; */
/* __u64 dqb_ihardlimit; */
/* __u64 dqb_isoftlimit; */
/* __u64 dqb_curinodes; */
/* __u64 dqb_btime; */
/* __u64 dqb_itime; */
/* __u32 dqb_valid; */
/* __u32 dqb_padding; */
/* }; */
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_bhardlimit, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_bsoftlimit, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_curspace, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_ihardlimit, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_isoftlimit, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_curinodes, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_btime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_itime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_dqb_valid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(sub_tree, hf_lustre_obd_dqblk_padding, tvb, offset, 4, ENC_NA);
offset += 4;
return offset;
}
static int
dissect_struct_lu_ladvise_hdr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
uint32_t val;
/* struct ladvise_hdr { */
/* __u32 lah_magic; /\* LADVISE_MAGIC *\/ */
/* __u32 lah_count; /\* number of advices *\/ */
/* __u64 lah_flags; /\* from enum ladvise_flag *\/ */
/* __u32 lah_value1; /\* unused *\/ */
/* __u32 lah_value2; /\* unused *\/ */
/* __u64 lah_value3; /\* unused *\/ */
/* struct lu_ladvise lah_advise[0]; /\* advices in this header *\/ */
/* sizeof(ladvise_hdr) == 32 */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_lu_ladvise_hdr, tvb, offset, 32, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ladvise_hdr);
proto_tree_add_item_ret_uint(tree, hf_lustre_lu_ladvise_hdr_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN, &val);
offset += 4;
if (val != LADVISE_MAGIC)
expert_add_info(pinfo, tree, &ei_lustre_badmagic);
proto_tree_add_item(tree, hf_lustre_lu_ladvise_hdr_count, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_hdr_flags, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_hdr_value1, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_hdr_value2, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_hdr_value3, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_lu_ladvise(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
/* struct ladvise { */
/* __u16 lla_advice; /\* advice type *\/ */
/* __u16 lla_value1; /\* values for different advice types *\/ */
/* __u32 lla_value2; */
/* __u64 lla_start; /\* first byte of extent for advice *\/ */
/* __u64 lla_end; /\* last byte of extent for advice *\/ */
/* __u32 lla_value3; */
/* __u32 lla_value4; */
/* sizeof(ladvise) == 32 */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_lu_ladvise, tvb, offset, 32, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ladvise);
proto_tree_add_item(tree, hf_lustre_lu_ladvise_advice, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_value1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_value2, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_start, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_end, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_value3, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lu_ladvise_value4, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
/******************************************************************** \
*
* Main Buffer Structures
*
\********************************************************************/
/**
* Decode struct ptlrpc and return opcode and pb_type to caller,
* because they're needed to dissect further buffers.
*/
static int
dissect_struct_ptlrpc_body(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, unsigned buf_len,
lustre_trans_t *trans, uint32_t *pb_type)
{
proto_tree *tree;
proto_item *item;
uint32_t pb_version, opcode, i, old_offset;
old_offset = offset;
item = proto_tree_add_item(parent_tree, hf_lustre_ptlrpc_body_pb, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ptlrpc_body);
/* struct ptlrpc_body { */
/* struct lustre_handle { */
/* } pb_handle; */
/* uint32 pb_type; */
/* uint32 pb_version; */
/* uint32 pb_opc; */
/* uint32 pb_status; */
/* uint64 pb_last_xid; */
/* uint64 pb_last_seen; */
/* uint64 pb_last_committed; */
/* uint64 pb_transno; */
/* uint32 pb_flags; */
/* uint32 pb_op_flags; */
/* uint32 pb_conn_cnt; */
/* uint32 pb_timeout; */
/* uint32 pb_service_time; */
/* uint32 pb_limit; */
/* uint64 pb_slv; */
/* } */
/* SIZE == 8+80 */
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_ptlrpc_body_pb_handle);
proto_tree_add_item_ret_uint(tree, hf_lustre_ptlrpc_body_pb_type, tvb, offset, 4, ENC_LITTLE_ENDIAN, pb_type);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_ptlrpc_body_pb_version, tvb, offset, 4, ENC_LITTLE_ENDIAN, &pb_version);
pb_version &= ~LUSTRE_VERSION_MASK;
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_ptlrpc_body_pb_opc, tvb, offset, 4, ENC_LITTLE_ENDIAN, &opcode);
offset += 4;
if (*pb_type == PTL_RPC_MSG_REQUEST)
trans->opcode = opcode;
else if (trans->opcode != opcode) {
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "Mismatched: PTLRPC:%s != Conversation:%s (match_bits:%" PRIx64 ")",
val_to_str(opcode, lustre_op_codes, "Unknown(%d)"),
val_to_str(trans->opcode, lustre_op_codes, "Unknown(%d)"), trans->match_bits);
trans->opcode = opcode;
}
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_status, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_last_xid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_last_seen, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_last_committed, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_transno, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_op_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_conn_cnt, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_timeout, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_service_time, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_limit, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_slv, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
/* pb_pre_versions */
for(i = 0; i < 4; ++i) {
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_pre_version, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
}
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_padding, tvb, offset, 32, ENC_NA);
offset += 32;
if (pb_version == LUSTRE_PTLRPC_MSG_VERSION && offset-old_offset < buf_len) {
/* the length of the string is 32 bytes max, with \0 inside */
proto_tree_add_item(tree, hf_lustre_ptlrpc_body_pb_jobid, tvb, offset, 32, ENC_ASCII);
offset+=32;
}
/*
if (offset-old_offset != buf_len)
expert_add_info(pinfo, , &ei_lustre_buflen);
*/
proto_item_set_len(item, offset-old_offset);
/* Add Opcode and PB Type to info lines */
proto_item_append_text(parent_tree, "%s %s ", val_to_str(opcode, lustre_op_codes, "Unknown(%d)"),
val_to_str(*pb_type, lustre_LMTypes, "Unknown(%d)"));
col_append_fstr(pinfo->cinfo, COL_INFO, "%s %s ", val_to_str(opcode, lustre_op_codes, "Unknown(%d)"),
val_to_str(*pb_type, lustre_LMTypes, "Unknown(%d)"));
//sanity_check(tvb, pinfo, offset-old_offset);
return offset;
}
static int
dissect_struct_ost_lvb(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_ost_lvb, tvb, offset, 56, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ost_lvb);
/* struct ost_lvb { */
/* __u64 lvb_size; */
/* __s64 lvb_mtime; */
/* __s64 lvb_atime; */
/* __s64 lvb_ctime; */
/* __u64 lvb_blocks; */
/* __u32 lvb_mtime_ns; */
/* __u32 lvb_atime_ns; */
/* __u32 lvb_ctime_ns; */
/* __u32 lvb_padding; */
/* }; */
proto_tree_add_item(tree, hf_lustre_ost_lvb_size, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ost_lvb_mtime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ost_lvb_atime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ost_lvb_ctime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ost_lvb_blocks, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_ost_lvb_mtime_ns, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ost_lvb_atime_ns, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ost_lvb_ctime_ns, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_ost_lvb_padding, tvb, offset, 4, ENC_NA);
offset += 4;
return offset;
}
static int
dissect_struct_capa(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
/* struct lustre_capa { */
/* struct lu_fid lc_fid; /\** fid *\/ */
/* __u64 lc_opc; /\** operations allowed *\/ */
/* __u64 lc_uid; /\** file owner *\/ */
/* __u64 lc_gid; /\** file group *\/ */
/* __u32 lc_flags; /\** HMAC algorithm & flags *\/ */
/* __u32 lc_keyid; /\** key# used for the capability *\/ */
/* __u32 lc_timeout; /\** capa timeout value (sec) *\/ */
/* __u32 lc_expiry; /\** expiry time (sec) *\/ */
/* __u8 lc_hmac[CAPA_HMAC_MAX_LEN]; /\** HMAC *\/ */
/* } old_offset = offset; */
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_capa, tvb, offset, 120, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_capa);
offset = dissect_struct_lu_fid(tvb, offset,tree, hf_lustre_capa_fid);
proto_tree_add_item(tree, hf_lustre_capa_opc, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_capa_uid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_capa_gid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_capa_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_capa_keyid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_capa_timeout, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_capa_expiry, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* CAPA_HMAC_MAX_LEN == 64 */
proto_tree_add_item(tree, hf_lustre_capa_hmac, tvb, offset, 64, ENC_NA);
offset += 64;
return offset;
}
static int
dissect_struct_llogd_body(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
static int * const flags[] = {
&hf_lustre_llog_hdr_flag_zap_when_empty,
&hf_lustre_llog_hdr_flag_is_cat,
&hf_lustre_llog_hdr_flag_is_plain,
&hf_lustre_llog_hdr_flag_ext_jobid,
&hf_lustre_llog_hdr_flag_is_fixsize,
NULL
};
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_llogd_body, tvb, offset, 48, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llogd_body);
/* struct llogd_body { */
/* struct llog_logid lgd_logid; */
/* __u32 lgd_ctxt_idx; */
/* __u32 lgd_llh_flags; */
/* __u32 lgd_index; */
/* __u32 lgd_saved_index; */
/* __u32 lgd_len; */
/* __u64 lgd_cur_offset; */
/* } */
/* SIZE = 20+28 */
offset = dissect_struct_llog_logid(tvb, offset, tree, hf_lustre_llogd_body_lgd_logid);
proto_tree_add_item(tree, hf_lustre_llogd_body_lgd_ctxt_idx, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_bitmask(tree, tvb, offset, hf_lustre_llogd_body_lgd_llh_flags, ett_lustre_llog_hdr_flags, flags, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llogd_body_lgd_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llogd_body_lgd_saved_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llogd_body_lgd_len, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llogd_body_lgd_cur_offset, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_llogd_conn_body(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_llogd_conn_body, tvb, offset, 40, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llogd_conn_body);
/* struct llogd_conn_body { */
/* struct llog_gen lgdc_gen; */
/* struct llog_logid lgdc_logid; */
/* __u32 lgdc_ctxt_idx; */
/* } */
/* SIZE == 16+20+4 */
offset = dissect_struct_llog_gen(tvb, offset, tree, hf_lustre_llogd_conn_body_lgdc_gen);
offset = dissect_struct_llog_logid(tvb, offset, tree, hf_lustre_llogd_conn_body_lgdc_logid);
proto_tree_add_item(tree, hf_lustre_llogd_conn_body_lgdc_ctxt_idx, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_struct_llog_log_hdr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
uint32_t len, data_len, old_offset, i;
static int * const flags[] = {
&hf_lustre_llog_hdr_flag_zap_when_empty,
&hf_lustre_llog_hdr_flag_is_cat,
&hf_lustre_llog_hdr_flag_is_plain,
&hf_lustre_llog_hdr_flag_ext_jobid,
&hf_lustre_llog_hdr_flag_is_fixsize,
NULL
};
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
old_offset = offset;
item = proto_tree_add_item(parent_tree, hf_lustre_llog_log_hdr, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_log_hdr);
/* struct llog_log_hdr { */
/* struct llog_rec_hdr llh_hdr; */
/* __s64 llh_timestamp; */
/* __u32 llh_count; */
/* __u32 llh_bitmap_offset; */
/* __u32 llh_size; */
/* __u32 llh_flags; */
/* /\* for a catalog the first/oldest and still in-use plain slot is just */
/* * next to it. It will serve as the upper limit after Catalog has */
/* * wrapped around *\/ */
/* __u32 llh_cat_idx; */
/* struct obd_uuid llh_tgtuuid; */
/* __u32 llh_reserved[LLOG_HEADER_SIZE/sizeof(__u32)-23]; */
/* /\* These fields must always be at the end of the llog_log_hdr. */
/* * Note: llh_bitmap size is variable because llog chunk size could be */
/* * bigger than LLOG_MIN_CHUNK_SIZE, i.e. sizeof(llog_log_hdr) > 8192 */
/* * bytes, and the real size is stored in llh_hdr.lrh_len, which means */
/* * llh_tail should only be referred by LLOG_HDR_TAIL(). */
/* * But this structure is also used by client/server llog interface */
/* * (see llog_client.c), it will be kept in its original way to avoid */
/* * compatibility issue. *\/ */
/* __u32 llh_bitmap[LLOG_BITMAP_BYTES / sizeof(__u32)]; */
/* struct llog_rec_tail llh_tail; */
/* } */
/* sizeof(llh_reserved) == 1*sizeof(uint32) */
/* Size = 16+28+40+1+?+8 */
/* llog_rec_hdr.lrh_len is first */
len = tvb_get_letohl(tvb, offset);
if (data_len != len)
expert_add_info_format(pinfo, tree, &ei_lustre_buflen,
"Buffer Length mismatch: buffer:%u !== internal length:%u", data_len, len);
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_log_hdr_hdr);
proto_tree_add_item(tree, hf_lustre_llog_log_hdr_timestamp, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_llog_log_hdr_count, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_log_hdr_bitmap_offset, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_log_hdr_size, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_bitmask(tree, tvb, offset, hf_lustre_llog_log_hdr_flags, ett_lustre_llog_hdr_flags, flags, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_log_hdr_cat_idx, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = dissect_struct_obd_uuid(tvb, offset, tree, hf_lustre_llog_log_hdr_tgtuuid);
proto_tree_add_item(tree, hf_lustre_llog_log_hdr_reserved, tvb, offset, 4, ENC_NA);
offset += 4;
/* bitmap size is llh_hdr.lrh_len - current offset - sizeof(llog_rec_tail) */
len -= (offset - old_offset) + 8;
for (i = 0; i < len/4; ++i) {
proto_tree_add_item(tree, hf_lustre_llog_log_hdr_bitmap, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_log_hdr_tail);
proto_item_set_len(tree, offset-old_offset);
return offset;
}
static int
dissect_struct_idx_info(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_idx_info, tvb, offset, 80, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_idx_info);
/* struct idx_info { */
/* __u32 ii_magic; */
/* /\* reply: see idx_info_flags below *\/ */
/* __u32 ii_flags; */
/* __u16 ii_count; */
/* __u16 ii_pad0; */
/* __u32 ii_attrs; */
/* /\* request & reply: index file identifier (FID) *\/ */
/* struct lu_fid ii_fid; */
/* /\* reply: version of the index file before starting to walk the index. */
/* * Please note that the version can be modified at any time during the */
/* * transfer *\/ */
/* __u64 ii_version; */
/* /\* request: hash to start with: */
/* * reply: hash of the first entry of the first lu_idxpage and hash */
/* * of the entry to read next if any *\/ */
/* __u64 ii_hash_start; */
/* __u64 ii_hash_end; */
/* /\* reply: size of keys in lu_idxpages, minimal one if II_FL_VARKEY is */
/* * set *\/ */
/* __u16 ii_keysize; */
/* /\* reply: size of records in lu_idxpages, minimal one if II_FL_VARREC */
/* * is set *\/ */
/* __u16 ii_recsize; */
/* __u32 ii_pad1; */
/* __u64 ii_pad2; */
/* __u64 ii_pad3; */
/* }; */
/* SIZE = 64+16 */
proto_tree_add_item(tree, hf_lustre_idx_info_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_idx_info_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_idx_info_count, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_idx_info_padding, tvb, offset, 2, ENC_NA);
offset += 2;
proto_tree_add_item(tree, hf_lustre_idx_info_attrs, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = dissect_struct_lu_fid(tvb, offset,tree, hf_lustre_idx_info_fid);
proto_tree_add_item(tree, hf_lustre_idx_info_hash_start, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_idx_info_hash_end, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_idx_info_keysize, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_idx_info_recsize, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_idx_info_padding, tvb, offset, 12, ENC_NA);
offset += 12;
return offset;
}
static int
dissect_struct_ldlm_intent(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, lustre_trans_t *trans, uint32_t buf_num)
{
//proto_tree *tree;
uint32_t data_len;
static int * const flags[] = {
&hf_lustre_ldlm_intent_opc_open,
&hf_lustre_ldlm_intent_opc_creat,
&hf_lustre_ldlm_intent_opc_readdir,
&hf_lustre_ldlm_intent_opc_getattr,
&hf_lustre_ldlm_intent_opc_lookup,
&hf_lustre_ldlm_intent_opc_unlink,
&hf_lustre_ldlm_intent_opc_trunc,
&hf_lustre_ldlm_intent_opc_getxattr,
&hf_lustre_ldlm_intent_opc_exec,
&hf_lustre_ldlm_intent_opc_pin,
&hf_lustre_ldlm_intent_opc_layout,
&hf_lustre_ldlm_intent_opc_q_dqacq,
&hf_lustre_ldlm_intent_opc_q_conn,
&hf_lustre_ldlm_intent_opc_setxattr,
NULL
};
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
if (data_len != 8)
expert_add_info(pinfo, parent_tree, &ei_lustre_buflen);
trans->sub_opcode = tvb_get_letoh64(tvb, offset);
proto_tree_add_bitmask(parent_tree, tvb, offset, hf_lustre_ldlm_intent_opc, ett_lustre_ldlm_intent_opc, flags, ENC_LITTLE_ENDIAN);
offset += 8;
col_append_str(pinfo->cinfo, COL_INFO, "[ intent:");
if (trans->sub_opcode & IT_OPEN )
col_append_str(pinfo->cinfo, COL_INFO, " open");
if (trans->sub_opcode & IT_CREAT )
col_append_str(pinfo->cinfo, COL_INFO, " create");
if (trans->sub_opcode & IT_READDIR )
col_append_str(pinfo->cinfo, COL_INFO, " readdir");
if (trans->sub_opcode & IT_GETATTR )
col_append_str(pinfo->cinfo, COL_INFO, " getattr");
if (trans->sub_opcode & IT_LOOKUP )
col_append_str(pinfo->cinfo, COL_INFO, " lookup");
if (trans->sub_opcode & IT_UNLINK )
col_append_str(pinfo->cinfo, COL_INFO, " unlink");
if (trans->sub_opcode & IT_TRUNC )
col_append_str(pinfo->cinfo, COL_INFO, " trunc");
if (trans->sub_opcode & IT_GETXATTR)
col_append_str(pinfo->cinfo, COL_INFO, " getxattr");
if (trans->sub_opcode & IT_EXEC )
col_append_str(pinfo->cinfo, COL_INFO, " exec");
if (trans->sub_opcode & IT_PIN )
col_append_str(pinfo->cinfo, COL_INFO, " pin");
if (trans->sub_opcode & IT_LAYOUT )
col_append_str(pinfo->cinfo, COL_INFO, " layout");
if (trans->sub_opcode & IT_QUOTA_DQACQ)
col_append_str(pinfo->cinfo, COL_INFO, " quota_dqacq");
if (trans->sub_opcode & IT_QUOTA_CONN )
col_append_str(pinfo->cinfo, COL_INFO, " quota_conn");
if (trans->sub_opcode & IT_SETXATTR )
col_append_str(pinfo->cinfo, COL_INFO, " setxattr");
col_append_str(pinfo->cinfo, COL_INFO, " ] ");
return offset;
}
static int
dissect_struct_quota_adjust_qunit(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_quota_adjust_qunit, tvb, offset, 32, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_quota_adjust_qunit);
/* struct quota_adjust_qunit { */
/* __u32 qaq_flags; */
/* __u32 qaq_id; */
/* __u64 qaq_bunit_sz; */
/* __u64 qaq_iunit_sz; */
/* __u64 padding1; */
/* }; */
proto_tree_add_item(tree, hf_lustre_quota_adjust_qunit_qaq_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_quota_adjust_qunit_qaq_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_quota_adjust_qunit_qaq_bunit_sz, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_quota_adjust_qunit_qaq_iunit_sz, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_quota_adjust_qunit_padding1, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_xattr_buffers(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, uint32_t buff_num)
{
/* ldlm_intent_getxattr_server : [eadata][eavals][eavals_lens] *
* array length == sizeof(eavals_lens)/sizeof(uint32)
* Buff 1: NAME - array of strings (name of xattr)
* Buff 2: DATA - array of data (data of xattr)
* Buff 3: LEN - array of data lengths (in buff 2)
*/
int count, i;
int namestart, namelen, datastart, datalen, lenstart, lenlen;
int nameoffset, dataoffset, lenoffset;
proto_tree *tree, *xattr_tree;
proto_item *item;
namelen = LUSTRE_BUFFER_LEN(buff_num);
datalen = LUSTRE_BUFFER_LEN(buff_num+1);
lenlen = LUSTRE_BUFFER_LEN(buff_num+2);
count = lenlen / 4;
namestart = nameoffset = offset;
datastart = namestart + namelen;
datastart += buffer_padding_length(datastart);
dataoffset = datastart;
lenstart = datastart + datalen;
lenstart += buffer_padding_length(lenstart);
lenoffset = lenstart;
item = proto_tree_add_item(parent_tree, hf_lustre_xattr_list, tvb, offset, -1, ENC_NA);
xattr_tree = proto_item_add_subtree(item, ett_lustre_xattrs);
offset = display_buffer_data(tvb, pinfo, offset, xattr_tree, buff_num, "NAMES");
offset = display_buffer_data(tvb, pinfo, offset, xattr_tree, buff_num+1, "DATA");
offset = display_buffer_data(tvb, pinfo, offset, xattr_tree, buff_num+2, "LENS");
for (i = 0; i < count; ++i) {
int namesize;
int datasize;
datasize = tvb_get_letohl(tvb, lenoffset);
namesize = tvb_strnlen(tvb, nameoffset, namelen - (nameoffset - namestart))+1;
item = proto_tree_add_item(xattr_tree, hf_lustre_xattr, tvb, nameoffset, namesize, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_xattr_item);
//@@ Add name to text
proto_item_append_text(item, " [%d]", i);
proto_tree_add_item(tree, hf_lustre_xattr_name, tvb, nameoffset, namesize, ENC_ASCII);
nameoffset += namesize;
proto_tree_add_item(tree, hf_lustre_xattr_data, tvb, dataoffset, datasize, ENC_NA);
dataoffset += datasize;
proto_tree_add_item(tree, hf_lustre_xattr_size, tvb, lenoffset, 4, ENC_LITTLE_ENDIAN);
lenoffset += 4;
}
offset += buffer_padding_length(offset);
proto_item_set_len(xattr_tree, offset-namestart);
return offset;
}
static int
dissect_struct_barrier_lvb(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_barrier_lvb, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_barrier_lvb);
/* struct barrier_lvb { */
/* __u32 lvb_status; */
/* __u32 lvb_index; */
/* __u64 lvb_padding; */
/* }; */
proto_tree_add_item(tree, hf_lustre_barrier_lvb_status, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_barrier_lvb_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_barrier_lvb_padding, tvb, offset, 8, ENC_NA);
offset += 8;
return offset;
}
static int
dissect_struct_eadata(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, uint32_t buf_num)
{
uint32_t data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
proto_tree_add_item(parent_tree, hf_lustre_eadata, tvb, offset, data_len, ENC_NA);
offset += data_len;
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
static int
dissect_struct_layout_intent(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
uint32_t data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_layout_intent, tvb, offset, 24, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_layout_intent);
if (data_len != 24)
expert_add_info_format(pinfo, tree, &ei_lustre_buflen,
"Buffer Length mismatch: expected:24 !== length:%u", data_len);
/* struct layout_intent { */
/* __u32 li_opc; /\* intent operation for enqueue, read, write etc *\/ */
/* __u32 li_flags; */
/* __u64 li_start; */
/* __u64 li_end; */
/* } */
proto_tree_add_item(tree, hf_lustre_layout_intent_opc, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_layout_intent_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_layout_intent_start, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_layout_intent_end, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_ost_body(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
int old_offset;
old_offset = offset;
/* struct ost_body { */
/* struct obdo oa; */
/* }; */
item = proto_tree_add_item(parent_tree, hf_lustre_ost_body, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_ost_body);
offset = dissect_struct_obdo(tvb, offset, tree);
proto_item_set_len(tree, offset-old_offset);
return offset;
}
static int
dissect_struct_mdt_body(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
uint32_t data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_mdt_body, tvb, offset, 216, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_mdt_body);
/* struct mdt_body { */
/* struct lu_fid { } fid1; */
/* struct lu_fid { } fid2; */
/* struct lustre_handle { } handle; */
/* uint64 valid; */
/* uint64 size; */
/* uint64 mtime; */
/* uint64 atime; */
/* uint64 ctime; */
/* uint64 blocks; */
/* uint64 ioepoch; mbo_version in 2.11+ */
/* uint64 ino; t_state in 2.4+ */
/* uint32 fsuid; */
/* uint32 fsgid; */
/* uint32 capability; */
/* uint32 mode; */
/* uint32 uid; */
/* uint32 gid; */
/* uint32 flags; */
/* uint32 rdev; */
/* uint32 nlink; */
/* uint32 generation; layout_gen in 2.4+ */
/* uint32 suppgid; */
/* uint32 eadatasize; */
/* uint32 aclsize; */
/* uint32 max_mdsize; */
/* uint32 max_cookiesize; unused in 2.8+ */
/* uint32 uid_h; */
/* uint32 gid_h; */
/* uint32 projid; */
/* uint64 dom_size; */
/* uint64 dom_blocks; */
/* uint64 btime; */
/* uint64 padding_9; */
/* uint64 padding_10; */
/* } */
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_mdt_body_fid1);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_mdt_body_fid2);
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_mdt_body_handle);
// @@ make into bitmap of OBD_MD_FL*
proto_tree_add_item(tree, hf_lustre_mdt_body_valid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_size, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_mtime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_atime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_ctime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_blocks, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_ioepoch, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_ino, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_fsuid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_fsgid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_capability, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_mode, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_uid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_gid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_rdev, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_nlink, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_generation, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_suppgid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_eadatasize, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_aclsize, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_max_mdsize, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_max_cookiesize, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_uid_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_gid_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_projid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_mdt_body_dom_size, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_dom_blocks, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_btime, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_padding_9, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_mdt_body_padding_10, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_struct_obd_statfs(tvbuff_t *tvb, int offset, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
uint32_t i;
item = proto_tree_add_item(parent_tree, hf_lustre_obd_statfs, tvb, offset, 144, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_obd_statfs);
/* struct obd_statfs { */
/* __u64 os_type; */
/* __u64 os_blocks; */
/* __u64 os_bfree; */
/* __u64 os_bavail; */
/* __u64 os_files; */
/* __u64 os_ffree; */
/* __u8 os_fsid[40]; */
/* __u32 os_bsize; */
/* __u32 os_namelen; */
/* __u64 os_maxbytes; */
/* __u32 os_state; /\**< obd_statfs_state OS_STATE_* flag *\/ */
/* __u32 os_fprecreated; */
/* __u32 os_granted; */
/* __u32 os_spare3; */
/* __u32 os_spare4; */
/* __u32 os_spare5; */
/* __u32 os_spare6; */
/* __u32 os_spare7; */
/* __u32 os_spare8; */
/* __u32 os_spare9; */
/* }; */
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_type, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_blocks, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_bfree, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_bavail, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_files, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_ffree, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_fsid, tvb, offset, 40, ENC_ASCII);
offset += 40;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_bsize, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_namelen, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_maxbytes, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_state, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_fprecreated, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_granted, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
for (i = 2; i <= 8; ++i) {
proto_tree_add_item(tree, hf_lustre_obd_statfs_os_spare, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
return offset;
}
static int
dissect_struct_obd_connect_data(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree)
{
proto_tree *tree;
proto_item *item;
uint32_t version;
int old_offset, len;
old_offset = offset;
item = proto_tree_add_item(parent_tree, hf_lustre_obd_connect_data, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_obd_connect_data);
/* struct obd_connect_data { */
/* __u64 ocd_connect_flags; /\* OBD_CONNECT_* per above *\/ */
/* __u32 ocd_version; /\* lustre release version number *\/ */
/* __u32 ocd_grant; /\* initial cache grant amount (bytes) *\/ */
/* __u32 ocd_index; /\* LOV index to connect to *\/ */
/* __u32 ocd_brw_size; /\* Maximum BRW size in bytes *\/ */
/* __u64 ocd_ibits_known; /\* inode bits this client understands *\/ */
/* __u8 ocd_grant_blkbits; /\* log2 of the backend filesystem blocksize *\/ */
/* __u8 ocd_grant_inobits; /\* log2 of the per-inode space consumption *\/ */
/* __u16 ocd_grant_tax_kb; /\* extent insertion overhead, in 1K blocks *\/ */
/* __u32 ocd_grant_max_blks;/\* maximum number of blocks per extent *\/ */
/* __u64 ocd_transno; /\* first transno from client to be replayed *\/ */
/* __u32 ocd_group; /\* MDS group on OST *\/ */
/* __u32 ocd_cksum_types; /\* supported checksum algorithms *\/ */
/* __u32 ocd_max_easize; /\* How big LOV EA can be on MDS *\/ */
/* __u32 ocd_instance; /\* instance # of this target *\/ */
/* __u64 ocd_maxbytes; /\* Maximum stripe size in bytes *\/ */
/* /\* Fields after ocd_maxbytes are only accessible by the receiver */
/* * if the corresponding flag in ocd_connect_flags is set. Accessing */
/* * any field after ocd_maxbytes on the receiver without a valid flag */
/* * may result in out-of-bound memory access and kernel oops. *\/ */
/* __u16 ocd_maxmodrpcs; /\* Maximum modify RPCs in parallel *\/ */
/* __u16 padding0; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u32 padding1; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 ocd_connect_flags2; */
/* __u64 padding3; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 padding4; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 padding5; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 padding6; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 padding7; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 padding8; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 padding9; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 paddingA; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 paddingB; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 paddingC; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 paddingD; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 paddingE; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* __u64 paddingF; /\* added 2.1.0. also fix lustre_swab_connect *\/ */
/* }; */
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_connect_flags, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item_ret_uint(tree, hf_lustre_obd_connect_data_ocd_version, tvb, offset, 4, ENC_LITTLE_ENDIAN, &version);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_grant, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_brw_size, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_ibits_known, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
if (version < 0x02013900) { /* changed between 2.1.56 and 2.1.57 (a pre 2.2 tag) */
/* uint32 ocd_nllu; */
/* uint32 ocd_nllg; */
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_nllu, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_nllg, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
} else if (version < 0x02083300) { /* changed for 2.8.51 */
/* __u8 ocd_blocksize; /\* log2 of the backend filesystem blocksize *\/ */
/* __u8 ocd_inodespace; /\* log2 of the per-inode space consumption *\/ */
/* __u16 ocd_grant_extent; /\* per-extent grant overhead, in 1K blocks *\/ */
/* __u32 ocd_unused; /\* also fix lustre_swab_connect *\/ */
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_grant_blkbits, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_grant_inobits, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_grant_tax_kb, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_padding, tvb, offset, 4, ENC_NA);
offset += 4;
} else {
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_grant_blkbits, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_grant_inobits, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_grant_tax_kb, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_grant_max_blks, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_transno, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_group, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_cksum_types, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* the following show up in 2.1.0, 2.2.0, and 2.1.0 respectively */
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_max_easize, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_instance, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_maxbytes, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
/* Rest of fields were added in 2.1.0 */
if (version >= 0x02010000) {
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_maxmodrpcs, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_padding, tvb, offset, 6, ENC_NA);
offset += 6;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_connect_flags2, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
// Padding runs padding3 through paddingF
len = (0x10-3)*8;
proto_tree_add_item(tree, hf_lustre_obd_connect_data_ocd_padding, tvb, offset, len, ENC_NA);
offset += len;
}
proto_item_set_len(item, offset-old_offset);
return offset;
}
static int
dissect_struct_lfsck_request(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
uint32_t valid;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_lfsck_request, tvb, offset, 96, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lfsck_request);
/* struct lfsck_request { */
/* __u32 lr_event; */
/* __u32 lr_index; */
/* __u32 lr_flags; */
/* __u32 lr_valid; */
/* union { */
/* __u32 lr_speed; */
/* __u32 lr_status; */
/* }; */
/* __u16 lr_version; */
/* __u16 lr_active; */
/* __u16 lr_param; */
/* __u16 lr_async_windows; */
/* __u32 lr_flags2; */
/* struct lu_fid lr_fid; */
/* struct lu_fid lr_fid2; */
/* __u32 lr_comp_id; */
/* __u32 lr_padding_0; */
/* __u64 lr_padding_1; */
/* __u64 lr_padding_2; */
/* __u64 lr_padding_3; */
/* }; */
/* SIZE = 64+2*16 */
proto_tree_add_item(tree, hf_lustre_lfsck_request_event, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lfsck_request_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* @@ bitmap of lfsck_event_flags */
proto_tree_add_item(tree, hf_lustre_lfsck_request_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* @@ bitmap of lfsk_start_valid */
proto_tree_add_item_ret_uint(tree, hf_lustre_lfsck_request_valid, tvb, offset, 4, ENC_LITTLE_ENDIAN, &valid);
offset += 4;
/* determine union based on lr_valid */
if (valid & LSV_SPEED_LIMIT)
proto_tree_add_item(tree, hf_lustre_lfsck_request_speed, tvb, offset, 4, ENC_LITTLE_ENDIAN);
else
proto_tree_add_item(tree, hf_lustre_lfsck_request_status, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lfsck_request_version, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_lfsck_request_active, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_lfsck_request_param, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_lustre_lfsck_request_async_windows, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
/* @@ bitmap of lfsck_flags */
proto_tree_add_item(tree, hf_lustre_lfsck_request_flags2, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_lfsck_request_fid);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_lfsck_request_fid2);
proto_tree_add_item(tree, hf_lustre_lfsck_request_comp_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lfsck_request_padding, tvb, offset, 28, ENC_NA);
offset += 28;
return offset;
}
static int
dissect_struct_lfsck_reply(tvbuff_t *tvb, int offset, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
int data_len;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
item = proto_tree_add_item(parent_tree, hf_lustre_lfsck_reply, tvb, offset, 16, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_lfsck_reply);
proto_tree_add_item(tree, hf_lustre_lfsck_reply_status, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lfsck_reply_padding, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lfsck_reply_repaired, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
return offset;
}
static int
dissect_llog_eadata(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, uint32_t buf_num)
{
proto_tree *tree;
proto_item *item;
uint32_t data_len, opcode, len, old_offset;
data_len = LUSTRE_BUFFER_LEN(buf_num);
if (data_len == 0)
return offset;
/* EADATA in question is an llog record (see lustre/utils/llog_reader.c::print_records()),
* and lustre/obdclass/llog_swab.c::lustre_swab_llog_rec() */
/* All llog_*_rec structs start with llog_rec_hdr */
// First element of llog_rec_hdr is record length
while ((len = tvb_get_letohl(tvb, offset)) > 0) {
opcode = tvb_get_letohl(tvb, offset+8);
old_offset = offset;
switch (opcode) {
case LLOG_PAD_MAGIC:
len = tvb_get_letohl(tvb, offset);
item = proto_tree_add_item(parent_tree, hf_lustre_llog_rec, tvb, offset, len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_rec);
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_rec_hdr);
offset = add_extra_padding(tvb, offset, pinfo, tree);
/* no internal data */
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_rec_tail);
break;
case OST_SZ_REC:
item = proto_tree_add_item(parent_tree, hf_lustre_llog_size_change_rec, tvb, offset, 64, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_size_change_rec);
/* struct llog_size_change_rec { */
/* struct llog_rec_hdr lsc_hdr; */
/* struct ll_fid lsc_fid; */
/* __u32 lsc_ioepoch; */
/* __u32 lsc_padding1; */
/* __u64 lsc_padding2; */
/* __u64 lsc_padding3; */
/* struct llog_rec_tail lsc_tail; */
/* } SIZE = 16+16+24+8 */
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_size_change_rec_hdr);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_llog_size_change_rec_fid);
proto_tree_add_item(tree, hf_lustre_llog_size_change_rec_io_epoch, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_size_change_rec_padding, tvb, offset, 20, ENC_NA);
offset += 20;
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_size_change_rec_tail);
break;
case OST_RAID1_REC:
/* Obsolete, never used */
offset = dissect_struct_llog_rec_hdr(tvb, offset, parent_tree, hf_lustre_llog_rec_hdr);
expert_add_info(pinfo, parent_tree, &ei_lustre_badopc);
expert_add_info(pinfo, parent_tree, &ei_lustre_obsopc);
break;
case MDS_UNLINK_REC:
item = proto_tree_add_item(parent_tree, hf_lustre_llog_unlink_rec, tvb, offset, 40, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_unlink_rec);
/* struct llog_unlink_rec { */
/* struct llog_rec_hdr lur_hdr; */
/* __u64 lur_oid; */
/* __u32 lur_oseq; */
/* __u32 lur_count; */
/* struct llog_rec_tail lur_tail; */
/* } SIZE = 16+16+8 */
/* Obsolete after 2.5.0 */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_unlink_rec_hdr);
proto_tree_add_item(tree, hf_lustre_llog_unlink_rec_oid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_llog_unlink_rec_oseq, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_unlink_rec_count, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_unlink_rec_tail);
break;
case MDS_UNLINK64_REC:
item = proto_tree_add_item(parent_tree, hf_lustre_llog_unlink64_rec, tvb, offset, 60, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_unlink64_rec);
/* struct llog_unlink64_rec { */
/* struct llog_rec_hdr lur_hdr; */
/* struct lu_fid lur_fid; */
/* __u32 lur_count; /\* to destroy the lost precreated *\/ */
/* __u32 lur_padding1; */
/* __u64 lur_padding2; */
/* __u64 lur_padding3; */
/* struct llog_rec_tail lur_tail; */
/* } SIZE = 16+16+20+8 */
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_unlink64_rec_hdr);
offset = dissect_struct_lu_fid(tvb, offset, tree, hf_lustre_llog_unlink64_rec_fid);
proto_tree_add_item(tree, hf_lustre_llog_unlink64_rec_count, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_unlink64_rec_padding, tvb, offset, 20, ENC_NA);
offset += 20;
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_unlink64_rec_tail);
break;
case MDS_SETATTR_REC:
item = proto_tree_add_item(parent_tree, hf_lustre_llog_setattr_rec, tvb, offset, 40, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_setattr_rec);
/* Obsolete since 1.8.0 */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
/* struct llog_setattr_rec { */
/* struct llog_rec_hdr lsr_hdr; */
/* __u64 lsr_oid; */
/* __u32 lsr_oseq; */
/* __u32 lsr_uid; */
/* __u32 lsr_gid; */
/* __u32 lsr_padding; */
/* struct llog_rec_tail lsr_tail; */
/* } SIZE = 16+16+8 */
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_setattr_rec_hdr);
proto_tree_add_item(tree, hf_lustre_llog_setattr_rec_oid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_llog_setattr_rec_oseq, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_setattr_rec_uid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_setattr_rec_gid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_setattr_rec_padding, tvb, offset, 4, ENC_NA);
offset += 4;
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_setattr_rec_tail);
break;
case MDS_SETATTR64_REC:
item = proto_tree_add_item(parent_tree, hf_lustre_llog_setattr64_rec, tvb, offset, 60, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_setattr64_rec);
/* struct llog_setattr64_rec { */
/* struct llog_rec_hdr lsr_hdr; */
/* struct ost_id lsr_oi; */
/* __u32 lsr_uid; */
/* __u32 lsr_uid_h; */
/* __u32 lsr_gid; */
/* __u32 lsr_gid_h; */
/* __u64 lsr_valid; */
/* struct llog_rec_tail lsr_tail; */
/* } */
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_setattr64_rec_hdr);
offset = dissect_struct_ost_id(tvb, offset, tree);
proto_tree_add_item(tree, hf_lustre_llog_setattr64_rec_uid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_setattr64_rec_uid_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_setattr64_rec_gid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_setattr64_rec_gid_h, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_llog_setattr64_rec_valid, tvb, offset, 4, ENC_NA);
offset += 4;
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_setattr64_rec_tail);
break;
case OBD_CFG_REC:
/* struct llog_rec_hdr
* struct lustre_cfg
* struct llog_rec_tail
*/
len = tvb_get_letohl(tvb, offset);
item = proto_tree_add_item(parent_tree, hf_lustre_llog_rec, tvb, offset, len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_rec);
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_rec_hdr);
offset = dissect_struct_lustre_cfg(tvb, offset, tree);
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_rec_tail);
break;
case PTL_CFG_REC:
/* Obsolete in 1.4.0 */
dissect_struct_llog_rec_hdr(tvb, offset, parent_tree, hf_lustre_llog_rec_hdr);
expert_add_info(pinfo, parent_tree, &ei_lustre_obsopc);
offset = dissect_struct_eadata(tvb, offset, pinfo, parent_tree, buf_num);
break;
case LLOG_GEN_REC:
/* struct llog_gen_rec { */
/* struct llog_rec_hdr lgr_hdr; */
/* struct llog_gen lgr_gen; */
/* __u64 padding1; */
/* __u64 padding2; */
/* __u64 padding3; */
/* struct llog_rec_tail lgr_tail; */
/* }; 16+16+24+8 */
item = proto_tree_add_item(parent_tree, hf_lustre_llog_gen_rec, tvb, offset, 64, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_gen_rec);
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_gen_rec_hdr);
offset = dissect_struct_llog_gen(tvb, offset, tree, hf_lustre_llog_gen_rec_gen);
proto_tree_add_item(tree, hf_lustre_llog_gen_rec_padding, tvb, offset, 24, ENC_NA);
offset += 24;
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_gen_rec_tail);
break;
case LLOG_JOIN_REC:
/* Obsolete in 1.8.0 */
offset = dissect_struct_llog_rec_hdr(tvb, offset, parent_tree, hf_lustre_llog_rec_hdr);
expert_add_info(pinfo, parent_tree, &ei_lustre_obsopc);
offset = dissect_struct_eadata(tvb, offset, pinfo, parent_tree, buf_num);
break;
case CHANGELOG_REC:
len = tvb_get_letohl(tvb, offset);
item = proto_tree_add_item(parent_tree, hf_lustre_llog_changelog_rec, tvb, offset, len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_changelog_rec);
/* struct llog_changelog_rec { */
/* struct llog_rec_hdr cr_hdr; */
/* struct changelog_rec cr; /\**< Variable length field *\/ */
/* struct llog_rec_tail cr_do_not_use; /\**< for_sizeof_only *\/ */
/* } 16+cr+8 */
offset = dissect_struct_llog_rec_hdr(tvb, offset, tree, hf_lustre_llog_changelog_rec_hdr);
offset = dissect_struct_changelog_rec(tvb, offset, tree);
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_changelog_rec_tail);
break;
case CHANGELOG_USER_REC:
/* struct llog_changelog_user_rec { */
/* struct llog_rec_hdr cur_hdr; */
/* __u32 cur_id; */
/* __u32 cur_padding; */
/* __u64 cur_endrec; */
/* struct llog_rec_tail cur_tail; */
/* } */
//@@ HERE
dissect_struct_llog_rec_hdr(tvb, offset, parent_tree, hf_lustre_llog_rec_hdr);
offset = dissect_struct_eadata(tvb, offset, pinfo, parent_tree, buf_num);
break;
case HSM_AGENT_REC:
/* struct llog_agent_req_rec { */
/* struct llog_rec_hdr arr_hdr; /\**< record header *\/ */
/* __u32 arr_status; /\**< status of the request *\/ */
/* /\* must match enum */
/* * agent_req_status *\/ */
/* __u32 arr_archive_id; /\**< backend archive number *\/ */
/* __u64 arr_flags; /\**< req flags *\/ */
/* __u64 arr_compound_id; /\**< compound cookie *\/ */
/* __u64 arr_req_create; /\**< req. creation time *\/ */
/* __u64 arr_req_change; /\**< req. status change time *\/ */
/* struct hsm_action_item arr_hai; /\**< req. to the agent *\/ */
/* struct llog_rec_tail arr_tail; /\**< record tail for_sizezof_only *\/ */
/* } */
dissect_struct_llog_rec_hdr(tvb, offset, parent_tree, hf_lustre_llog_rec_hdr);
offset = dissect_struct_eadata(tvb, offset, pinfo, parent_tree, buf_num);
//@@ HERE
break;
case UPDATE_REC:
/* struct llog_update_record { */
/* struct llog_rec_hdr lur_hdr; */
/* struct update_records lur_update_rec; */
/* /\* Note ur_update_rec has a variable size, so comment out */
/* * the following ur_tail, in case someone use it directly */
/* * */
/* * struct llog_rec_tail lur_tail; */
/* *\/ */
/* }; */
dissect_struct_llog_rec_hdr(tvb, offset, parent_tree, hf_lustre_llog_rec_hdr);
offset = dissect_struct_eadata(tvb, offset, pinfo, parent_tree, buf_num);
//@@ HERE
break;
case LLOG_HDR_MAGIC:
offset = dissect_struct_llog_log_hdr(tvb, offset, pinfo, parent_tree, buf_num);
break;
case LLOG_LOGID_MAGIC:
/* struct llog_logid_rec { */
/* struct llog_rec_hdr lid_hdr; */
/* struct llog_logid lid_id; */
/* __u32 lid_padding1; */
/* __u64 lid_padding2; */
/* __u64 lid_padding3; */
/* struct llog_rec_tail lid_tail; */
/* } */
item = proto_tree_add_item(parent_tree, hf_lustre_llog_logid_rec, tvb, offset, len, ENC_NA);
tree = proto_item_add_subtree(item, ett_lustre_llog_logid_rec);
offset = dissect_struct_llog_rec_hdr(tvb, offset, parent_tree, hf_lustre_llog_logid_rec_hdr);
offset = dissect_struct_llog_logid(tvb, offset, tree, hf_lustre_llog_logid_rec_id);
proto_tree_add_item(tree, hf_lustre_llog_logid_rec_padding, tvb, offset, 12, ENC_NA);
offset += 12;
offset = dissect_struct_llog_rec_tail(tvb, offset, tree, hf_lustre_llog_logid_rec_tail);
break;
default:
expert_add_info_format(pinfo, parent_tree, &ei_lustre_badopc, "UNKNOWN LLOG REC Type: %u", opcode);
break;
}
if (offset-old_offset != len) {
expert_add_info_format(pinfo, parent_tree, &ei_lustre_buflen,
"LLOG REC: Bad Parse Length (opc:%u len:%u parsed:%d)", opcode, len, (offset-old_offset));
offset = old_offset + len;
break;
}
}
offset = add_extra_padding(tvb, offset, pinfo, parent_tree);
return offset;
}
static int
dissect_generic_connect(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree)
{
/* [targetuuid][clientuuid][lustre_handle][obd_connect_data] */
offset = dissect_struct_obd_uuid(tvb, offset, tree, hf_lustre_target_uuid);
offset = dissect_struct_obd_uuid(tvb, offset, tree, hf_lustre_client_uuid);
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_lustre_handle);
offset = dissect_struct_obd_connect_data(tvb, offset, pinfo, tree);
return offset;
}
/******************************************************************** \
*
* OPCODE Processing
*
* decode these via lustre/ptlrpc/layout.c
*
\********************************************************************/
static int
process_opcode_ost(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
switch (trans->opcode){
case OST_REPLY: /* obsolete so nothing */
break;
case OST_GETATTR:
case OST_SETATTR:
case OST_PUNCH:
case OST_SYNC:
/* REQ: [OST_BODY][CAPA]
* REP: [OST_BODY] */
offset = dissect_struct_ost_body(tvb, offset, tree);
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
break;
case OST_READ: /* OST_BRW_READ */
/* REQ: [OST_BODY][[obd_ioobj]][[niobuf_remote]][capa]
* REP: [OST_BODY] */
offset = dissect_struct_ost_body(tvb, offset, tree);
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_obd_ioobj(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_niobuf_remote(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
}
break;
case OST_WRITE: /* OST_BRW_WRITE */
/* REQ: [OST_BODY][[obd_ioobj]][[niobuf_remote]][capa]
* REP: [OST_BODY][RCS] */
offset = dissect_struct_ost_body(tvb, offset, tree);
if (pb_type == PTL_RPC_MSG_REQUEST) {
// @@ iooobj.buf_count determines number of niobufs
// niobuf have BUFFERS after them
offset = dissect_struct_obd_ioobj(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_niobuf_remote(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
}
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_rc_array(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
break;
case OST_CREATE:
offset = dissect_struct_ost_body(tvb, offset, tree);
break;
case OST_DESTROY:
/* REQ: [OST_BODY][DLM_REQ][CAPA]
* REP: [OST_BODY] */
offset = dissect_struct_ost_body(tvb, offset, tree);
if (pb_type == PTL_RPC_MSG_REPLY)
break;
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+1);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+2);
break;
case OST_GET_INFO:
/* REQ: [GETINFO_KEY]
* REP: [GENERIC_DATA] */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_ost_key, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_ost_val, LUSTRE_REC_OFF);
break;
case OST_CONNECT:
/* REQ: CONNECT CLIENT CHAIN == [targetuuid][clientuuid][lustre_handle][obd_connect_data]
* REP: [OBD_CONNECT_DATA] */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_generic_connect(tvb, offset, pinfo, tree);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_obd_connect_data(tvb, offset, pinfo, tree);
break;
case OST_DISCONNECT:
/* no data */
break;
case OST_OPEN:
case OST_CLOSE:
/* no data - code is obsolete */
break;
case OST_STATFS:
/* REQ: no data
PRE: [obd_statfs] */
if (pb_type == PTL_RPC_MSG_REQUEST)
break;
offset = dissect_struct_obd_statfs(tvb, offset, tree);
break;
case OST_SET_INFO:
/* REQ: [KEY][VAL]
REP: no data */
if (pb_type == PTL_RPC_MSG_REPLY)
break;
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_ost_key, LUSTRE_REC_OFF);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_ost_val, LUSTRE_REC_OFF+1);
break;
case OST_QUOTACHECK: /* OBSOLETED after 2.4 */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_obd_quotactl(tvb, offset, tree);
/* nothing in reply */
break;
case OST_QUOTACTL:
/* REQ: [QUOTACTL]
* REP: [QUOTACTL] */
offset = dissect_struct_obd_quotactl(tvb, offset, tree);
break;
case OST_QUOTA_ADJUST_QUNIT: /* OBSOLETED after 2.4 */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
/* [quota_adjust_qunit] */
offset = dissect_struct_quota_adjust_qunit(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case OST_LADVISE:
/* REQ: [OST_BODY][LADVISE_HDR][LADVISE]
* REP: [OST_BODY] */
/*[ost_body] in both case */
offset = dissect_struct_ost_body(tvb, offset, tree);
if (pb_type == PTL_RPC_MSG_REPLY)
break;
offset = dissect_struct_lu_ladvise_hdr(tvb, offset, pinfo, tree);
offset = dissect_struct_lu_ladvise(tvb, offset, tree);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN OST OPCODE: %d (type: %d)", trans->opcode, pb_type);
break;
};
return offset;
}
static int
process_opcode_reint_req(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree * tree, lustre_trans_t *trans)
{
trans->sub_opcode = tvb_get_letohl(tvb, offset);
offset = dissect_struct_mdt_rec_reint(tvb, offset, pinfo, tree, LUSTRE_REC_OFF);
if (trans->sub_opcode == REINT_RMENTRY)
return offset;
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
switch(trans->sub_opcode) {
case REINT_SETATTR:
/* [REC REINT][CAPA1][MDT EPOCH][EADATA][LOGCOOKIES][DLM REQ] */
offset = dissect_struct_mdt_ioepoch(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_llog_cookie_array(tvb, offset, tree, LUSTRE_REC_OFF+4);
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+5);
break;
case REINT_CREATE:
/* Create Types:
* [REC REINT][CAPA1][NAME]
* ACL: [EADATA][DLM REQ][FILE SECCTX NAME][FILE SECCTX]
* SLAVE: [EADATA][DLM REQ]
* SYM: [SYMTGT][DLM REQ][FILE SECCTX NAME][FILE SECCTX]
*/
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+2);
// This could also be string for symlink
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+4);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_secctx_name, LUSTRE_REC_OFF+5);
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+6, "Security Context");
break;
case REINT_LINK:
/* [REC REINT][CAPA1][CAPA2][NAME][DLM REQ] */
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+3);
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+4);
break;
case REINT_UNLINK:
/* [REC REINT][CAPA1][NAME][DLM REQ] */
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+2);
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+3);
break;
case REINT_RENAME:
/* [REC REINT][CAPA1][CAPA2][NAME][SYMTGT][DLM REQ] */
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+3);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_target, LUSTRE_REC_OFF+4);
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+5);
break;
case REINT_OPEN:
/* [REC REINT][CAPA1][CAPA2][NAME][EADATA][FILE SECCTX NAME][FILE SECCTX] */
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+3);
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+4);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_secctx_name, LUSTRE_REC_OFF+5);
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+6, "Security Context");
break;
case REINT_SETXATTR:
/* [REC REINT][CAPA1][NAME][EADATA][DLM REQ] */
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+2);
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+4);
break;
case REINT_RMENTRY:
/* nothing further - and will never get here */
break;
case REINT_MIGRATE:
/* [REC REINT][CAPA1][CAPA2][NAME][SYMTGT][DLM REQ][MDT EPOCH][CLOSE DATA] */
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+3);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_secctx_name, LUSTRE_REC_OFF+4);
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+5);
offset = dissect_struct_mdt_ioepoch(tvb, offset, tree, LUSTRE_REC_OFF+6);
offset = dissect_struct_close_data(tvb, offset, tree, LUSTRE_REC_OFF+7);
break;
}
return offset;
}
static int
process_opcode_reint_rep(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree * tree, lustre_trans_t *trans)
{
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
/* trans->sub_opcode is set during REQUEST */
switch(trans->sub_opcode) {
case REINT_SETATTR:
case REINT_OPEN:
/* [MDT BODY][MDT MD][ACL][CAPA1][CAPA2] */
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_acl(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset ,tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_capa(tvb, offset ,tree, LUSTRE_REC_OFF+4);
break;
case REINT_CREATE:
/* [MDT BODY][CAPA] */
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
break;
case REINT_LINK:
case REINT_SETXATTR:
case REINT_RMENTRY:
/* [MDT BODY] */
break;
case REINT_UNLINK:
case REINT_RENAME:
case REINT_MIGRATE:
/* [MDT BODY][MDT MD][LOGCOOKIES][CAPA1][CAPA2] */
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_llog_cookie_array(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset ,tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_capa(tvb, offset ,tree, LUSTRE_REC_OFF+4);
break;
}
return offset;
}
static int
process_opcode_mds(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree * tree, lustre_trans_t *trans, uint32_t pb_type)
{
switch (trans->opcode) {
case MDS_GETATTR_NAME:
/* REQ: [MDT BODY][CAPA][NAME]
* REP: [MDT BODY][mdt_md][acl][capa1][capa2] */
case MDS_GETATTR:
/* REQ: [MDT BODY][CAPA]
* REP: [MDT BODY][mdt_md][acl][capa1][capa2] */
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
if (trans->opcode == MDS_GETATTR_NAME)
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_name, LUSTRE_REC_OFF+2);
}
if (pb_type == PTL_RPC_MSG_REPLY) {
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_acl(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+4);
}
break;
case MDS_CLOSE:
/* REQ: [MDT IOEPOCH][REINT][CAPA]
* REP: [MDT BODY][MDT MD][LOGCOOKIES][CAPA1][CAPA2] */
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_mdt_ioepoch(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_mdt_rec_reint(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_close_data(tvb, offset, tree, LUSTRE_REC_OFF+3);
}
if (pb_type == PTL_RPC_MSG_REPLY) {
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_llog_cookie_array(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset ,tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_capa(tvb, offset ,tree, LUSTRE_REC_OFF+4);
}
break;
case MDS_REINT:
/* the structure depend on the intent_opcode */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = process_opcode_reint_req(tvb, offset, pinfo, tree, trans);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = process_opcode_reint_rep(tvb, offset, pinfo, tree, trans);
break;
case MDS_CONNECT:
/* REQ: generic connect chain ([targetuuid][clientuuid][lustre_handle][obd_connect_data])
* REP: [CONNECT DATA] */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_generic_connect(tvb, offset, pinfo, tree);
if (pb_type == PTL_RPC_MSG_REPLY || pb_type == PTL_RPC_MSG_ERR) /*[obd_connect_data]*/
offset = dissect_struct_obd_connect_data(tvb, offset, pinfo, tree);
break;
case MDS_DISCONNECT:
/* no data */
break;
case MDS_GET_ROOT:
/* REQ: [mdt body][NAME] */
/* REP: [mdt body][capa] */
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_name, LUSTRE_REC_OFF+1);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
break;
case MDS_STATFS:
/* REQ: no data
* REP: [OBD STATFS] */
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_obd_statfs(tvb, offset, tree);
break;
/* case MDS_PIN: NEVER USED In a release */
/* case MDS_UNPIN: NEVER USED In a release */
case MDS_READPAGE: // OUT OF ORDER
/* page transport: MDS BULK PORTAL */
case MDS_SYNC:
/* REQ: [MDT BODY][CAPA]
* REP: [MDT BODY] */
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
break;
case MDS_DONE_WRITING:
/* Obsolete since 2.8.0 */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
/* [mdt_body] */
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case MDS_SET_INFO:
/* Missing from lustre/ptlrpc/layout.c */
/* REQ: [KEY][VAL]
* REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_mdt_val, LUSTRE_REC_OFF+1);
}
break;
case MDS_QUOTACHECK:
/* Obsolete since 2.8.0 */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
/* REQ: [obd_quotactl]
* REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_obd_quotactl(tvb, offset, tree);
break;
case MDS_QUOTACTL:
/* REQ: [obd_quotactl]
* REP: [obd_quotactl] */
offset = dissect_struct_obd_quotactl(tvb, offset, tree);
break;
case MDS_GETXATTR:
/* REQ: [MDT BODY][CAPA][NAME][EADATA]
* REP: [MDT BODY][EADATA] */
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_name, LUSTRE_REC_OFF+2);
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
}
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
break;
case MDS_SETXATTR:
/* Obsolete since 2.0.0, should use MDS_REINT.REINT_SETXATTR */
/* REQ: [mdt_body]
* REP: no data */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
if(pb_type==PTL_RPC_MSG_REQUEST)
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case MDS_WRITEPAGE:
/* Not used, apparently */
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "MDS WRITEPAGE: Unknown decoding");
break;
/* case MDS_IS_SUBDIR: obsolete, never used in a release */
case MDS_GET_INFO:
/* REQ: [KEY][LENGTH]
* REP: [VAL] */
if (pb_type == PTL_RPC_MSG_REQUEST) {
// @@TODO this is actually a string + fill + optional struct : lustre/include/obd.h KEY_*
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_mdt_key, LUSTRE_REC_OFF);
// "fid2path" -> [getinfo_fid2path][lu_fid]
// BUFFER: LUSTRE_REC_OFF+1
proto_tree_add_item(tree, hf_lustre_mdt_vallen, tvb, offset, 4, ENC_LITTLE_ENDIAN);
}
if (pb_type == PTL_RPC_MSG_REPLY)
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF, NULL);
break;
case MDS_HSM_STATE_GET:
/* REQ: [mdt_body][capa]
* REP: [MDT BODY][][HSM USER STATE] */
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_hsm_user_state(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
break;
case MDS_HSM_STATE_SET:
/* REQ: [mdt_body][capa][hsm_state_set]
* REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_hsm_state_set(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
}
break;
case MDS_HSM_ACTION:
/* REQ: [mdt_body][capa]
* REP: [mdt_body][hsm_current_action] */
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+1);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_hsm_current_action(tvb, offset, tree, LUSTRE_REC_OFF+1);
break;
case MDS_HSM_PROGRESS:
/* REQ: [mdt_body][hsm_progress]
* REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_hsm_progress(tvb, offset, tree);
}
break;
case MDS_HSM_REQUEST:
/* REQ: [mdt_body][hsm_request][array of hsm_user_item][generic_data]
* REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_hsm_request(tvb, offset, tree);
offset = dissect_struct_hsm_user_item_array(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+3, NULL);
}
break;
case MDS_HSM_CT_REGISTER:
/* REQ: [mdt_body][hsm_archive]
* REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_hsm_archive(tvb, offset, tree, LUSTRE_REC_OFF+1);
}
break;
case MDS_HSM_CT_UNREGISTER:
/* REQ: [mdt_body]
* REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case MDS_SWAP_LAYOUTS:
/* REQ: [mdt_body][swap_layouts][capa1][capa2][dlm_req]
* REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_mdc_swap_layouts(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF+4);
}
break;
case MDS_RMFID:
/* REQ: [mdt_body][fid_array][capa1][capa2]
* REP: [mdt_body][fid_array][rcs] */
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_fid_array(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
} else if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_rc_array(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN MDS OPCODE: %d (type: %d)", trans->opcode, pb_type);
break;
};
return offset;
}
static int
process_ldlm_intent_req(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree * tree, lustre_trans_t *trans)
{
/* > 2 buffers means LDLM_INTENT */
if (LUSTRE_BUFCOUNT <= 2)
return offset;
/* REQ: [DLM REQ][INTENT]
* Basic: --
* Default: [REC REINT]
* OPEN: [REC REINT][CAPA1][CAPA2][NAME][EADATA][SECCTX NAME][SECCTX]
* CREATE: [REC REINT][CAPA1][NAME][EADATA][SECCTX NAME][SECCTX]([SELINUX])
* GETATTR: [MDT BODY][CAPA1][NAME]
* UNLINK: [REC REINT][CAPA1][NAME]
* LAYOUT: [LAYOUT INTENT][EADATA]
* GETXATTR: [MDT BODY][CAPA1]
* QUOTA*: [QUOTA BODY]
*/
/* could also sanity check: ldlm_request.lock_flags & LDLM_FL_HAS_INTENT */
offset = dissect_struct_ldlm_intent(tvb, offset, pinfo, tree, trans, LUSTRE_REC_OFF+1);
switch (trans->sub_opcode) {
case IT_OPEN_CREAT:
case IT_OPEN:
offset = dissect_struct_mdt_rec_reint(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+4);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+5);
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+6);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_secctx_name, LUSTRE_REC_OFF+7);
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+8, "Security Context");
break;
case IT_CREAT:
offset = dissect_struct_mdt_rec_reint(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+4);
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+5);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_secctx_name, LUSTRE_REC_OFF+6);
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+7, "Security Context");
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_selinux_pol, LUSTRE_REC_OFF+8);
break;
case IT_LOOKUP: /* lustre/lmv/lmv_intent.c::lmv_intent_remote() */
case IT_GETATTR:
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+4);
break;
case IT_UNLINK:
offset = dissect_struct_mdt_rec_reint(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_filename, LUSTRE_REC_OFF+4);
break;
case IT_LAYOUT:
offset = dissect_struct_layout_intent(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
break;
case IT_GETXATTR:
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+3);
break;
case IT_QUOTA_DQACQ:
case IT_QUOTA_CONN:
offset = dissect_struct_quota_body(tvb, offset, tree, LUSTRE_REC_OFF+2);
break;
default:
offset = dissect_struct_mdt_rec_reint(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
break;
}
return offset;
}
static int
process_ldlm_intent_rep(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree * tree, lustre_trans_t *trans)
{
/* LDLM_ENQUEUE:
* REP: [DLM REP][DLM LVB]
* INTENT:
* REP: [DLM REP]...
* Default: [MDT BODY][MDT MD][ACL]
* LAYOUT: [DLM LVB]
* GETATTR: [MDT BODY][MDT MD][ACL][CAPA1][SEC CTX][DEFAULT MDT MD][FILE ENC CTX]
* CREATE: same as GETATTR
* OPEN: [MDT BODY][MDT MD][ACL][CAPA1][CAPA2]([NIOBUF])([SECCTX])
* QUOTA: [DLM LVB][QUOTA BODY]
* GETXATTR: [MDT BODY][MDT MD][ACL][EADATA][EAVALS][EAVALS LENS]
*/
offset = dissect_struct_ldlm_reply(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF);
switch (trans->sub_opcode) {
case 0: /* LDLM_ENQUEUE - no INTENT */
case IT_LAYOUT:
/* if tvb_get_letohl(tvb, offset) == LOV_MAGIC_V1 then DLMLVB :: lov_mds_md_v1 */
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
break;
case IT_GETATTR:
case IT_CREAT:
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_acl(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+4);
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+5, "Security Context");
offset = dissect_struct_lmv_user_md(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+6);
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+7, "Encryption Context");
break;
case IT_OPEN_CREAT:
case IT_OPEN:
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_acl(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+4);
offset = dissect_struct_capa(tvb, offset, tree, LUSTRE_REC_OFF+5);
offset = dissect_struct_niobuf_remote(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+6);
offset = display_buffer_data(tvb, pinfo, offset, tree, LUSTRE_REC_OFF+7, "Security Context");
break;
case IT_QUOTA_DQACQ:
case IT_QUOTA_CONN:
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_quota_body(tvb, offset, tree, LUSTRE_REC_OFF+2);
break;
case IT_GETXATTR:
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_acl(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
/* this sucks up [EADATA][EAVALS][EAVALS LENS] */
offset = dissect_xattr_buffers(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+4);
break;
default:
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF+1);
offset = dissect_struct_lov_mds_md(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+2);
offset = dissect_struct_acl(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+3);
break;
}
return offset;
}
static int
process_opcode_ldlm(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree * tree, lustre_trans_t *trans, uint32_t pb_type)
{
if (pb_type == PTL_RPC_MSG_REQUEST)
switch (trans->opcode) {
case LDLM_ENQUEUE:
/* REQ: [DLM REQ]{[INTENT]...} */
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF);
offset = process_ldlm_intent_req(tvb, offset, pinfo, tree, trans);
break;
case LDLM_GL_CALLBACK:
/* REQ: [DLM REQ][[GL DESC]]
* LDLM_GL_CALLBACK_DESC has gl_desc as tertiary buffer
*/
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, &trans->sub_opcode, LUSTRE_REC_OFF);
offset = dissect_struct_ldlm_gl_desc(tvb, offset, pinfo, tree, trans, LUSTRE_REC_OFF+1);
break;
case LDLM_CONVERT:
case LDLM_CANCEL:
case LDLM_BL_CALLBACK:
/* REQ: [DLM REQ] */
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF);
break;
case LDLM_CP_CALLBACK:
/* REQ: [DLM REQ][DLM LVB] */
offset = dissect_struct_ldlm_request(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF);
/* lustre/ldlm/ldlm_lockd.c::ldlm_handle_cp_callback()
* if extent lock, lvb data is ost_lvb struct, no other
* options seem to exist */
offset = dissect_struct_ost_lvb(tvb, offset, tree, LUSTRE_REC_OFF+1);
break;
case LDLM_SET_INFO:
/* not in lustreptlrpc/layout.c
* in lustre/ldlm/ldlm_lockd.c::ldlm_handle_setinfo() treat like RQF_OBD_SET_INFO */
/* REQ: [KEY][VAL] */
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_ldlm_key, LUSTRE_REC_OFF);
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_ldlm_val, LUSTRE_REC_OFF+1);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN LDLM OPCODE: %d (type: %d)", trans->opcode, pb_type);
break;
}
if (pb_type == PTL_RPC_MSG_REPLY)
switch (trans->opcode) {
case LDLM_ENQUEUE:
offset = process_ldlm_intent_rep(tvb, offset, pinfo, tree, trans);
break;
case LDLM_CONVERT:
/* REP: [DLM REP] */
offset = dissect_struct_ldlm_reply(tvb, offset, pinfo, tree, NULL, LUSTRE_REC_OFF);
break;
case LDLM_CANCEL:
case LDLM_BL_CALLBACK:
case LDLM_CP_CALLBACK:
/* no data */
break;
case LDLM_GL_CALLBACK:
/* REP: [DLM LVB] */
offset = dissect_struct_barrier_lvb(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case LDLM_SET_INFO:
/* no data - c.f. Request reasoning, this processed as RFQ_OBD_SET_INFO */
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN LDLM OPCODE: %d (type: %d)", trans->opcode, pb_type);
break;
}
return offset;
}
static int
process_opcode_mgs(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
switch (trans->opcode){
case MGS_CONNECT:
/* REQ: generic connect chain ([targetuuid][clientuuid][lustre_handle][obd_connect_data])
* REP: [CONNECT DATA] */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_generic_connect(tvb, offset, pinfo, tree);
if (pb_type == PTL_RPC_MSG_REPLY || pb_type == PTL_RPC_MSG_ERR)
offset = dissect_struct_obd_connect_data(tvb, offset, pinfo, tree);
break;
case MGS_DISCONNECT:
/* no data */
break;
case MGS_EXCEPTION:
/* no data */
break;
case MGS_TARGET_REG:
/* REQ: [mgs_target_info]
* REP: [mgs_target_info] */
offset = dissect_struct_mgs_target_info(tvb, offset, pinfo, tree, LUSTRE_REC_OFF);
break;
case MGS_TARGET_DEL:
/* no data */
break;
case MGS_SET_INFO:
/* REQ: [mgs_send_param]
* REP: [mgs_send_param] */
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_mgs_send_param, LUSTRE_REC_OFF);
break;
case MGS_CONFIG_READ:
/* REQ: [mgs_config_body]
* REP: [mgs_config_res] */
if (pb_type==PTL_RPC_MSG_REQUEST)
offset = dissect_struct_mgs_config_body(tvb, offset, pinfo, tree, trans);
if (pb_type==PTL_RPC_MSG_REPLY)
offset = dissect_struct_mgs_config_res(tvb, offset, pinfo, tree, trans);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN MGS OPCODE: %d (type: %d)", trans->opcode, pb_type);
break;
};
return offset;
}
static int
process_opcode_obd(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
switch (trans->opcode) {
case OBD_PING:
/* no data */
break;
case OBD_LOG_CANCEL:
/* REQ: [LOGCOOKIES]
REP: no data */
if (pb_type==PTL_RPC_MSG_REQUEST)
offset = dissect_struct_llog_cookie_array(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case OBD_QC_CALLBACK: /* not used since 2.4 */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
break;
case OBD_IDX_READ:
/* REQ: [idx_info]
REP: [idx_info] */
offset = dissect_struct_idx_info(tvb, offset, tree, LUSTRE_REC_OFF);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN OBD OPCODE: %d (type: %d)", trans->opcode, pb_type);
};
return offset;
}
static int
process_opcode_llog(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
switch (trans->opcode) {
case LLOG_ORIGIN_HANDLE_CREATE:
/* REQ: [LLOG BODY][NAME][MDT BODY]
REP: [LLOG BODY] */
offset = dissect_struct_llogd_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = display_buffer_string(tvb, pinfo, tree, offset, hf_lustre_name, LUSTRE_REC_OFF+1);
offset = dissect_struct_mdt_body(tvb, offset, tree, LUSTRE_REC_OFF+2);
}
break;
case LLOG_ORIGIN_HANDLE_NEXT_BLOCK:
case LLOG_ORIGIN_HANDLE_PREV_BLOCK:
/* REQ: [LLOG BODY]
REP: [LLOG BODY][EADATA] */
offset = dissect_struct_llogd_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_llog_eadata(tvb, offset, pinfo, tree, LUSTRE_REC_OFF+1);
break;
case LLOG_ORIGIN_HANDLE_READ_HEADER:
/* REQ: [LLOG BODY]
REP: [LLOG LOG HDR] */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_llogd_body(tvb, offset, tree, LUSTRE_REC_OFF);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_llog_log_hdr(tvb, offset, pinfo, tree, LUSTRE_REC_OFF);
break;
case LLOG_ORIGIN_CONNECT:
/* REQ: [LLOG CONN BODY]
REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_llogd_conn_body(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case LLOG_ORIGIN_HANDLE_DESTROY:
/* REQ: [LLOG BODY]
REP: [LLOG BODY] */
offset = dissect_struct_llogd_body(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case LLOG_CATINFO:
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
/* @@ data? */
break;
case LLOG_ORIGIN_HANDLE_WRITE_REC:
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
/* @@ obsolete since AT LEAST 2.0 */
break;
case LLOG_ORIGIN_HANDLE_CLOSE:
/* no data */
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN LLOG OPCODE: %d (type: %d)", trans->opcode, pb_type);
};
return offset;
}
static int
process_opcode_quota(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
switch (trans->opcode) {
case QUOTA_DQACQ:
/* REQ: [QUOTA BODY]
REP: [QUOTA BODY] */
offset = dissect_struct_quota_body(tvb, offset, tree, LUSTRE_REC_OFF);
break;
case QUOTA_DQREL:
/* no data */
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN QUOTA OPCODE: %d (type: %d)", trans->opcode, pb_type);
};
return offset;
}
static int
process_opcode_seq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
int buffer = LUSTRE_REC_OFF;
switch (trans->opcode) {
case SEQ_QUERY:
/* REQ: [SEQ OPC][SEQ RANGE]
REP: [SEQ RANGE] */
if (pb_type == PTL_RPC_MSG_REQUEST) {
trans->sub_opcode = tvb_get_letohl(tvb, offset);
proto_tree_add_item(tree, hf_lustre_seq_opc, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = add_extra_padding(tvb, offset, pinfo, tree);
++buffer;
}
offset = dissect_struct_seq_range(tvb, offset, tree, buffer);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN SEQ OPCODE: %d (type: %d)", trans->opcode, pb_type);
};
return offset;
}
static int
process_opcode_fld(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
int buffer = LUSTRE_REC_OFF;
switch (trans->opcode) {
case FLD_QUERY:
/* REQ: [FLD OPC][FLD MDFLD]
REP: [FLD MDFLD] */
if (pb_type == PTL_RPC_MSG_REQUEST) {
trans->sub_opcode = tvb_get_letohl(tvb, offset);
proto_tree_add_item(tree, hf_lustre_fld_opc, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
offset = add_extra_padding(tvb, offset, pinfo, tree);
++buffer;
}
offset = dissect_struct_seq_range(tvb, offset, tree, buffer);
break;
case FLD_READ:
/* REQ: [FLD MDFLD]
REP: [GENERIC DATA] */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_seq_range(tvb, offset, tree, buffer);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = display_buffer_data(tvb, pinfo, offset, tree, buffer, NULL);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN FLD OPCODE: %d (type: %d)", trans->opcode, pb_type);
};
return offset;
}
static int
process_opcode_out_update(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
int buffer = LUSTRE_REC_OFF;
switch (trans->opcode) {
case OUT_UPDATE:
/* REQ: [OUT UDPATE HEADER][OUT UPDATE BUFFER]
REP: [OUT UPDATE REPLY] */
if (pb_type == PTL_RPC_MSG_REQUEST) {
offset = dissect_struct_out_update_header(tvb, offset, pinfo, tree, buffer++);
offset = dissect_struct_out_update_buffer(tvb, offset, pinfo, tree, buffer);
}
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_obj_update_reply(tvb, offset, pinfo, tree, buffer);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN OUT OPCODE: %d (type: %d)", trans->opcode, pb_type);
};
return offset;
}
static int
process_opcode_lfsck(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans, uint32_t pb_type)
{
int buffer = LUSTRE_REC_OFF;
switch (trans->opcode) {
case LFSCK_NOTIFY:
/* REQ: [LFSCK REQ]
REP: no data */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_lfsck_request(tvb, offset, tree, buffer);
break;
case LFSCK_QUERY:
/* REQ: [LFSCK REQ]
REP: [LFSCK REP] */
if (pb_type == PTL_RPC_MSG_REQUEST)
offset = dissect_struct_lfsck_request(tvb, offset, tree, buffer);
if (pb_type == PTL_RPC_MSG_REPLY)
offset = dissect_struct_lfsck_reply(tvb, offset, tree, buffer);
break;
default:
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "UNKNOWN LFSCK OPCODE: %d (type: %d)", trans->opcode, pb_type);
};
return offset;
}
/******************************************************************** \
*
* Message Dissectors and Helpers
*
\********************************************************************/
/* process lustre opcode :
check if opcode is in range_opcode, and call the corresponding opcode process function */
static int
lustre_opcode_process(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree * tree, lustre_trans_t *trans, uint32_t pb_type)
{
/* No more buffers to process */
if (LUSTRE_BUFCOUNT == 1)
return offset;
/* OST opcodes */
if (trans->opcode <= OST_LAST_OPC)
return process_opcode_ost(tvb, offset, pinfo, tree, trans, pb_type);
/* MDS opcodes */
if ((trans->opcode >= MDS_FIRST_OPC) && (trans->opcode < MDS_LAST_OPC))
return process_opcode_mds(tvb, offset, pinfo, tree, trans, pb_type);
/*LDLM Opcodes*/
if ((trans->opcode >= LDLM_FIRST_OPC) && (trans->opcode < LDLM_LAST_OPC))
return process_opcode_ldlm(tvb, offset, pinfo, tree, trans, pb_type);
/* MGS Opcodes */
if ((trans->opcode >= MGS_FIRST_OPC) && (trans->opcode < MGS_LAST_OPC))
return process_opcode_mgs(tvb, offset, pinfo, tree, trans, pb_type);
/* ODB Opcodes */
if ((trans->opcode >= OBD_FIRST_OPC) && (trans->opcode < OBD_LAST_OPC))
return process_opcode_obd(tvb, offset, pinfo, tree, trans, pb_type);
/* LLOG Opcodes */
if ((trans->opcode >= LLOG_FIRST_OPC) && (trans->opcode < LLOG_LAST_OPC))
return process_opcode_llog(tvb, offset, pinfo, tree, trans, pb_type);
/* QUOTA Opcodes */
if ((trans->opcode >= QUOTA_FIRST_OPC) && (trans->opcode < QUOTA_LAST_OPC))
return process_opcode_quota(tvb, offset, pinfo, tree, trans, pb_type);
/* SEQ Opcodes */
if ((trans->opcode >= SEQ_FIRST_OPC) && (trans->opcode < SEQ_LAST_OPC))
return process_opcode_seq(tvb, offset, pinfo, tree, trans, pb_type);
/* SEC Opcodes */
if ((trans->opcode >= SEC_FIRST_OPC) && (trans->opcode < SEC_LAST_OPC))
/* Currently not implemented */
return offset;
/* FLD Opcodes */
if ((trans->opcode >= FLD_FIRST_OPC) && (trans->opcode < FLD_LAST_OPC))
return process_opcode_fld(tvb, offset, pinfo, tree, trans, pb_type);
/* OUT Opcodes */
if ((trans->opcode >= OUT_UPDATE_FIRST_OPC) && (trans->opcode < OUT_UPDATE_LAST_OPC))
return process_opcode_out_update(tvb, offset, pinfo, tree, trans, pb_type);
/* LFSCK Opcodes */
if ((trans->opcode >= LFSCK_FIRST_OPC) && (trans->opcode < LFSCK_LAST_OPC))
return process_opcode_lfsck(tvb, offset, pinfo, tree, trans, pb_type);
/* Unrecognized OPCODE */
expert_add_info_format(pinfo, tree, &ei_lustre_badopc, "BAD OPCODE: %d (type: %d)", trans->opcode, pb_type);
return offset;
}
static int
dissect_struct_msg_v1(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, lustre_trans_t *trans)
{
//proto_item *item = NULL;
uint32_t bufcount, i;
int old_offset;
old_offset = offset;
/* struct lustre_msg_v1 { */
/* struct lustre_handle lm_handle; */
/* __u32 lm_magic; */
/* __u32 lm_type; */
/* __u32 lm_version; */
/* __u32 lm_opc; */
/* __u64 lm_last_xid; */
/* __u64 lm_last_committed; */
/* __u64 lm_transno; */
/* __u32 lm_status; */
/* __u32 lm_flags; */
/* __u32 lm_conn_cnt; */
/* __u32 lm_bufcount; */
/* __u32 lm_buflens[0]; */
/* }; */
offset = dissect_struct_lustre_handle(tvb, offset, tree, hf_lustre_lustre_msg_v1_lm_handle);
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_type, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_lustre_msg_v1_lm_opc, tvb, offset, 4, ENC_LITTLE_ENDIAN, &trans->opcode);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_last_xid, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_last_committed, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_transno, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_status, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_conn_cnt, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_lustre_lustre_msg_v1_lm_bufcount, tvb, offset, 4, ENC_LITTLE_ENDIAN, &bufcount);
offset += 4;
for (i = 0; i < bufcount; ++i) {
proto_tree_add_item(tree, hf_lustre_lustre_msg_v1_lm_buflens, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
// add padding if bufcount is odd
if (bufcount & 1) {
proto_tree_add_item(tree, hf_lustre_extra_padding, tvb, offset, 4, ENC_NA);
offset += 4;
}
/* @@ HERE - Something, something, something ... */
proto_item_set_len(tree, offset-old_offset);
return offset;
}
static int
dissect_struct_msg_v2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, lustre_trans_t *trans)
{
uint32_t bufcount;
int old_offset;
uint32_t i;
uint32_t buf_len_offset;
uint32_t current_buf_len;
uint32_t pb_type;
old_offset = offset;
/* struct lustre_msg_v2 { */
/* uint32 lm_bufcount; */
/* uint32 lm_secflvr; */
/* uint32 lm_magic; */
/* uint32 lm_repsize; */
/* uint32 lm_cksum; */
/* uint32 lm_flags; */
/* uint32 lm_padding_2; */
/* uint32 lm_padding_3; */
/* uint32 lm_buflens[0]; */
/* } */
proto_tree_add_item_ret_uint(tree, hf_lustre_lustre_msg_v2_lm_bufcount, tvb, offset, 4, ENC_LITTLE_ENDIAN, &bufcount);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v2_lm_secflvr, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v2_lm_magic, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v2_lm_repsize, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v2_lm_cksum, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v2_lm_flags, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v2_lm_padding_2, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_lustre_lustre_msg_v2_lm_padding_3, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
buf_len_offset=offset;
for (i = 0; i < bufcount; ++i) {
proto_tree_add_item(tree, hf_lustre_lustre_msg_v2_lm_buflens, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
}
/* we add an extra padding if bufcount is odd */
if (bufcount & 1) {
proto_tree_add_item(tree, hf_lustre_extra_padding, tvb, offset, 4, ENC_NA);
offset += 4;
}
current_buf_len = tvb_get_letohl(tvb, buf_len_offset);
offset = dissect_struct_ptlrpc_body(tvb, pinfo, tree, offset, current_buf_len, trans, &pb_type);
offset = lustre_opcode_process(tvb, offset, pinfo, tree, trans, pb_type);
proto_item_set_len(tree, offset-old_offset);
return offset;
}
/********************************************************************\
*
* Core Functions
*
\********************************************************************/
/* Code to actually dissect the packets */
static int
dissect_lustre(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
{
uint32_t magic_number;
unsigned offset = 0;
proto_item *ti = NULL;
proto_tree *lustre_tree = NULL;
struct lnet_trans_info *info = (struct lnet_trans_info *)data;
lustre_trans_t *trans = lustre_get_trans(pinfo, info);
col_set_str(pinfo->cinfo, COL_PROTOCOL, "Lustre");
col_clear(pinfo->cinfo, COL_INFO);
ti = proto_tree_add_item(tree, proto_lustre, tvb, 0, -1, ENC_NA);
lustre_tree = proto_item_add_subtree(ti, ett_lustre);
magic_number = tvb_get_letohl(tvb, 8);
switch (magic_number) {
case MSG_MAGIC_V1:
/* This hasn't been used since before Lustre 1.8.0 */
expert_add_info(pinfo, tree, &ei_lustre_obsopc);
proto_item_append_text(lustre_tree, " V1 ");
offset = dissect_struct_msg_v1(tvb, offset, pinfo, lustre_tree, trans);
break;
case MSG_MAGIC_V2:
/* put some nice info */
proto_item_append_text(lustre_tree, " V2 ");
offset = dissect_struct_msg_v2(tvb, offset, pinfo, lustre_tree, trans);
break;
default:
expert_add_info(pinfo, lustre_tree, &ei_lustre_badmagic);
break;
}
return offset;
}
void
proto_reg_handoff_lustre(void)
{
/* we use Lustre only if we get ptl_index = One of this code (we have removed the bulk code) */
/* in LNET we test if the message is a put or not before adding an lnet.ptl_index value */
dissector_add_uint("lnet.ptl_index", MDS_MDS_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", MDC_REPLY_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", CONNMGR_REQUEST_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", CONNMGR_REPLY_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", OSC_REPLY_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", OST_IO_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", OST_CREATE_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", MDC_REPLY_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", MDS_REQUEST_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", LDLM_CB_REQUEST_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", LDLM_CB_REPLY_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", LDLM_CANCEL_REQUEST_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", LDLM_CANCEL_REPLY_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", MDS_SETATTR_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", MDS_READPAGE_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", MGC_REPLY_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", MGS_REQUEST_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", MGS_REPLY_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", OST_REQUEST_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", FLD_REQUEST_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", SEQ_METADATA_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", SEQ_DATA_PORTAL, lustre_handle);
dissector_add_uint("lnet.ptl_index", SEQ_CONTROLLER_PORTAL, lustre_handle);
}
/* Register the protocol with Wireshark.
*
* This format is required because a script is used to build the C function that
* calls all the protocol registration.
*/
void
proto_register_lustre(void)
{
static hf_register_info hf[] = {
/* Message V1 */
{ &hf_lustre_lustre_msg_v1_lm_magic,
{ "Lm Magic", "lustre.lustre_msg_v1.lm_magic", FT_UINT32, BASE_HEX, VALS(lustre_magic), 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_handle,
{ "Lm Handle", "lustre.lustre_msg_v1.lm_handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_msg_v1_lm_last_xid,
{ "Lm Last Xid", "lustre.lustre_msg_v1.lm_last_xid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_status,
{ "Lm Status", "lustre.lustre_msg_v1.lm_status", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_type,
{ "Lm Type", "lustre.lustre_msg_v1.lm_type", FT_UINT32, BASE_DEC, VALS(lustre_LMTypes), 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_flags,
{ "Lm Flags", "lustre.lustre_msg_v1.lm_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_last_committed,
{ "Lm Last Committed", "lustre.lustre_msg_v1.lm_last_committed", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_buflens,
{ "Lm Buflens", "lustre.lustre_msg_v1.lm_buflens", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_conn_cnt,
{ "Lm Conn Cnt", "lustre.lustre_msg_v1.lm_conn_cnt", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_transno,
{ "Lm Transno", "lustre.lustre_msg_v1.lm_transno", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_opc,
{ "Lm Opc", "lustre.lustre_msg_v1.lm_opc", FT_UINT32, BASE_DEC, VALS(lustre_op_codes), 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_version,
{ "Lm Version", "lustre.lustre_msg_v1.lm_version", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v1_lm_bufcount,
{ "Lm Bufcount", "lustre.lustre_msg_v1.lm_bufcount", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* Message V2 */
{ &hf_lustre_lustre_msg_v2_lm_magic,
{ "Lm Magic", "lustre.lustre_msg_v2.lm_magic", FT_UINT32, BASE_HEX, VALS(lustre_magic), 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v2_lm_bufcount,
{ "Lm Bufcount", "lustre.lustre_msg_v2.lm_bufcount", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v2_lm_repsize,
{ "Lm Repsize", "lustre.lustre_msg_v2.lm_repsize", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v2_lm_cksum,
{ "Lm Cksum", "lustre.lustre_msg_v2.lm_cksum", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v2_lm_buflens,
{ "Lm Buflens", "lustre.lustre_msg_v2.lm_buflens", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v2_lm_flags,
{ "Lm Flags", "lustre.lustre_msg_v2.lm_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v2_lm_secflvr,
{ "Lm Secflvr", "lustre.lustre_msg_v2.lm_secflvr", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v2_lm_padding_2,
{ "Lm Padding 2", "lustre.lustre_msg_v2.lm_padding_2", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lustre_msg_v2_lm_padding_3,
{ "Lm Padding 3", "lustre.lustre_msg_v2.lm_padding_3", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/************************************************************
* PTRL RPC
*/
/* PTRL RPC BODY */
{ &hf_lustre_ptlrpc_body_pb,
{ "PTL RPC Body", "lustre.ptlrpc_body", FT_NONE, BASE_NONE, NULL , 0 , NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_last_committed,
{ "Pb Last Committed", "lustre.ptlrpc_body.pb_last_committed", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_version,
{ "Pb Version", "lustre.ptlrpc_body.pb_version", FT_UINT32, BASE_DEC, NULL, ~LUSTRE_VERSION_MASK, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_slv,
{ "Pb Slv", "lustre.ptlrpc_body.pb_slv", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_pre_version,
{ "Pb Pre-Version", "lustre.ptlrpc_body.pb_pre_version", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_padding,
{ "Pb Padding", "lustre.ptlrpc_body.pb_padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_jobid,
{ "Pb JobId", "lustre.ptlrpc_body.pb_jobid", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_timeout,
{ "Pb Timeout", "lustre.ptlrpc_body.pb_timeout", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_op_flags,
{ "Pb Op Flags", "lustre.ptlrpc_body.pb_op_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_type,
{ "Pb Type", "lustre.ptlrpc_body.pb_type", FT_UINT32, BASE_DEC, VALS(lustre_LMTypes), 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_flags,
{ "Pb Flags", "lustre.ptlrpc_body.pb_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_limit,
{ "Pb Limit", "lustre.ptlrpc_body.pb_limit", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_transno,
{ "Pb Transno", "lustre.ptlrpc_body.pb_transno", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_service_time,
{ "Pb Service Time", "lustre.ptlrpc_body.pb_service_time",FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_conn_cnt,
{ "Pb Conn Cnt", "lustre.ptlrpc_body.pb_conn_cnt", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_opc,
{ "Pb Opc", "lustre.ptlrpc_body.pb_opc", FT_UINT32, BASE_DEC, VALS(lustre_op_codes), 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_last_seen,
{ "Pb Last Seen", "lustre.ptlrpc_body.pb_last_seen", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_last_xid,
{ "Pb Last Xid", "lustre.ptlrpc_body.pb_last_xid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_status,
{ "Pb Status", "lustre.ptlrpc_body.pb_status", FT_INT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ptlrpc_body_pb_handle,
{ "Pb Handle", "lustre.ptlrpc_body.pb_handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/************************************************************
* MDT
*/
{ &hf_lustre_mdt_key,
{ "MDT key", "lustre.mdt_key", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_mdt_val,
{ "MDT val", "lustre.mdt_val", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
/* MDT Getinfo */
{ &hf_lustre_mdt_vallen,
{ "MDT Val Len", "lustre.vallen", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
/* MDT BODY */
{ &hf_lustre_mdt_body,
{ "MDT Body", "lustre.mdt_body", FT_NONE, BASE_NONE, NULL , 0 , NULL, HFILL }},
{ &hf_lustre_mdt_body_fid1,
{ "Fid1", "lustre.mdt_body.fid1", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_body_fid2,
{ "Fid2", "lustre.mdt_body.fid2", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_body_handle,
{ "Handle", "lustre.mdt_body.handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_body_valid,
{ "Valid", "lustre.mdt_body.valid", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_size,
{ "Size", "lustre.mdt_body.size", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_mtime,
{ "Mtime", "lustre.mdt_body.mtime",FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_body_atime,
{ "Atime", "lustre.mdt_body.atime",FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_body_ctime,
{ "Ctime", "lustre.mdt_body.ctime",FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_body_blocks,
{ "Blocks", "lustre.mdt_body.blocks", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_ioepoch,
{ "Ioepoch", "lustre.mdt_body.ioepoch", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_ino,
{ "Ino", "lustre.mdt_body.ino", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_fsuid,
{ "Fsuid", "lustre.mdt_body.fsuid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_fsgid,
{ "Fsgid", "lustre.mdt_body.fsgid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_capability,
{ "Capability", "lustre.mdt_body.capability", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_mode,
{ "Mode", "lustre.mdt_body.mode", FT_UINT32, BASE_OCT, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_uid,
{ "Uid", "lustre.mdt_body.uid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_gid,
{ "Gid", "lustre.mdt_body.gid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_flags,
{ "Flags", "lustre.mdt_body.flags", FT_UINT32, BASE_HEX, VALS(lustre_mds_flags_vals) , 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_rdev,
{ "Rdev", "lustre.mdt_body.rdev", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_nlink,
{ "Nlink", "lustre.mdt_body.nlink", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_generation,
{ "Generation", "lustre.mdt_body.generation", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_suppgid,
{ "Suppgid", "lustre.mdt_body.suppgid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_eadatasize,
{ "Eadatasize", "lustre.mdt_body.eadatasize", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_aclsize,
{ "Aclsize", "lustre.mdt_body.aclsize", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_max_mdsize,
{ "Max Mdsize", "lustre.mdt_body.max_mdsize", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_max_cookiesize,
{ "Max Cookiesize", "lustre.mdt_body.max_cookiesize", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_uid_h,
{ "Uid H", "lustre.mdt_body.uid_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_gid_h,
{ "Gid H", "lustre.mdt_body.gid_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_projid,
{ "Projid", "lustre.mdt_body.projid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_dom_size,
{ "Dom Size", "lustre.mdt_body.dom_size", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_dom_blocks,
{ "Dom Blocks", "lustre.mdt_body.dom_blocks", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_btime,
{ "Dom Btime", "lustre.mdt_body.btime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_padding_9,
{ "Padding 9", "lustre.mdt_body.padding_9", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_body_padding_10,
{ "Padding 10", "lustre.mdt_body.padding_10", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
/* Close Data */
{ &hf_lustre_close_data,
{ "MDT Close", "lustre.mdt_close", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_close_fid,
{ "Close FID", "lustre.mdt_close.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_close_handle,
{ "Close Handle", "lustre.mdt_close.handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_close_data_ver,
{ "Close Data Ver", "lustre.mdt_close.data_ver", FT_UINT64, BASE_HEX, NULL, 0, "Data version", HFILL } },
{ &hf_lustre_close_reserved,
{ "Close Reserved Space", "lustre.mdt_close.reserved", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* MDT REC REINT */
{ &hf_lustre_mdt_rec_reint,
{ "MDT ReInt", "lustre.mdt_rec_reint", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_opcode,
{ "Opcode", "lustre.mdt_rec_reint.opcode", FT_UINT32, BASE_DEC, VALS(mds_reint_vals), 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_cap,
{ "Cap", "lustre.mdt_rec_reint.cap", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_fsuid,
{ "Fsuid", "lustre.mdt_rec_reint.fsuid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_fsuid_h,
{ "Fsuid H", "lustre.mdt_rec_reint.fsuid_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_fsgid,
{ "Fsgid", "lustre.mdt_rec_reint.fsgid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_fsgid_h,
{ "Fsgid H", "lustre.mdt_rec_reint.fsgid_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_suppgid1,
{ "Suppgid1", "lustre.mdt_rec_reint.suppgid1", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_suppgid1_h,
{ "Suppgid1 H", "lustre.mdt_rec_reint.suppgid1_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_suppgid2,
{ "Suppgid2", "lustre.mdt_rec_reint.suppgid2", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_suppgid2_h,
{ "Suppgid2 H", "lustre.mdt_rec_reint.suppgid2_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_fid1,
{ "Fid1", "lustre.mdt_rec_reint.fid1", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_fid2,
{ "Fid2", "lustre.mdt_rec_reint.fid2", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_old_handle,
{ "Old Handle", "lustre.mdt_rec_reint.old_handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_mtime,
{ "Mod Time", "lustre.mdt_rec_reint.mtime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_rec_reint_atime,
{ "Acc Time", "lustre.mdt_rec_reint.atime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_rec_reint_ctime,
{ "Cr Time", "lustre.mdt_rec_reint.ctime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_rec_reint_size64,
{ "Size", "lustre.mdt_rec_reint.size64", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_blocks,
{ "Blocks", "lustre.mdt_rec_reint.blocks", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_bias,
{ "Bias", "lustre.mdt_rec_reint.bias", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_mode,
{ "Mode", "lustre.mdt_rec_reint.mode", FT_UINT32, BASE_OCT, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_flags,
{ "Flags(L)", "lustre.mdt_rec_reint.flags", FT_UINT32, BASE_OCT, NULL, 0, "Low order flags", HFILL }},
{ &hf_lustre_mdt_rec_reint_flags_h,
{ "Flags(H)", "lustre.mdt_rec_reint.flags_h", FT_UINT32, BASE_OCT, NULL, 0, "High order flags", HFILL }},
{ &hf_lustre_mdt_rec_reint_attr_flags,
{ "Attr Flags", "lustre.mdt_rec_reint.attr_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_umask,
{ "Umask", "lustre.mdt_rec_reint.umask", FT_UINT32, BASE_OCT, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_time,
{ "Time", "lustre.mdt_rec_reint.time", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_rec_reint_size32,
{ "Size", "lustre.mdt_rec_reint.size32", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_rdev,
{ "RDev", "lustre.mdt_rec_reint.rdev", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_ioepoch,
{ "Ioepoch", "lustre.mdt_rec_reint.ioepoch", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_rec_reint_valid,
{ "Valid", "lustre.mdt_rec_reint.valid", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_uid,
{ "Uid", "lustre.mdt_rec_reint.uid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_gid,
{ "Gid", "lustre.mdt_rec_reint.gid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mdt_rec_reint_projid,
{ "ProjID", "lustre.mdt_rec_reint.projid", FT_UINT32, BASE_DEC, NULL, 0, "Project ID", HFILL }},
{ &hf_lustre_mdt_rec_reint_padding,
{ "Padding", "lustre.mdt_rec_reint.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* struct mdt_ioepoch */
{ &hf_lustre_mdt_ioepoch,
{ "MDT ioepoch", "lustre.mdt_ioepoch", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_ioepoch_ioepoch,
{ "Ioepoch", "lustre.mdt_ioepoch.ioepoch", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_ioepoch_flags,
{ "Flags", "lustre.mdt_ioepoch.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_ioepoch_padding,
{ "Padding", "lustre.mdt_ioepoch.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdt_ioepoch_handle,
{ "Handle", "lustre.mdt_ioepoch.handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* struct mdc_swap_layouts */
{ &hf_lustre_mdc_swap_layouts,
{ "MDC Swap Layouts", "lustre.mdc_swap_layouts", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_mdc_swap_layouts_flags,
{ "Flags", "lustre.mdc_swap_layouts.flags", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
/************************************************************
* HSM
*/
/* HSM Request */
{ &hf_lustre_hsm_req,
{ "HSM Request", "lustre.hsm_req", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_req_action,
{ "HR Action", "lustre.hsm_req.action", FT_UINT32, BASE_HEX, VALS(hsm_user_action_vals), 0, NULL, HFILL } },
{ &hf_lustre_hsm_req_archive_id,
{ "HR Archive ID", "lustre.hsm_req.archive_id", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_req_flags,
{ "HR Flags", "lustre.hsm_req.flags", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_req_itemcount,
{ "HR Itemcount", "lustre.hsm_req.itemcount", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_req_data_len,
{ "HR Data Length", "lustre.hsm_req.data_len", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
/* HSM EXTENT */
{ &hf_lustre_hsm_extent,
{ "HSM Extent", "lustre.hsm_extent", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_extent_offset,
{ "Offset", "lustre.hsm_extent.offset", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_extent_length,
{ "Length", "lustre.hsm_extent.len", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL } },
/* HSM PROGRESS */
{ &hf_lustre_hsm_prog,
{ "HSM Progress", "lustre.hsm_progress", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_prog_fid,
{ "HSM Prog FID", "lustre.hsm_progress.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_prog_cookie,
{ "HSM Prog Cookie", "lustre.hsm_progress.cookie", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_prog_flags,
{ "HSM Prog Flags", "lustre.hsm_progress.flags", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_prog_errval,
{ "HSM Prog Error Val", "lustre.hsm_progress.errval", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_prog_data_ver,
{ "HSM Prog Data Version", "lustre.hsm_progress.data_ver", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_prog_padding1,
{ "HSM Padding1", "lustre.hsm_progress.padding1", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_prog_padding2,
{ "HSM Padding2", "lustre.hsm_progress.padding2", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
/* HSM STATE GET */
{ &hf_lustre_hsm_user_state,
{ "HSM User State", "lustre.hsm_state_get", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_us_states,
{ "States", "lustre.hsm_state_get.states", FT_UINT32, BASE_HEX, VALS(hsm_state_vals), 0, NULL, HFILL } },
{ &hf_lustre_hsm_us_archive_id,
{ "Archive ID", "lustre.hsm_state_get.archive_id", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_us_in_prog_state,
{ "In Progress State", "lustre.hsm_state_get.in_prog.state",
FT_UINT32, BASE_HEX, VALS(hsm_progress_state_vals), 0, NULL, HFILL } },
{ &hf_lustre_hsm_us_in_prog_action,
{ "In Progress Action", "lustre.hsm_state_get.in_prog.action",
FT_UINT32, BASE_HEX, VALS(hsm_user_action_vals), 0, NULL, HFILL } },
{ &hf_lustre_hsm_us_ext_info,
{ "Extended Info", "lustre.hsm_state_get.ext_info", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* HSM STATE SET */
{ &hf_lustre_hsm_state_set,
{ "HSM State Set", "lustre.hsm_state_set", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_hss_valid,
{ "Valid", "lustre.hsm_state_set.valid", FT_UINT32, BASE_HEX, VALS(hss_valid), 0, NULL, HFILL } },
{ &hf_lustre_hsm_hss_archive_id,
{ "Archive Id", "lustre.hsm_state_set.archive_id", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_hss_setmask,
{ "Set Mask", "lustre.hsm_state_set.setmask",
FT_UINT32, BASE_HEX, VALS(hsm_state_vals), 0, NULL, HFILL } },
{ &hf_lustre_hsm_hss_clearmask,
{ "Clear Mask", "lustre.hsm_state_set.clearmask",
FT_UINT32, BASE_HEX, VALS(hsm_state_vals), 0, NULL, HFILL } },
/* HSM CURRENT ACTION */
{ &hf_lustre_hsm_current_action,
{ "HSM Current Action", "lustre.hsm_current_action", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_current_action_state,
{ "State", "lustre.hsm_current_action.state", FT_UINT32, BASE_HEX, VALS(hsm_progress_state_vals), 0, NULL, HFILL } },
{ &hf_lustre_hsm_current_action_action,
{ "Action", "lustre.hsm_current_action.action", FT_UINT32, BASE_HEX, VALS(hsm_user_action_vals), 0, NULL, HFILL } },
/* HSM ARCHIVE */
{ &hf_lustre_hsm_archive,
{ "HSM Archive", "lustre.hsm_archive", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_hsm_archive_id,
{ "ID", "lustre.hsm_archive.id", FT_INT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/************************************************************
* OBD
*/
/* OBD IO Object */
{ &hf_lustre_obd_ioobj,
{ "OBD IO OBJ", "lustre.obd_ioobj", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_ioobj_ioo_id,
{ "Ioo Id", "lustre.obd_ioobj.ioo_id", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_ioobj_ioo_seq,
{ "Ioo Gr", "lustre.obd_ioobj.ioo_seq", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_ioobj_ioo_max_brw,
{ "Ioo Max BRW Size", "lustre.obd_ioobj.ioo_max_brw", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_ioobj_ioo_bufcnt,
{ "Ioo Bufcnt", "lustre.obd_ioobj.ioo_bufcnt", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* OBD STATFS */
{ &hf_lustre_obd_statfs,
{ "OBD Statfs", "lustre.obd_statfs", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_type,
{ "Os Type", "lustre.obd_statfs.os_type", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_bavail,
{ "Os Bavail", "lustre.obd_statfs.os_bavail", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_bsize,
{ "Os Bsize", "lustre.obd_statfs.os_bsize", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_maxbytes,
{ "Os Maxbytes", "lustre.obd_statfs.os_maxbytes", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_ffree,
{ "Os Ffree", "lustre.obd_statfs.os_ffree", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_files,
{ "Os Files", "lustre.obd_statfs.os_files", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_bfree,
{ "Os Bfree", "lustre.obd_statfs.os_bfree", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_namelen,
{ "Os Namelen", "lustre.obd_statfs.os_namelen", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_blocks,
{ "Os Blocks", "lustre.obd_statfs.os_blocks", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_fsid,
{ "Os Fsid", "lustre.obd_statfs.os_fsid", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_state,
{ "Os State", "lustre.obd_statfs.os_state", FT_UINT32, BASE_HEX, VALS(obd_statfs_state), 0, NULL, HFILL }},
{ &hf_lustre_obd_statfs_os_fprecreated,
{ "Os F Precreate", "lustre.obd_statfs.os_fprecreated", FT_UINT32, BASE_DEC, NULL, 0, "objs available now to the caller", HFILL }},
{ &hf_lustre_obd_statfs_os_granted,
{ "Os Granted", "lustre.obd_statfs.os_granted", FT_UINT32, BASE_DEC_HEX, NULL, 0, "space granted for MDS", HFILL }},
{ &hf_lustre_obd_statfs_os_spare,
{ "Os Spare", "lustre.obd_statfs.os_spare", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* OBD Connect Data */
{ &hf_lustre_obd_connect_data,
{ "OBD Connect Data", "lustre.obd_connect_data", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_connect_flags,
{ "Ocd Connect Flags", "lustre.obd_connect_data.ocd_connect_flags", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_version,
{ "Ocd Version", "lustre.obd_connect_data.ocd_version", FT_UINT32, BASE_CUSTOM, CF_FUNC(lustre_fmt_ver), 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_grant,
{ "Ocd Grant", "lustre.obd_connect_data.ocd_grant", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_index,
{ "Ocd Index", "lustre.obd_connect_data.ocd_index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_brw_size,
{ "Ocd Brw Size", "lustre.obd_connect_data.ocd_brw_size", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_ibits_known,
{ "Ocd Ibits Known", "lustre.obd_connect_data.ocd_ibits_known", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
/* reversioned elements */
{ &hf_lustre_obd_connect_data_ocd_nllg,
{ "Ocd Nllg", "lustre.obd_connect_data.ocd_nllg", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_nllu,
{ "Ocd Nllu", "lustre.obd_connect_data.ocd_nllu", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_grant_blkbits,
{ "Ocd Grant blkbits", "lustre.obd_connect_data.grant_blkbits", FT_UINT8, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_grant_inobits,
{ "Ocd Grant inobits", "lustre.obd_connect_data.grant_inobits", FT_UINT8, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_grant_tax_kb,
{ "Ocd Grant tax kb", "lustre.obd_connect_data.grant_tax_kb", FT_UINT16, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_grant_max_blks,
{ "Ocd Grant max blks", "lustre.obd_connect_data.grant_max_blks", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
/* end */
{ &hf_lustre_obd_connect_data_ocd_transno,
{ "Ocd Transno", "lustre.obd_connect_data.ocd_transno", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_group,
{ "Ocd Group", "lustre.obd_connect_data.ocd_group", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_connect_data_ocd_cksum_types,
{ "Ocd Cksum Types", "lustre.obd_connect_data.ocd_cksum_types", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_max_easize,
{ "Ocd Max LOV EA Size", "lustre.obd_connect_data.ocd_max_easize", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_instance,
{ "Ocd Instance", "lustre.obd_connect_data.ocd_instance", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_maxbytes,
{ "Ocd Max Stripe Size (Bytes)", "lustre.obd_connect_data.ocd_maxbytes", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_maxmodrpcs,
{ "Ocd Max Parallel Modify RPCs", "lustre.obd_connect_data.ocd_maxmodrpcs", FT_UINT16, BASE_DEC_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_connect_flags2,
{ "Ocd Connect Flags", "lustre.obd_connect_data.ocd_connect_flags2", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_connect_data_ocd_padding,
{ "Ocd Padding", "lustre.obd_connect_data.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* OBD UID */
{ &hf_lustre_obd_uuid,
{ "obd uuid name", "lustre.obd_uuid", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
/* OBD Quota Control */
{ &hf_lustre_obd_quotactl,
{ "OBD QuotaCtl", "lustre.obd_quotactl", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_quotactl_qc_stat,
{ "Qc Stat", "lustre.obd_quotactl.qc_stat", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_quotactl_qc_cmd,
{ "Qc Cmd", "lustre.obd_quotactl.qc_cmd", FT_UINT32, BASE_HEX, VALS(quota_cmd_vals), 0, NULL, HFILL }},
{ &hf_lustre_obd_quotactl_qc_id,
{ "Qc Id", "lustre.obd_quotactl.qc_id", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_quotactl_qc_type,
{ "Qc Type", "lustre.obd_quotactl.qc_type", FT_UINT32, BASE_DEC, VALS(quota_type_vals), 0, NULL, HFILL }},
/* Data Quota Info */
{ &hf_lustre_obd_dqblk,
{ "OBD DQ BLK", "lustre.obd_dqblk", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqblk_dqb_isoftlimit,
{ "Dqb Isoftlimit", "lustre.obd_dqblk.dqb_isoftlimit", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqblk_dqb_bhardlimit,
{ "Dqb Bhardlimit", "lustre.obd_dqblk.dqb_bhardlimit", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqblk_dqb_curspace,
{ "Dqb Curspace", "lustre.obd_dqblk.dqb_curspace", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqblk_dqb_itime,
{ "Dqb Itime", "lustre.obd_dqblk.dqb_itime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_dqblk_dqb_valid,
{ "Dqb Valid", "lustre.obd_dqblk.dqb_valid", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqblk_padding,
{ "Padding", "lustre.obd_dqblk.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqblk_dqb_curinodes,
{ "Dqb Curinodes", "lustre.obd_dqblk.dqb_curinodes", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqblk_dqb_bsoftlimit,
{ "Dqb Bsoftlimit", "lustre.obd_dqblk.dqb_bsoftlimit", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqblk_dqb_btime,
{ "Dqb Btime", "lustre.obd_dqblk.dqb_btime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obd_dqblk_dqb_ihardlimit,
{ "Dqb Ihardlimit", "lustre.obd_dqblk.dqb_ihardlimit", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
/* Data Quota BLK */
{ &hf_lustre_obd_dqinfo,
{ "OBD DQ Info", "lustre.obd_dqinfo", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqinfo_dqi_valid,
{ "Dqi Valid", "lustre.obd_dqinfo.dqi_valid", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqinfo_dqi_igrace,
{ "Dqi Igrace", "lustre.obd_dqinfo.dqi_igrace", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqinfo_dqi_bgrace,
{ "Dqi Bgrace", "lustre.obd_dqinfo.dqi_bgrace", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obd_dqinfo_dqi_flags,
{ "Dqi Flags", "lustre.obd_dqinfo.dqi_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
/************************************************************
* OST
*/
{ &hf_lustre_ost_body,
{ "OST Body", "lustre.ost_body", FT_NONE, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_ost_key,
{ "lustre ost key", "lustre.ost_key", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_ost_val,
{ "lustre ost val", "lustre.ost_val", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
/* OST LVB */
{ &hf_lustre_ost_lvb,
{ "OST LVB", "lustre.ost_lvb", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_lvb_atime,
{ "Lvb Atime", "lustre.ost_lvb.lvb_atime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ost_lvb_ctime,
{ "Lvb Ctime", "lustre.ost_lvb.lvb_ctime",FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ost_lvb_mtime,
{ "Lvb Mtime", "lustre.ost_lvb.lvb_mtime",FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ost_lvb_mtime_ns,
{ "Lvb Mtime NS", "lustre.ost_lvb.lvb_mtime_ns", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_lvb_atime_ns,
{ "Lvb Atime NS", "lustre.ost_lvb.lvb_atime_ns", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_lvb_ctime_ns,
{ "Lvb Ctime NS", "lustre.ost_lvb.lvb_ctime_ns", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_lvb_size,
{ "Lvb Size", "lustre.ost_lvb.lvb_size", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_lvb_blocks,
{ "Lvb Blocks", "lustre.ost_lvb.lvb_blocks", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_lvb_padding,
{ "padding", "lustre.ost_lvb.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* OST ID */
{ &hf_lustre_ost_id,
{ "OST ID [UNION]", "lustre.ost_id", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_id_fid,
{ "FID", "lustre.ost_id.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_id_oi,
{ "OI", "lustre.ost_id.oi", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* OST Layout */
{ &hf_lustre_ost_layout,
{ "OST Layout", "lustre.ost_layout", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_layout_stripe_size,
{ "OL Strip Size", "lustre.ost_layout.stripe_size", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_layout_stripe_count,
{ "OL Strip Count", "lustre.ost_layout.stripe_count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_layout_comp_start,
{ "OL Comp Start", "lustre.ost_layout.comp_start", FT_UINT64, BASE_HEX_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_layout_comp_end,
{ "OL Comp End", "lustre.ost_layout.comp_end", FT_UINT64, BASE_HEX_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_layout_comp_id,
{ "OL Comp ID", "lustre.ost_layout.comp_id", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_hdr,
{ "LAdvise Hdr", "lustre.lu_ladvise_hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_hdr_magic,
{ "LAH Magic", "lustre.lu_ladvise_hdr.lah_magic", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_hdr_count,
{ "LAH Count", "lustre.lu_ladvise_hdr.lah_count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_hdr_flags,
{ "LAH Flags", "lustre.lu_ladvise_hdr.lah_flags", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_hdr_value1,
{ "LAH Value1", "lustre.lu_ladvise_hdr.lah_value1", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_hdr_value2,
{ "LAH Value2", "lustre.lu_ladvise_hdr.lah_value2", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_hdr_value3,
{ "LAH Value3", "lustre.lu_ladvise_hdr.lah_value3", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise,
{ "LAdvise", "lustre.lu_ladvise", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_advice,
{ "LAH Advice", "lustre.lu_ladvise.lla_advice", FT_UINT16, BASE_HEX, VALS(lu_ladvise_type_vals), 0, "advice type", HFILL }},
{ &hf_lustre_lu_ladvise_value1,
{ "LAH Value1", "lustre.lu_ladvise.lla_value1", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_value2,
{ "LAH Value2", "lustre.lu_ladvise.lla_value2", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_start,
{ "LAH Flags", "lustre.lu_ladvise.lla_start", FT_UINT64, BASE_HEX, NULL, 0, "first byte of extent for advice", HFILL }},
{ &hf_lustre_lu_ladvise_end,
{ "LAH Flags", "lustre.lu_ladvise.lla_end", FT_UINT64, BASE_HEX, NULL, 0, "last byte of extent for advice", HFILL }},
{ &hf_lustre_lu_ladvise_value3,
{ "LAH Value3", "lustre.lu_ladvise.lla_value3", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_ladvise_value4,
{ "LAH Value4", "lustre.lu_ladvise.lla_value4", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/************************************************************
* LLOG
*/
/* llogd */
{ &hf_lustre_llogd_body,
{ "llogd body", "lustre.llogd_body", FT_NONE, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_llogd_body_lgd_len,
{ "Lgd Len", "lustre.llogd_body.lgd_len", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llogd_body_lgd_logid,
{ "Lgd Logid", "lustre.llogd_body.lgd_logid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llogd_body_lgd_index,
{ "Lgd Index", "lustre.llogd_body.lgd_index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llogd_body_lgd_saved_index,
{ "Lgd Saved Index", "lustre.llogd_body.lgd_saved_index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llogd_body_lgd_llh_flags,
{ "Lgd Llh Flags", "lustre.llogd_body.lgd_llh_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llogd_body_lgd_cur_offset,
{ "Lgd Cur Offset", "lustre.llogd_body.lgd_cur_offset", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llogd_body_lgd_ctxt_idx,
{ "Lgd Ctxt Idx", "lustre.llogd_body.lgd_ctxt_idx", FT_UINT32, BASE_DEC, VALS(llog_ctxt_id_vals), 0, NULL, HFILL }},
{ &hf_lustre_llogd_conn_body,
{ "LLOGd Conn Body", "lustre.llogd_conn_body", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llogd_conn_body_lgdc_gen,
{ "Lgdc Gen", "lustre.llogd_conn_body.lgdc_gen", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llogd_conn_body_lgdc_logid,
{ "Lgdc Logid", "lustre.llogd_conn_body.lgdc_logid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llogd_conn_body_lgdc_ctxt_idx,
{ "Lgdc Ctxt Idx", "lustre.llogd_conn_body.lgdc_ctxt_idx", FT_UINT32, BASE_DEC, VALS(llog_ctxt_id_vals), 0, NULL, HFILL }},
/* llog */
/* Generic LLOG Record Entry */
{ &hf_lustre_llog_rec,
{ "LLOG Record", "lustre.llog_rec", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_rec_hdr,
{ "LLOG REC Hdr", "lustre.llog_rec_hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_rec_tail,
{ "LLOG REC Tail", "lustre.llog_rec_tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* LLOG REC Header */
{ &hf_lustre_llog_rec_hdr_lrh_type,
{ "Lrh Type", "lustre.llog_rec_hdr.lrh_type", FT_UINT32, BASE_HEX, VALS(llog_op_types), 0, NULL, HFILL }},
{ &hf_lustre_llog_rec_hdr_lrh_len,
{ "Lrh Len", "lustre.llog_rec_hdr.lrh_len", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_rec_hdr_lrh_index,
{ "Lrh Index", "lustre.llog_rec_hdr.lrh_index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_rec_hdr_lrh_id,
{ "Lrh Id", "lustre.llog_rec_hdr.lrh_id", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LLOG REC Tail */
{ &hf_lustre_llog_rec_tail_lrt_index,
{ "Lrt Index", "lustre.llog_rec_tail.lrt_index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_rec_tail_lrt_len,
{ "Lrt Len", "lustre.llog_rec_tail.lrt_len", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LLOG Log Header */
{ &hf_lustre_llog_log_hdr,
{ "LLOG Log Hdr", "lustre.llogd_log_hdr", FT_NONE, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_llog_log_hdr_tgtuuid,
{ "Llh Tgtuuid", "lustre.llog_log_hdr.llh_tgtuuid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_log_hdr_cat_idx,
{ "Llh Cat Idx", "lustre.llog_log_hdr.llh_cat_idx", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_log_hdr_bitmap_offset,
{ "Llh Bitmap Offset", "lustre.llog_log_hdr.llh_bitmap_offset", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_log_hdr_flags,
{ "Llh Flags", "lustre.llog_log_hdr.llh_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_log_hdr_size,
{ "Llh Size", "lustre.llog_log_hdr.llh_size", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_log_hdr_tail,
{ "Llh Tail", "lustre.llog_log_hdr.llh_tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_log_hdr_bitmap,
{ "Llh Bitmap", "lustre.llog_log_hdr.llh_bitmap", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_log_hdr_count,
{ "Llh Count", "lustre.llog_log_hdr.llh_count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_log_hdr_timestamp,
{ "Llh Timestamp", "lustre.llog_log_hdr.llh_timestamp", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_log_hdr_hdr,
{ "Llh Hdr", "lustre.llog_log_hdr.llh_hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_log_hdr_reserved,
{ "Llh Reserved", "lustre.llog_log_hdr.llh_reserved", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LLOG log header flags */
{ &hf_lustre_llog_hdr_flag_zap_when_empty,
{"LLOG_F_ZAP_WHEN_EMPTY", "lustre.llog_log_hdr.llh_flags.zap_when_empty", FT_BOOLEAN, 32,
TFS(&lnet_flags_set_truth), LLOG_F_ZAP_WHEN_EMPTY, NULL, HFILL } },
{ &hf_lustre_llog_hdr_flag_is_cat,
{ "LLOG_F_IS_CAT", "lustre.llog_log_hdr.llh_flags.is_cat", FT_BOOLEAN, 32,
TFS(&lnet_flags_set_truth), LLOG_F_IS_CAT, NULL, HFILL } },
{ &hf_lustre_llog_hdr_flag_is_plain,
{ "LLOG_F_IS_PLAIN", "lustre.llog_log_hdr.llh_flags.is_plain", FT_BOOLEAN, 32,
TFS(&lnet_flags_set_truth), LLOG_F_IS_PLAIN, NULL, HFILL } },
{ &hf_lustre_llog_hdr_flag_ext_jobid,
{ "LLOG_F_EXT_JOBID", "lustre.llog_log_hdr.llh_flags.ext_jobid", FT_BOOLEAN, 32,
TFS(&lnet_flags_set_truth), LLOG_F_EXT_JOBID, NULL, HFILL } },
{ &hf_lustre_llog_hdr_flag_is_fixsize,
{ "LLOG_F_IS_FIXSIZE", "lustre.llog_log_hdr.llh_flags.is_fixsize", FT_BOOLEAN, 32,
TFS(&lnet_flags_set_truth), LLOG_F_IS_FIXSIZE, NULL, HFILL } },
/* LLOG LOGID REC */
{ &hf_lustre_llog_logid_rec,
{ "LLOG LogID Rec", "lustre.llog_logid_rec", FT_NONE, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_llog_logid_rec_hdr,
{ "Lid Hdr", "lustre.llog_logid_rec.hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_logid_rec_tail,
{ "Lid Tail", "lustre.llog_logid_rec.tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_logid_rec_id,
{ "Lid Id", "lustre.llog_logid_rec.id", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_logid_rec_padding,
{ "Padding", "lustre.llog_logid_rec.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LLOG LOGID */
{ &hf_lustre_llog_logid_lgl_ogen,
{ "Lgl Ogen", "lustre.llog_logid.lgl_ogen", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LLOG GEN REC */
{ &hf_lustre_llog_gen_rec,
{ "LLOG Gen Rec", "lustre.llog_gen_rec", FT_NONE, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_llog_gen_rec_hdr,
{ "Lgr Hdr", "lustre.llog_gen_rec.hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_gen_rec_tail,
{ "Lgr Tail", "lustre.llog_gen_rec.tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_gen_rec_gen,
{ "Lgr Gen", "lustre.llog_gen_rec.gen", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_gen_rec_padding,
{ "padding", "lustre.llog_gen_rec.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LLOG UNLINK REC */
{ &hf_lustre_llog_unlink_rec,
{ "LLOG Unlink", "lustre.llog_unlink_rec", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_unlink_rec_hdr,
{ "Lur Hdr", "lustre.llog_unlink_rec.hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_unlink_rec_tail,
{ "Lur Tail", "lustre.llog_unlink_rec.tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_unlink_rec_oseq,
{ "Lur Oseq", "lustre.llog_unlink_rec.oseq", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_unlink_rec_oid,
{ "Lur Oid", "lustre.llog_unlink_rec.oid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_unlink_rec_count,
{ "Padding", "lustre.llog_unlink_rec.count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LLOG Size Change */
{ &hf_lustre_llog_unlink64_rec,
{ "LLOG Unlink64", "lustre.llog_unlink64_rec", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_unlink64_rec_hdr,
{ "Lsc Hdr", "lustre.llog_unlink64_rec.hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_unlink64_rec_count,
{ "Lsc Count", "lustre.llog_unlink64_rec.count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_unlink64_rec_fid,
{ "Lsc Fid", "lustre.llog_unlink64_rec.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_unlink64_rec_tail,
{ "Lsc Tail", "lustre.llog_unlink64_rec.tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_unlink64_rec_padding,
{ "Padding", "lustre.llog_unlink64_rec.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LLOG Size Change */
{ &hf_lustre_llog_size_change_rec,
{ "LLOG Size Chg", "lustre.llog_size_change_rec", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_size_change_rec_hdr,
{ "Lsc Hdr", "lustre.llog_size_change_rec.hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_size_change_rec_io_epoch,
{ "Lsc Io Epoch", "lustre.llog_size_change_rec.io_epoch", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_size_change_rec_fid,
{ "Lsc Fid", "lustre.llog_size_change_rec.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_size_change_rec_tail,
{ "Lsc Tail", "lustre.llog_size_change_rec.tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_size_change_rec_padding,
{ "Padding", "lustre.llog_size_change_rec.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LLOG Cookie */
{ &hf_lustre_llog_cookie,
{ "LLOG Cookie", "lustre.llog_cookie", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_cookie_lgc_lgl,
{ "Lgc lgl", "lustre.llog_cookie.lgc_lgl", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_cookie_lgc_padding,
{ "Lgc Padding", "lustre.llog_cookie.lgc_padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_cookie_lgc_index,
{ "Lgc Index", "lustre.llog_cookie.lgc_index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_cookie_lgc_subsys,
{ "Lgc Subsys", "lustre.llog_cookie.lgc_subsys", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LLOG CHANGELOG REC */
{ &hf_lustre_llog_changelog_rec,
{ "LLOG ChangeLog", "lustre.llog_changelog_rec", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_changelog_rec_hdr,
{ "Cr Hdr", "lustre.llog_changelog_rec.hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_changelog_rec_tail,
{ "Cr Tail", "lustre.llog_changelog_rec.tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_changelog_rec,
{ "ChangeLog", "lustre.changelog_rec", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_changelog_rec_namelen,
{ "Cr Name Len", "lustre.changelog_rec.namelen", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_changelog_rec_flags,
{ "Cr Flags", "lustre.changelog_rec.flags", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_changelog_rec_type,
{ "Cr Type", "lustre.changelog_rec.type", FT_UINT32, BASE_DEC, VALS(changelog_rec_type_vals), 0, NULL, HFILL }},
{ &hf_lustre_changelog_rec_index,
{ "Cr Index", "lustre.changelog_rec.index", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_changelog_rec_prev,
{ "Cr Prev", "lustre.changelog_rec.prev", FT_UINT64, BASE_DEC, NULL, 0, "Previous Index", HFILL }},
{ &hf_lustre_changelog_rec_time,
{ "Cr Time", "lustre.changelog_rec.time", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL }},
{ &hf_lustre_changelog_rec_tfid,
{ "Cr TFid", "lustre.changelog_rec.tfid", FT_NONE, BASE_NONE, NULL, 0, "Target FID", HFILL } },
{ &hf_lustre_changelog_rec_markerflags,
{ "Cr Mrk Flags", "lustre.changelog_rec.markerflags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_changelog_rec_padding,
{ "padding", "lustre.changelog_rec.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_changelog_rec_pfid,
{ "Cr PFid", "lustre.changelog_rec.pfid", FT_NONE, BASE_NONE, NULL, 0, "Parent FID", HFILL } },
{ &hf_lustre_changelog_ext_rename_sfid,
{ "Cr sFid", "lustre.changelog_ext_rename.sfid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_changelog_ext_rename_spfid,
{ "Cr spFid", "lustre.changelog_ext_rename.spfid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_changelog_ext_jobid_jobid,
{ "Cr JobID", "lustre.changelog_ext_jobid.jobid", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_changelog_extra_flags_extra_flags,
{ "Cr Extra Flags", "lustre.changelog_extra_flags.extra_flags", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_changelog_ext_name,
{ "Cr Name", "lustre.changelog_ext_name", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL } },
/* LLOG GEN */
{ &hf_lustre_llog_gen_conn_cnt,
{ "Conn Cnt", "lustre.llog_gen.conn_cnt", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_gen_mnt_cnt,
{ "Mnt Cnt", "lustre.llog_gen.mnt_cnt", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LLOG SETATTR REC */
{ &hf_lustre_llog_setattr_rec,
{ "LLOG SetAttr", "lustre.llog_setattr_rec", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_setattr_rec_hdr,
{ "Lsr Hdr", "lustre.llog_setattr_rec.hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_setattr_rec_oseq,
{ "Lsr Oseq", "lustre.llog_setattr_rec.oseq", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr_rec_padding,
{ "Padding", "lustre.llog_setattr_rec.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr_rec_uid,
{ "Lsr Uid", "lustre.llog_setattr_rec.uid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr_rec_oid,
{ "Lsr Oid", "lustre.llog_setattr_rec.oid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr_rec_gid,
{ "Lsr Gid", "lustre.llog_setattr_rec.gid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr_rec_tail,
{ "Lsr Tail", "lustre.llog_setattr_rec.tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* Lustre CFG */
{ &hf_lustre_lustre_cfg,
{ "Lustre CFG", "lustre.lustre_cfg", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_version,
{ "Lcfg Version", "lustre.lustre_cfg.version", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_command,
{ "Lcfg Cmd", "lustre.lustre_cfg.command", FT_UINT32, BASE_HEX, VALS(lcfg_command_type_vals), 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_num,
{ "Lcfg Num", "lustre.lustre_cfg.num", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_flags,
{ "Lcfg Flags", "lustre.lustre_cfg.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_nid,
{ "Lcfg Nid", "lustre.lustre_cfg.nid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_padding,
{ "padding", "lustre.lustre_cfg.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_bufcount,
{ "Lcfg Buf Cnt", "lustre.lustre_cfg.bufcount", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_buflen,
{ "Lcfg Buf Len", "lustre.lustre_cfg.buflen", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_cfg_buffer,
{ "Lcfg Buffer", "lustre.lustre_cfg.buffer", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL } },
/* CFG MARKER */
{ &hf_lustre_cfg_marker,
{ "CFG Marker", "lustre.cfg_marker", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_cfg_marker_step,
{ "CM Step", "lustre.cfg_maker.step", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_cfg_marker_flags,
{ "CM Flags", "lustre.cfg_maker.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_cfg_marker_vers,
{ "CM Vers", "lustre.cfg_maker.vers", FT_UINT32, BASE_CUSTOM, CF_FUNC(lustre_fmt_ver), 0, NULL, HFILL } },
{ &hf_lustre_cfg_marker_padding,
{ "padding", "lustre.cfg_maker.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_cfg_marker_createtime,
{ "CM Create Time", "lustre.cfg_maker.createtime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_cfg_marker_canceltime,
{ "CM Cancel Time", "lustre.cfg_maker.canceltime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_cfg_marker_tgtname,
{ "CM Tgt Name", "lustre.cfg_maker.tgtname", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_cfg_marker_comment,
{ "CM Comment", "lustre.cfg_maker.comment", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL } },
/* LLOG SETATTR64 REC */
{ &hf_lustre_llog_setattr64_rec,
{ "LLOG SetAttr", "lustre.llog_setattr64_rec", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_setattr64_rec_hdr,
{ "Lsr Hdr", "lustre.llog_setattr64_rec.hdr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_llog_setattr64_rec_uid,
{ "Lsr Uid", "lustre.llog_setattr64_rec.uid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr64_rec_uid_h,
{ "Lsr Uid", "lustre.llog_setattr64_rec.uid_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr64_rec_gid,
{ "Lsr Gid", "lustre.llog_setattr64_rec.gid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr64_rec_gid_h,
{ "Lsr Gid", "lustre.llog_setattr64_rec.gid_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr64_rec_valid,
{ "Lsr Oid", "lustre.llog_setattr64_rec.valid", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_llog_setattr64_rec_tail,
{ "Lsr Tail", "lustre.llog_setattr64_rec.tail", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/************************************************************
* NIO
*/
/* NIO Remote Buffer */
{ &hf_lustre_niobuf_remote,
{ "NIO Buffer", "lustre.niobuf_remote", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_niobuf_remote_offset,
{ "Offset", "lustre.niobuf_remote.offset", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_niobuf_remote_len,
{ "Length", "lustre.niobuf_remote.len", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_niobuf_remote_flags,
{ "Flags", "lustre.niobuf_remote.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_rcs,
{ "RCs", "lustre.rcs", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_rcs_rc,
{ "RC", "lustre.rcs.rc", FT_INT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* FID Array */
{ &hf_lustre_fid_array,
{ "Fid Array", "lustre.fid_array", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_fid_array_fid,
{ "FID", "lustre.fid_array.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/************************************************************
* LOV
*/
/* LOV OST Data */
{ &hf_lustre_lov_ost_data_v1,
{ "LOV OST Data V1", "lustre.lov_ost_data_v1", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_ost_data_v1_l_ost_gen,
{ "L Ost Gen", "lustre.lov_ost_data_v1.l_ost_gen", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_ost_data_v1_l_ost_idx,
{ "L Ost Idx", "lustre.lov_ost_data_v1.l_ost_idx", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LMV MDS MD */
{ &hf_lustre_lmv_mds_md,
{ "LMV MDS MD", "lustre.lmv_mds_md", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_magic,
{ "Lmv Magic", "lustre.lmv_mds_md.magic", FT_UINT32, BASE_HEX, VALS(lustre_magic), 0, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_stripe_count,
{ "Lmv Stripe Count", "lustre.lmv_mds_md.stripe_count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_master_mdt_index,
{ "Lmv Mast MDT Ind", "lustre.lmv_mds_md.master_mdt_index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_hash_type,
{ "Lmv Hash Type", "lustre.lmv_mds_md.hash_type", FT_UINT32, BASE_DEC, VALS(lmv_hash_type_vals), LMV_HASH_TYPE_MASK, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_status,
{ "Lmv Status", "lustre.lmv_mds_md.status", FT_UINT32, BASE_HEX, NULL, ~LMV_HASH_TYPE_MASK, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_layout_version,
{ "Lmv Layout Ver", "lustre.lmv_mds_md.layout_version", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_padding,
{ "Lmv padding", "lustre.lmv_mds_md.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_pool_name,
{ "Lmv Pool Name", "lustre.lmv_mds_md.pool_name", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_mds_md_stripe_fid,
{ "Lmv Stripe FID", "lustre.lmv_mds_md.stripe_fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LMV USER MD */
{ &hf_lustre_lmv_user_md_v1,
{ "LMV USER MD", "lustre.lmv_user_md_v1", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_magic,
{ "Lum Magic", "lustre.lmv_user_md_v1.magic", FT_UINT32, BASE_HEX, VALS(lustre_magic), 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_stripe_count,
{ "Lum Stripe Count", "lustre.lmv_user_md_v1.stripe_count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_stripe_offset,
{ "Lum Stripe Offset", "lustre.lmv_user_md_v1.stripe_offset", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_hash_type,
{ "Lum Hash Type", "lustre.lmv_user_md_v1.hash_type", FT_UINT32, BASE_DEC, VALS(lmv_hash_type_vals), LMV_HASH_TYPE_MASK, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_type,
{ "Lum Type", "lustre.lmv_user_md_v1.type", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_max_inherit,
{ "Lum Max Inherit Depth", "lustre.lmv_user_md_v1.max_inherit", FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_max_inherit_rr,
{ "Lum Max Inherit RR", "lustre.lmv_user_md_v1.max_inherit_rr", FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_padding,
{ "Lum padding", "lustre.lmv_user_md_v1.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_pool_name,
{ "Lum Pool Name", "lustre.lmv_user_md_v1.pool_name", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_md_v1_objects,
{ "Lum Objects", "lustre.lmv_user_md_v1.objects", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LMV USER MDS DATA */
{ &hf_lustre_lmv_user_mds_data,
{ "LMV USER MDS DATA", "lustre.lmv_user_mds_data", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lmv_user_mds_data_fid,
{ "Lum Fid", "lustre.lmv_user_mds_data.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lmv_user_mds_data_padding,
{ "Lum padding", "lustre.lmv_user_mds_data.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lmv_user_mds_data_mds,
{ "Lum Mds", "lustre.lmv_user_mds_data.mds", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL } },
/* LOV MDS MD */
{ &hf_lustre_lov_mds_md,
{ "LOV MDS MD", "lustre.lov_mds_md", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_mds_md_lmm_magic,
{ "Lmm Magic", "lustre.lov_mds_md.lmm_magic", FT_UINT32, BASE_HEX, VALS(lustre_magic), 0, NULL, HFILL }},
{ &hf_lustre_lov_mds_md_lmm_pattern,
{ "Lmm Pattern", "lustre.lov_mds_md.lmm_pattern", FT_UINT32, BASE_HEX, VALS(lov_pattern_vals), 0, NULL, HFILL }},
{ &hf_lustre_lov_mds_md_lmm_object_id,
{ "Lmm Object Id", "lustre.lov_mds_md.lmm_object_id", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_mds_md_lmm_object_seq,
{ "Lmm Object SEQ", "lustre.lov_mds_md.lmm_object_seq", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_mds_md_lmm_stripe_size,
{ "Lmm Stripe Size", "lustre.lov_mds_md.lmm_stripe_size", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_mds_md_lmm_stripe_count,
{ "Lmm Stripe Count", "lustre.lov_mds_md.lmm_stripe_count", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_mds_md_lmm_layout_gen,
{ "Lmm Layout Generation", "lustre.lov_mds_md.lmm_layout_gen", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_mds_md_lmm_pool_name,
{ "Lmm Poolname", "lustre.lov_mds_md.lmm_poolname", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL } },
/* LOV Desc */
{ &hf_lustre_lov_desc,
{ "LOV Desc", "lustre.lov_desc", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_pattern,
{ "Ld Pattern", "lustre.lov_desc.pattern", FT_UINT32, BASE_HEX, VALS(lov_pattern_vals), 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_default_stripe_count,
{ "Ld Default Stripe Count", "lustre.lov_desc.default_stripe_count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_magic,
{ "Ld Magic", "lustre.lov_desc.magic", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_tgt_count,
{ "Ld Tgt Count", "lustre.lov_desc.tgt_count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_default_stripe_size,
{ "Ld Default Stripe Size", "lustre.lov_desc.default_stripe_size", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_default_stripe_offset,
{ "Ld Default Stripe Offset", "lustre.lov_desc.default_stripe_offset", FT_INT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_qos_maxage,
{ "Ld Qos Maxage", "lustre.lov_desc.qos_maxage", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_padding,
{ "Ld Padding", "lustre.lov_desc.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lov_desc_uuid,
{ "Ld Uuid", "lustre.lov_desc.uuid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/************************************************************
* QUOTA
*/
/* QUOTA BODY */
{ &hf_lustre_quota_body,
{ "Quota Body", "lustre.quota_body", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_qb_fid,
{ "FID", "lustre.quota_body.fid", FT_NONE, BASE_NONE, NULL, 0, "FID of global index packing the pool ID", HFILL } },
{ &hf_lustre_qb_lockh,
{ "Lock H", "lustre.quota_body.lockh", FT_NONE, BASE_NONE, NULL, 0, "Per-ID lock handle", HFILL } },
{ &hf_lustre_qb_glb_lockh,
{ "Glb Lock H", "lustre.quota_body.gbl_lockh", FT_NONE, BASE_NONE, NULL, 0, "Global lock handle", HFILL } },
{ &hf_lustre_qb_padding,
{ "padding", "lustre.quota_body.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_qb_flags, /* @@ add VALS(QUOTA_DQACQ_FL_vals) */
{ "Flags", "lustre.quota_body.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_qb_count,
{ "Count", "lustre.quota_body.count", FT_UINT64, BASE_DEC, NULL, 0, "acquire/release count (kbytes/inodes)", HFILL } },
{ &hf_lustre_qb_usage,
{ "Usage", "lustre.quota_body.usage", FT_UINT64, BASE_DEC, NULL, 0, "current slave usage (kbytes/inodes)", HFILL } },
{ &hf_lustre_qb_slv_ver,
{ "Slave Ver", "lustre.quota_body.slv_ver", FT_UINT64, BASE_DEC, NULL, 0, "slave index file version", HFILL } },
/* Quota Adjust */
{ &hf_lustre_quota_adjust_qunit,
{ "obd quota adjust qunit", "lustre.quota_adjust_qunit", FT_NONE, BASE_NONE, NULL , 0 , NULL, HFILL }},
{ &hf_lustre_quota_adjust_qunit_qaq_id,
{ "Qaq Id", "lustre.quota_adjust_qunit.qaq_id", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_quota_adjust_qunit_qaq_flags,
{ "Qaq Flags", "lustre.quota_adjust_qunit.qaq_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_quota_adjust_qunit_qaq_iunit_sz,
{ "Qaq Iunit Sz", "lustre.quota_adjust_qunit.qaq_iunit_sz", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_quota_adjust_qunit_qaq_bunit_sz,
{ "Qaq Bunit Sz", "lustre.quota_adjust_qunit.qaq_bunit_sz", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_quota_adjust_qunit_padding1,
{ "Padding1", "lustre.quota_adjust_qunit.padding1", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LQUOTA ID */
{ &hf_lustre_lquota_id,
{ "LQuota ID [UNION]", "lustre.lquota_id", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_qid_fid,
{ "FID", "lustre.lquota_id.fid", FT_NONE, BASE_NONE, NULL, 0, "Directory FID", HFILL } },
{ &hf_lustre_qid_uid,
{ "UID", "lustre.lquota_id.uid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_qid_gid,
{ "GID", "lustre.lquota_id.gid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
/************************************************************
* LDLM
*/
/* LDLM EXTENT */
{ &hf_lustre_ldlm_extent_gid,
{ "Gid", "lustre.ldlm_extent.gid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_extent_start,
{ "Start", "lustre.ldlm_extent.start", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_extent_end,
{ "End", "lustre.ldlm_extent.end", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LDLM FLOCK */
{ &hf_lustre_ldlm_flock_start,
{ "Start", "lustre.ldlm_flock.start", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_flock_end,
{ "End", "lustre.ldlm_flock.end", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_flock_owner,
{ "Owner", "lustre.ldlm_flock.owner", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_flock_padding,
{ "Pid", "lustre.ldlm_flock.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_flock_pid,
{ "Pid", "lustre.ldlm_flock.pid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* LDLM Request */
{ &hf_lustre_ldlm_request,
{ "ldlm request", "lustre.ldlm_request", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL}},
{ &hf_lustre_ldlm_request_lock_handle,
{ "Lock Handle", "lustre.ldlm_request.lock_handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ldlm_request_lock_flags,
{ "Lock Flags", "lustre.ldlm_request.lock_flags", FT_UINT32, BASE_HEX, NULL, 0 , NULL, HFILL }},
{ &hf_lustre_ldlm_request_lock_count,
{ "Lock Count", "lustre.ldlm_request.lock_count", FT_UINT32, BASE_HEX_DEC, NULL, 0, NULL, HFILL }},
/* LDLM Reply */
{ &hf_lustre_ldlm_reply,
{ "LDLM Reply", "lustre.ldlm_reply", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL}},
{ &hf_lustre_ldlm_reply_lock_flags,
{ "Lock Flags", "lustre.ldlm_reply.lock_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_reply_lock_policy_res1,
{ "Lock Policy Res1", "lustre.ldlm_reply.lock_policy_res1", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_reply_lock_policy_res2,
{ "Lock Policy Res2", "lustre.ldlm_reply.lock_policy_res2", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_reply_lock_handle,
{ "Lock Handle", "lustre.ldlm_reply.lock_handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ldlm_reply_lock_padding,
{ "Lock Padding", "lustre.ldlm_reply.lock_padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LDLM INODE */
{ &hf_lustre_ldlm_inodebits_bits,
{ "Bits", "lustre.ldlm_inodebits.bits", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_inodebits_try_bits,
{ "Try Bits", "lustre.ldlm_inodebits.try_bits", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
/* LDLM Lock Desc */
{ &hf_lustre_ldlm_lock_desc,
{ "LDLM Desc", "lustre.ldlm_lock_desc", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ldlm_lock_desc_l_policy_data,
{ "L Policy Data", "lustre.ldlm_lock_desc.l_policy_data", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ldlm_lock_desc_l_granted_mode,
{ "L Granted Mode", "lustre.ldlm_lock_desc.l_granted_mode", FT_UINT32, BASE_DEC, VALS(lustre_ldlm_mode_vals), 0, NULL, HFILL }},
{ &hf_lustre_ldlm_lock_desc_l_req_mode,
{ "L Req Mode", "lustre.ldlm_lock_desc.l_req_mode", FT_UINT32, BASE_DEC, VALS(lustre_ldlm_mode_vals), 0, NULL, HFILL }},
/* LDLM Resource ID */
{ &hf_lustre_ldlm_res_id,
{ "LDLM Res ID", "lustre.ldlm_res_id", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_res_id_name,
{ "Name", "lustre.ldlm_res_id.name", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_res_id_bits,
{ "Bits", "lustre.ldlm_res_id.bits", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_res_id_string,
{ "String", "lustre.ldlm_res_id.string", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_res_id_type,
{ "Type", "lustre.ldlm_res_id.type", FT_UINT32, BASE_HEX, VALS(mgs_config_body_type_vals), 0, NULL, HFILL }},
/* LDLM Resource Desc */
{ &hf_lustre_ldlm_resource_desc,
{ "LDLM Resc Desc", "lustre.ldlm_resource_desc", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ldlm_resource_desc_lr_type,
{ "Lr Type", "lustre.ldlm_resource_desc.lr_type", FT_UINT32, BASE_DEC, VALS(lustre_ldlm_type_vals), 0, NULL, HFILL }},
{ &hf_lustre_ldlm_resource_desc_lr_padding,
{ "Lr Padding", "lustre.ldlm_resource_desc.lr_padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LDLM GL Barrier Desc */
{ &hf_lustre_ldlm_gl_barrier_desc,
{ "LDLM GL Barrier Desc", "lustre.ldlm_gl_barrier_desc", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ldlm_gl_barrier_desc_status,
{ "Status", "lustre.ldlm_gl_barrier_desc.status", FT_UINT32, BASE_HEX, VALS(lustre_barrier_status_vals), 0, NULL, HFILL }},
{ &hf_lustre_ldlm_gl_barrier_desc_timeout,
{ "Timeout", "lustre.ldlm_gl_barrier_desc.timeout", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_gl_barrier_desc_padding,
{ "Padding", "lustre.ldlm_gl_barrier_desc.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LDLM GL LQuota Desc */
{ &hf_lustre_ldlm_gl_lquota_desc,
{ "LDLM GL lQuota Desc", "lustre.ldlm_gl_lquota_desc", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_ldlm_gl_lquota_desc_flags,
{ "Flags", "lustre.ldlm_gl_lquota_desc.flags", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_gl_lquota_desc_ver,
{ "Ver", "lustre.ldlm_gl_lquota_desc.ver", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_gl_lquota_desc_hardlimit,
{ "Hardlimit", "lustre.ldlm_gl_lquota_desc.hardlimit", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_gl_lquota_desc_softlimit,
{ "Softlimit", "lustre.ldlm_gl_lquota_desc.softlimit", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_gl_lquota_desc_time,
{ "Time", "lustre.ldlm_gl_lquota_desc.time", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_gl_lquota_desc_pad2,
{ "padding", "lustre.ldlm_gl_lquota_desc.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* LDLM Intent */
/*all this flags are uint64, but I don't find the way to use something like TFS() with a Uint64*/
/*like TFS() with a Uint64 */
{ &hf_lustre_ldlm_intent_opc,
{ "intent opcode", "lustre.ldlm_intent.opc", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL}},
{ &hf_lustre_ldlm_intent_opc_open,
{ "open", "lustre.ldlm_intent.opc_open", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_OPEN, NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_creat,
{ "create", "lustre.ldlm_intent.opc_create", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_CREAT , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_readdir,
{ "readdir", "lustre.ldlm_intent.opc_readdir", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_READDIR , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_getattr,
{ "getattr", "lustre.ldlm_intent.opc_getattr", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_GETATTR, NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_lookup,
{ "lookup", "lustre.ldlm_intent.opc_lookup", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_LOOKUP , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_unlink,
{ "unlink", "lustre.ldlm_intent.opc_unlink", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_UNLINK , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_trunc,
{ "trunc", "lustre.ldlm_intent.opc_trunc", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_TRUNC , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_getxattr,
{ "getxattr", "lustre.ldlm_intent.opc_getxattr", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_GETXATTR , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_exec,
{ "exec", "lustre.ldlm_intent.opc_exec", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_EXEC , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_pin,
{ "pin", "lustre.ldlm_intent.opc_pin", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_PIN , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_layout,
{ "layout", "lustre.ldlm_intent.opc_layout", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_LAYOUT , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_q_dqacq,
{ "quota dqacq", "lustre.ldlm_intent.opc_quota_dqacq", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_QUOTA_DQACQ , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_q_conn,
{ "quota conn", "lustre.ldlm_intent.opc_quota_conn", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_QUOTA_CONN , NULL, HFILL } },
{ &hf_lustre_ldlm_intent_opc_setxattr,
{ "setxattr", "lustre.ldlm_intent.opc_setxattr", FT_BOOLEAN, 32, TFS(&lnet_flags_set_truth), IT_SETXATTR , NULL, HFILL } },
/* LDLM SET INFO */
{ &hf_lustre_ldlm_key,
{ "LDLM Set Info Key", "lustre.ldlm.key", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ldlm_val,
{ "LDLM Set Info Value", "lustre.ldlm.value", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* Barrier LVB */
{ &hf_lustre_barrier_lvb,
{ "Barrier LVB", "lustre.barrier_lvb", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_barrier_lvb_status,
{ "Lvb Status", "lustre.barrier_lvb.status", FT_UINT32, BASE_HEX, VALS(lustre_barrier_status_vals), 0, NULL, HFILL }},
{ &hf_lustre_barrier_lvb_index,
{ "Lvb Index", "lustre.barrier_lvb.index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_barrier_lvb_padding,
{ "Lvb Padding", "lustre.barrier_lvb.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/************************************************************
* MGS
*/
/* MGS Target Info */
{ &hf_lustre_mgs_target_info,
{ "MGS Target Info", "lustre.mgs_target_info", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_flags,
{ "Mti Flags", "lustre.mgs_target_info.mti_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_fsname,
{ "Mti Fsname", "lustre.mgs_target_info.mti_fsname", FT_STRINGZPAD, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_svname,
{ "Mti Svname", "lustre.mgs_target_info.mti_svname", FT_STRINGZPAD, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_config_ver,
{ "Mti Config Ver", "lustre.mgs_target_info.mti_config_ver", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_uuid,
{ "Mti Uuid", "lustre.mgs_target_info.mti_uuid", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_stripe_index,
{ "Mti Stripe Index", "lustre.mgs_target_info.mti_stripe_index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_params,
{ "Mti Params", "lustre.mgs_target_info.mti_params", FT_STRINGZPAD, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_nids,
{ "Mti Nids", "lustre.mgs_target_info.mti_nids", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_lustre_ver,
{ "Mti Lustre Ver", "lustre.mgs_target_info.mti_lustre_ver", FT_UINT32, BASE_CUSTOM, CF_FUNC(lustre_fmt_ver), 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_nid_count,
{ "Mti Nid Count", "lustre.mgs_target_info.mti_nid_count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_mti_instance,
{ "Mti Instance", "lustre.mgs_target_info.mti_instance", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_target_info_padding,
{ "Padding", "lustre.mgs_target_info.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* MGS Send Params */
{ &hf_lustre_mgs_send_param,
{ "Mgs Param", "lustre.mgs_send_param", FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL }},
/* MGS Config Body */
{ &hf_lustre_mgs_config_body,
{ "MGS Config Body", "lustre.mgs_config_body", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_config_body_name,
{ "mcb name", "lustre.mgs_config_body.name", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_config_body_offset,
{ "mcb offset", "lustre.mgs_config_body.offset", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_config_body_type,
{ "mcb type", "lustre.mgs_config_body.type", FT_UINT16, BASE_DEC, VALS(mgs_config_body_type_vals), 0, NULL, HFILL }},
{ &hf_lustre_mgs_config_body_nm_cur_pass,
{ "mcb # cur pass", "lustre.mgs_config_body.nm_cur_pass", FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_config_body_bits,
{ "mcb bit shift", "lustre.mgs_config_body.bits", FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_config_body_units,
{ "mcb units", "lustre.mgs_config_body.units", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
/* MGS Config Response */
{ &hf_lustre_mgs_config_res,
{ "mgs config res", "lustre.mgs_config_res", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_mgs_config_res_offset,
{ "mcr offset", "lustre.mgs_config_res.offset", FT_UINT64, BASE_DEC, NULL, 0, "Index of Last config log", HFILL }},
{ &hf_lustre_mgs_config_res_size,
{ "mcr size", "lustre.mgs_config_res.size", FT_UINT64, BASE_DEC_HEX, NULL, 0, "Size of Log", HFILL }},
{ &hf_lustre_mgs_config_res_nm_cur_pass,
{ "mcr # cur pass", "lustre.mgs_config_res.nm_cur_pass", FT_UINT64, BASE_DEC, NULL, 0, "Current NODEMAP config pass", HFILL }},
/************************************************************
* OUT Update
*/
/* Out Update Header */
{ &hf_lustre_out_update_header,
{ "Out Update Header", "lustre.out_update_header", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_out_update_header_magic,
{ "Ouh Magic", "lustre.out_update_header.magic", FT_UINT32, BASE_HEX, VALS(out_update_header_magic_vals), 0, NULL, HFILL }},
{ &hf_lustre_out_update_header_count,
{ "Ouh Count", "lustre.out_update_header.count", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_out_update_header_inline_length,
{ "Ouh Inline Len", "lustre.out_update_header.inline_length", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_out_update_header_reply_size,
{ "Ouh Reply Sz", "lustre.out_update_header.reply_size", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_out_update_header_inline_data,
{ "Ouh Inline Data", "lustre.out_update_header.inline_data", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* Out Update Buffer */
{ &hf_lustre_out_update_buffer,
{ "Out Update Buffer", "lustre.out_update_buffer", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_out_update_buffer_size,
{ "Oub Size", "lustre.out_update_buffer.size", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_out_update_buffer_padding,
{ "Oub padding", "lustre.out_update_buffer.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* Object Update Reply */
{ &hf_lustre_obj_update_reply,
{ "Object Update Reply", "lustre.obj_update_reply", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obj_update_reply_magic,
{ "Ourp Magic", "lustre.obj_update_reply.magic", FT_UINT32, BASE_HEX, VALS(update_reply_magic_vals), 0, NULL, HFILL }},
{ &hf_lustre_obj_update_reply_count,
{ "Ourp Count", "lustre.obj_update_reply.count", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_reply_padding,
{ "Ourp padding", "lustre.obj_update_reply.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_reply_lens,
{ "Ourp Lens", "lustre.obj_update_reply.lens", FT_UINT16, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
/* Object Update Request */
{ &hf_lustre_obj_update_request,
{ "Object Update Request", "lustre.obj_update_request", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obj_update_request_magic,
{ "Ourq Magic", "lustre.obj_update_request.magic", FT_UINT32, BASE_HEX, VALS(update_request_magic_vals), 0, NULL, HFILL }},
{ &hf_lustre_obj_update_request_count,
{ "Ourq Count", "lustre.obj_update_request.count", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_request_padding,
{ "Ourq padding", "lustre.obj_update_request.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* Object Update Result */
{ &hf_lustre_obj_update_result,
{ "Object Update Result", "lustre.obj_update_result", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obj_update_result_rc,
{ "OURes Rc", "lustre.obj_update_result.rc", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_result_datalen,
{ "OURes Data Len", "lustre.obj_update_result.datalen", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_result_padding,
{ "OURes padding", "lustre.obj_update_result.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_result_data,
{ "OURes Data", "lustre.obj_update_result.data", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* Object Update */
{ &hf_lustre_obj_update,
{ "Object Update", "lustre.obj_update", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obj_update_type,
{ "Ou Type", "lustre.obj_update.type", FT_UINT16, BASE_HEX, VALS(update_type_vals), 0, NULL, HFILL }},
{ &hf_lustre_obj_update_params_count,
{ "Ou Param Count", "lustre.obj_update.params_count", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_result_size,
{ "Ou Result Sz", "lustre.obj_update.result_size", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_flags,
{ "Ou Flags", "lustre.obj_update.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_padding,
{ "Ou padding", "lustre.obj_update.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_batchid,
{ "Ou Batch ID", "lustre.obj_update.batchid", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_fid,
{ "Ou Fid", "lustre.obj_update.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/* Object Update Param */
{ &hf_lustre_obj_update_param,
{ "Object Update Param", "lustre.obj_update_param", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obj_update_param_len,
{ "Oup Len", "lustre.obj_update_params.len", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_param_padding,
{ "Oup padding", "lustre.obj_update_params.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obj_update_param_buf,
{ "Oup Buf", "lustre.obj_update_params.buf", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
/************************************************************
* LFSCK
*/
/* Request */
{ &hf_lustre_lfsck_request,
{ "LFSCK Request", "lustre.lfsck_request", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_event,
{ "LR Event", "lustre.lfsck_request.event", FT_UINT32, BASE_DEC, VALS(lfsck_events_vals), 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_index,
{ "LR Index", "lustre.lfsck_request.index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_flags,
{ "LR Flags", "lustre.lfsck_request.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_valid,
{ "LR Valid", "lustre.lfsck_request.valid", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_speed,
{ "LR Speed", "lustre.lfsck_request.speed", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_status,
{ "LR Status", "lustre.lfsck_request.status", FT_UINT32, BASE_DEC, VALS(lfsck_status_vals), 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_version,
{ "LR Version", "lustre.lfsck_request.version", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_active,
{ "LR Active", "lustre.lfsck_request.active", FT_UINT16, BASE_HEX, VALS(lfsck_type_vals), 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_param,
{ "LR Param", "lustre.lfsck_request.param", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_async_windows,
{ "LR Async Win", "lustre.lfsck_request.async_windows", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_flags2,
{ "LR Flags2", "lustre.lfsck_request.flags2", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_fid,
{ "LR Fid", "lustre.lfsck_request.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_fid2,
{ "LR Fid2", "lustre.lfsck_request.fid2", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_comp_id,
{ "LR Comp ID", "lustre.lfsck_request.comp_id", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_request_padding,
{ "LR padding", "lustre.lfsck_request.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* Reply */
{ &hf_lustre_lfsck_reply,
{ "LFSCK Reply", "lustre.lfsck_reply", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_reply_status,
{ "LP Status", "lustre.lfsck_reply.status", FT_UINT32, BASE_DEC, VALS(lfsck_status_vals), 0, NULL, HFILL } },
{ &hf_lustre_lfsck_reply_padding,
{ "LP padding", "lustre.lfsck_reply.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lfsck_reply_repaired,
{ "LP Repaired", "lustre.lfsck_reply.repaired", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL } },
/************************************************************
* OTHER
*/
/* Cookie */
{ &hf_lustre_lustre_handle,
{ "Handle", "lustre.lustre_handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_lustre_handle_cookie,
{ "Cookie", "lustre.lustre_handle.cookie", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
/* LU FID */
{ &hf_lustre_lu_fid_f_seq,
{ "Seq", "lustre.lu_fid.f_seq", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_fid_f_oid,
{ "OID", "lustre.ll_fid.f_oid", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_lu_fid_f_ver,
{ "Version", "lustre.ll_fid.f_ver", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_oi_id,
{ "O Id", "lustre.ost_io.id", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_ost_oi_seq,
{ "O SEQ", "lustre.ost_oi.seq", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
/* OBDO */
{ &hf_lustre_obdo,
{ "OBDO", "lustre.obdo", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_valid,
{ "O Valid", "lustre.obdo.o_valid", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
/* .o_oi here */
{ &hf_lustre_obdo_o_parent_seq,
{ "O Parent SEQ", "lustre.obdo.o_parent_seq", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_size,
{ "O Size", "lustre.obdo.o_size", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_mtime,
{ "O Mtime", "lustre.obdo.o_mtime",FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obdo_o_atime,
{ "O Atime", "lustre.obdo.o_atime",FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obdo_o_ctime,
{ "O Ctime", "lustre.obdo.o_ctime", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL } },
{ &hf_lustre_obdo_o_blocks,
{ "O Blocks", "lustre.obdo.o_blocks", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_grant,
{ "O Grant", "lustre.obdo.o_grant", FT_UINT64, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_blksize,
{ "O Blksize", "lustre.obdo.o_blksize", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_mode,
{ "O Mode", "lustre.obdo.o_mode", FT_UINT32, BASE_OCT, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_uid,
{ "O Uid", "lustre.obdo.o_uid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_gid,
{ "O Gid", "lustre.obdo.o_gid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_flags,
{ "O Flags", "lustre.obdo.o_flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_nlink,
{ "O Nlink", "lustre.obdo.o_nlink", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_parent_oid,
{ "O Parent OID", "lustre.obdo.o_parent_oid", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_misc,
{ "O Misc", "lustre.obdo.o_misc", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_ioepoch,
{ "O IOEpoch", "lustre.obdo.o_ioepoch", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_stripe_idx,
{ "O Stripe Idx", "lustre.obdo.o_stripe_idx", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_parent_ver,
{ "O Parent VER", "lustre.obdo.o_parent_ver", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_handle,
{ "O Handle", "lustre.obdo.o_handle", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* .o_handle / .o_lcookie here */
{ &hf_lustre_obdo_o_padding_3,
{ "O Padding 3", "lustre.obdo.o_padding_3", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_uid_h,
{ "O Uid H", "lustre.obdo.o_uid_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_gid_h,
{ "O Gid H", "lustre.obdo.o_gid_h", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_data_version,
{ "O Data Version", "lustre.obdo.o_data_version", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_projid,
{ "O Proj ID", "lustre.obdo.o_projid", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_padding_4,
{ "O Padding 4", "lustre.obdo.o_padding_4", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_padding_5,
{ "O Padding 5", "lustre.obdo.o_padding_5", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
{ &hf_lustre_obdo_o_padding_6,
{ "O Padding 6", "lustre.obdo.o_padding_6", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }},
/* XATTR */
{ &hf_lustre_xattr_list,
{ "XATTR List", "lustre.xattr_list", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_xattr,
{ "XATTR", "lustre.xattr", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_xattr_name,
{ "xattr name", "lustre.xattr.name", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_xattr_data,
{ "xattr data", "lustre.xattr.data", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
{ &hf_lustre_xattr_size,
{ "xattr size", "lustre.xattr.size", FT_UINT32, BASE_DEC_HEX, NULL, 0, NULL, HFILL }},
/* SEQ */
{ &hf_lustre_seq_opc,
{ "Seq OPC", "lustre.seq_opc", FT_UINT32, BASE_DEC, VALS(seq_op_vals), 0, NULL, HFILL } },
{ &hf_lustre_seq_range,
{ "Seq Range", "lustre.seq_range", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_seq_range_start,
{ "Seq Range Start", "lustre.seq_range.start", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_seq_range_end,
{ "Seq Range End", "lustre.seq_range.end", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_seq_range_index,
{ "Seq Range Index", "lustre.seq_range.index", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_seq_range_flags,
{ "Seq Range Flags", "lustre.seq_range.flags", FT_UINT32, BASE_HEX, VALS(seq_range_flag_vals), 0, NULL, HFILL } },
/* FLD */
{ &hf_lustre_fld_opc,
{ "FLD OPC", "lustre.fld_opc", FT_UINT32, BASE_DEC, VALS(fld_op_vals), 0, NULL, HFILL } },
/* struct lustre_capa */
{ &hf_lustre_capa,
{ "Capability", "lustre.capa", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_capa_fid,
{ "Capa fid", "lustre.capa.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_capa_opc,
{ "Capa opc", "lustre.capa.opc", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_capa_uid,
{ "Capa uid", "lustre.capa.uid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_capa_gid,
{ "Capa gid", "lustre.capa.gid", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_capa_flags,
{ "Capa flags", "lustre.capa.flags", FT_UINT32, BASE_HEX, VALS(capa_flags_vals), 0, NULL, HFILL } },
{ &hf_lustre_capa_keyid,
{ "Capa keyid", "lustre.capa.keyid", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_capa_timeout,
{ "Capa timeout", "lustre.capa.timeout", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_capa_expiry,
{ "Capa expiry", "lustre.capa.expiry", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_capa_hmac,
{ "Capa hmac", "lustre.capa.hmac", FT_BYTES, SEP_COLON, NULL, 0, NULL, HFILL } },
/* struct idx_info */
{ &hf_lustre_idx_info,
{ "Index Info", "lustre.idx_info", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_idx_info_magic,
{ "II Magic", "lustre.idx_info.magic", FT_UINT32, BASE_HEX, VALS(lustre_magic), 0, NULL, HFILL } },
{ &hf_lustre_idx_info_flags,
{ "II Flags", "lustre.idx_info.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_idx_info_count,
{ "II Count", "lustre.idx_info.count", FT_UINT16, BASE_DEC, NULL, 0, "number of lu_idxpage (to be) transferred", HFILL } },
{ &hf_lustre_idx_info_attrs,
{ "II Attrs", "lustre.idx_info.attrs", FT_UINT32, BASE_HEX, NULL, 0, "requested attributes passed down to the iterator API", HFILL } },
{ &hf_lustre_idx_info_fid,
{ "II fid", "lustre.idx_info.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_idx_info_hash_start,
{ "II Hash Start", "lustre.idx_info.hash_start", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_idx_info_hash_end,
{ "II Hash End", "lustre.idx_info.hash_end", FT_UINT64, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_idx_info_keysize,
{ "II Key size", "lustre.idx_info.keysize", FT_UINT16, BASE_DEC, NULL, 0, "size of keys in lu_idxpages", HFILL } },
{ &hf_lustre_idx_info_recsize,
{ "II Rec size", "lustre.idx_info.recsize", FT_UINT16, BASE_DEC, NULL, 0, "size of records in lu_idxpages", HFILL } },
{ &hf_lustre_idx_info_padding,
{ "padding", "lustre.idx_info.padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* ACL */
{ &hf_lustre_acl,
{ "ACL", "lustre.acl", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* USER ITEM */
{ &hf_lustre_hsm_user_item,
{ "HSM User Item", "lustre.user_item", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_hsm_user_item_fid,
{ "HSM User Item FID", "lustre.user_item.fid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
/* Intent Layout */
{ &hf_lustre_layout_intent,
{ "Layout Intent", "lustre.layout_intent", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL } },
{ &hf_lustre_layout_intent_opc,
{ "Op Code", "lustre.layout_intent.opc", FT_UINT32, BASE_HEX, VALS(lustre_layout_intent_opc_vals), 0, NULL, HFILL } },
{ &hf_lustre_layout_intent_flags,
{ "Flags", "lustre.layout_intent.flags", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL } },
{ &hf_lustre_layout_intent_start,
{ "Start", "lustre.layout_intent.start", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_layout_intent_end,
{ "End", "lustre.layout_intent.end", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
{ &hf_lustre_eadata,
{ "EA Data", "lustre.eadata", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL}},
{ &hf_lustre_extra_padding,
{ "extra padding", "lustre.extra_padding", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL}},
{ &hf_lustre_target_uuid,
{ "Target UUID", "lustre.target_uuid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL}},
{ &hf_lustre_client_uuid,
{ "Client UUID", "lustre.client_uuid", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL}},
{ &hf_lustre_filename,
{ "filename", "lustre.filename", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_selinux_pol,
{ "SELinux Policy", "lustre.selinux_pol", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_target,
{ "target", "lustre.target", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_secctx_name,
{ "Sec Ctx Name", "lustre.secctx_name", FT_STRING, BASE_NONE, NULL , 0 , NULL, HFILL}},
{ &hf_lustre_data,
{ "data", "lustre.data", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL}},
{ &hf_lustre_name,
{ "name", "lustre.name", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL}},
};
static int *ett[] = {
&ett_lustre,
&ett_lustre_lustre_handle_cookie,
&ett_lustre_lustre_msg_v1,
&ett_lustre_lustre_handle_v1,
&ett_lustre_lustre_msg_v2,
&ett_lustre_ptlrpc_body,
&ett_lustre_lustre_handle_v2,
&ett_lustre_obd_connect_data,
&ett_lustre_lov_ost_data_v1,
&ett_lustre_obd_statfs,
&ett_lustre_obd_ioobj,
&ett_lustre_niobuf_remote,
&ett_lustre_rcs,
&ett_lustre_fid_array,
&ett_lustre_ost_lvb,
&ett_lustre_lu_fid,
&ett_lustre_obd_quotactl,
&ett_lustre_obd_dqinfo,
&ett_lustre_obd_dqblk,
&ett_lustre_quota_adjust_qunit,
&ett_lustre_mdc_swap_layouts,
&ett_lustre_mdt_body,
&ett_lustre_mdt_rec_reint,
&ett_lustre_lov_desc,
&ett_lustre_obd_uuid,
&ett_lustre_ldlm_res_id,
&ett_lustre_ldlm_extent,
&ett_lustre_ldlm_inodebits,
&ett_lustre_ldlm_flock,
&ett_lustre_ldlm_intent_opc,
&ett_lustre_ldlm_resource_desc,
&ett_lustre_ldlm_lock_desc,
&ett_lustre_ldlm_request,
&ett_lustre_lustre_handle,
&ett_lustre_ldlm_reply,
&ett_lustre_ldlm_gl_barrier_desc,
&ett_lustre_ldlm_gl_lquota_desc,
&ett_lustre_mgs_target_info,
&ett_lustre_mgs_config_body,
&ett_lustre_mgs_config_res,
&ett_lustre_cfg_marker,
&ett_lustre_llog_logid,
&ett_lustre_lmv_mds_md,
&ett_lustre_lmv_user_md_v1,
&ett_lustre_lmv_user_mds_data,
&ett_lustre_lov_mds_md,
&ett_lustre_llog_rec,
&ett_lustre_llog_rec_hdr,
&ett_lustre_llog_rec_tail,
&ett_lustre_llog_logid_rec,
&ett_lustre_llog_unlink_rec,
&ett_lustre_llog_setattr_rec,
&ett_lustre_llog_unlink64_rec,
&ett_lustre_llog_setattr64_rec,
&ett_lustre_llog_size_change_rec,
&ett_lustre_llog_gen,
&ett_lustre_llog_gen_rec,
&ett_lustre_llog_changelog_rec,
&ett_lustre_changelog_rec,
&ett_lustre_lustre_cfg,
&ett_lustre_llog_log_hdr,
&ett_lustre_llog_cookie,
&ett_lustre_llogd_body,
&ett_lustre_llogd_conn_body,
&ett_lustre_obdo,
&ett_lustre_ost_body,
&ett_lustre_ldlm_lock_flags,
&ett_lustre_llog_hdr_flags,
&ett_lustre_seq_range,
&ett_lustre_mdt_ioepoch,
&ett_lustre_capa,
&ett_lustre_idx_info,
&ett_lustre_eadata,
&ett_lustre_close_data,
&ett_lustre_acl,
&ett_lustre_ladvise_hdr,
&ett_lustre_ladvise,
&ett_lustre_hsm_current_action,
&ett_lustre_hsm_request,
&ett_lustre_hsm_archive,
&ett_lustre_hsm_user_item,
&ett_lustre_hsm_extent,
&ett_lustre_hsm_state_set,
&ett_lustre_hsm_progress,
&ett_lustre_hsm_user_state,
&ett_lustre_quota_body,
&ett_lustre_lquota_id,
&ett_lustre_layout_intent,
&ett_lustre_xattrs,
&ett_lustre_xattr_item,
&ett_lustre_ost_id,
&ett_lustre_ost_id_oi,
&ett_lustre_ost_layout,
&ett_lustre_out_update_header,
&ett_lustre_out_update_header_data,
&ett_lustre_out_update_buffer,
&ett_lustre_obj_update_reply,
&ett_lustre_obj_update_result,
&ett_lustre_object_update_request,
&ett_lustre_object_update,
&ett_lustre_object_update_param,
&ett_lustre_lfsck_request,
&ett_lustre_lfsck_reply,
&ett_lustre_barrier_lvb,
};
/* Setup protocol expert items */
expert_module_t *expert_lustre;
static ei_register_info ei[] = {
{ &ei_lustre_buflen,
{ "lustre.bad_buflen", PI_MALFORMED, PI_ERROR, "Buffer length mis-match", EXPFILL } },
{ &ei_lustre_badopc,
{ "lustre.bad_opcode", PI_PROTOCOL, PI_WARN, "BAD OPCODE", EXPFILL } },
{ &ei_lustre_badmagic,
{ "lustre.bad_magic", PI_PROTOCOL, PI_WARN, "BAD Magic Value", EXPFILL } },
{ &ei_lustre_obsopc,
{ "lustre.old_opcode", PI_DEPRECATED, PI_NOTE, "Deprecated Opcode", EXPFILL } },
};
proto_lustre = proto_register_protocol("Lustre", "lustre", "lustre");
proto_register_field_array(proto_lustre, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
expert_lustre = expert_register_protocol(proto_lustre);
expert_register_field_array(expert_lustre, ei, array_length(ei));
lustre_handle = register_dissector("lustre", dissect_lustre, proto_lustre);
}
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*
* Local variables:
* c-basic-offset: 4
* tab-width: 8
* indent-tabs-mode: nil
* End:
*
* vi: set shiftwidth=4 tabstop=8 expandtab:
* :indentSize=4:tabSize=8:noTabs=true:
*/
|