libbtrfs 0.0.30

Rust library for working with the btrfs filesystem
Documentation
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
/* automatically generated by rust-bindgen 0.72.1 */

/* bindings generated from Linux Kernel 7.1.3 */

#![allow(dead_code, non_camel_case_types, non_upper_case_globals)]

#[cfg(not(target_pointer_width = "32"))]
compile_error!("Requires 32 bit architecture");

#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::std::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
pub const BTRFS_IOCTL_MAGIC: u32 = 148;
pub const BTRFS_VOL_NAME_MAX: usize = 255;
pub const BTRFS_LABEL_SIZE: usize = 256;
pub const BTRFS_PATH_NAME_MAX: usize = 4087;
pub const BTRFS_DEVICE_PATH_NAME_MAX: usize = 1024;
pub const BTRFS_SUBVOL_NAME_MAX: u64 = 4039;
pub const BTRFS_SUBVOL_CREATE_ASYNC: u64 = 1;
pub const BTRFS_SUBVOL_RDONLY: u64 = 2;
pub const BTRFS_SUBVOL_QGROUP_INHERIT: u64 = 4;
pub const BTRFS_DEVICE_SPEC_BY_ID: u64 = 8;
pub const BTRFS_SUBVOL_SPEC_BY_ID: u64 = 16;
pub const BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED: u64 = 30;
pub const BTRFS_FSID_SIZE: usize = 16;
pub const BTRFS_UUID_SIZE: usize = 16;
pub const BTRFS_UUID_UNPARSED_SIZE: usize = 37;
pub const BTRFS_QGROUP_LIMIT_MAX_RFER: u64 = 1;
pub const BTRFS_QGROUP_LIMIT_MAX_EXCL: u64 = 2;
pub const BTRFS_QGROUP_LIMIT_RSV_RFER: u64 = 4;
pub const BTRFS_QGROUP_LIMIT_RSV_EXCL: u64 = 8;
pub const BTRFS_QGROUP_LIMIT_RFER_CMPR: u64 = 16;
pub const BTRFS_QGROUP_LIMIT_EXCL_CMPR: u64 = 32;
pub const BTRFS_QGROUP_INHERIT_SET_LIMITS: u64 = 1;
pub const BTRFS_QGROUP_INHERIT_FLAGS_SUPP: u64 = 1;
pub const BTRFS_DEVICE_REMOVE_ARGS_MASK: u64 = 8;
pub const BTRFS_SUBVOL_CREATE_ARGS_MASK: u64 = 6;
pub const BTRFS_SUBVOL_DELETE_ARGS_MASK: u64 = 16;
pub const BTRFS_SCRUB_READONLY: u64 = 1;
pub const BTRFS_SCRUB_SUPPORTED_FLAGS: u64 = 1;
pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u64 = 0;
pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID: u64 = 1;
pub const BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED: u64 = 0;
pub const BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED: u64 = 1;
pub const BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED: u64 = 2;
pub const BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED: u64 = 3;
pub const BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED: u64 = 4;
pub const BTRFS_IOCTL_DEV_REPLACE_CMD_START: u64 = 0;
pub const BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS: u64 = 1;
pub const BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL: u64 = 2;
pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR: u64 = 0;
pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED: u64 = 1;
pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED: u64 = 2;
pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS: u64 = 3;
pub const BTRFS_FS_INFO_FLAG_CSUM_INFO: u64 = 1;
pub const BTRFS_FS_INFO_FLAG_GENERATION: u64 = 2;
pub const BTRFS_FS_INFO_FLAG_METADATA_UUID: u64 = 4;
pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE: u64 = 1;
pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID: u64 = 2;
pub const BTRFS_FEATURE_COMPAT_RO_VERITY: u64 = 4;
pub const BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE: u64 = 8;
pub const BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF: u64 = 1;
pub const BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL: u64 = 2;
pub const BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS: u64 = 4;
pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO: u64 = 8;
pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD: u64 = 16;
pub const BTRFS_FEATURE_INCOMPAT_BIG_METADATA: u64 = 32;
pub const BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF: u64 = 64;
pub const BTRFS_FEATURE_INCOMPAT_RAID56: u64 = 128;
pub const BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA: u64 = 256;
pub const BTRFS_FEATURE_INCOMPAT_NO_HOLES: u64 = 512;
pub const BTRFS_FEATURE_INCOMPAT_METADATA_UUID: u64 = 1024;
pub const BTRFS_FEATURE_INCOMPAT_RAID1C34: u64 = 2048;
pub const BTRFS_FEATURE_INCOMPAT_ZONED: u64 = 4096;
pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u64 = 8192;
pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u64 = 16384;
pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u64 = 65536;
pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u64 = 131072;
pub const BTRFS_BALANCE_CTL_PAUSE: u64 = 1;
pub const BTRFS_BALANCE_CTL_CANCEL: u64 = 2;
pub const BTRFS_BALANCE_DATA: u64 = 1;
pub const BTRFS_BALANCE_SYSTEM: u64 = 2;
pub const BTRFS_BALANCE_METADATA: u64 = 4;
pub const BTRFS_BALANCE_TYPE_MASK: u64 = 7;
pub const BTRFS_BALANCE_FORCE: u64 = 8;
pub const BTRFS_BALANCE_RESUME: u64 = 16;
pub const BTRFS_BALANCE_ARGS_PROFILES: u64 = 1;
pub const BTRFS_BALANCE_ARGS_USAGE: u64 = 2;
pub const BTRFS_BALANCE_ARGS_DEVID: u64 = 4;
pub const BTRFS_BALANCE_ARGS_DRANGE: u64 = 8;
pub const BTRFS_BALANCE_ARGS_VRANGE: u64 = 16;
pub const BTRFS_BALANCE_ARGS_LIMIT: u64 = 32;
pub const BTRFS_BALANCE_ARGS_LIMIT_RANGE: u64 = 64;
pub const BTRFS_BALANCE_ARGS_STRIPES_RANGE: u64 = 128;
pub const BTRFS_BALANCE_ARGS_USAGE_RANGE: u64 = 1024;
pub const BTRFS_BALANCE_ARGS_MASK: u64 = 1279;
pub const BTRFS_BALANCE_ARGS_CONVERT: u64 = 256;
pub const BTRFS_BALANCE_ARGS_SOFT: u64 = 512;
pub const BTRFS_BALANCE_STATE_RUNNING: u64 = 1;
pub const BTRFS_BALANCE_STATE_PAUSE_REQ: u64 = 2;
pub const BTRFS_BALANCE_STATE_CANCEL_REQ: u64 = 4;
pub const BTRFS_INO_LOOKUP_PATH_MAX: u64 = 4080;
pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u64 = 3824;
pub const BTRFS_DEFRAG_RANGE_COMPRESS: u64 = 1;
pub const BTRFS_DEFRAG_RANGE_START_IO: u64 = 2;
pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u64 = 4;
pub const BTRFS_DEFRAG_RANGE_NOCOMPRESS: u64 = 8;
pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u64 = 15;
pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1;
pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u64 = 1;
pub const BTRFS_DEV_STATS_RESET: u64 = 1;
pub const BTRFS_QUOTA_CTL_ENABLE: u64 = 1;
pub const BTRFS_QUOTA_CTL_DISABLE: u64 = 2;
pub const BTRFS_QUOTA_CTL_RESCAN__NOTUSED: u64 = 3;
pub const BTRFS_QUOTA_CTL_ENABLE_SIMPLE_QUOTA: u64 = 4;
pub const BTRFS_SEND_FLAG_NO_FILE_DATA: u64 = 1;
pub const BTRFS_SEND_FLAG_OMIT_STREAM_HEADER: u64 = 2;
pub const BTRFS_SEND_FLAG_OMIT_END_CMD: u64 = 4;
pub const BTRFS_SEND_FLAG_VERSION: u64 = 8;
pub const BTRFS_SEND_FLAG_COMPRESSED: u64 = 16;
pub const BTRFS_SEND_FLAG_MASK: u64 = 31;
pub const BTRFS_MAX_ROOTREF_BUFFER_NUM: u64 = 255;
pub const BTRFS_ENCODED_IO_COMPRESSION_NONE: u32 = 0;
pub const BTRFS_ENCODED_IO_COMPRESSION_ZLIB: u32 = 1;
pub const BTRFS_ENCODED_IO_COMPRESSION_ZSTD: u32 = 2;
pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_4K: u32 = 3;
pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_8K: u32 = 4;
pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_16K: u32 = 5;
pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_32K: u32 = 6;
pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7;
pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8;
pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0;
pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1;
pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0;
pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1;
pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2;
pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3;
pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4;
pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u64 = 0;
pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u64 = 1;
pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u64 = 2;
pub const BTRFS_SHUTDOWN_FLAGS_LAST: u64 = 3;
pub const BTRFS_MAGIC: u64 = 5575266562640200287;
pub const BTRFS_MAX_LEVEL: u64 = 8;
pub const BTRFS_NAME_LEN: u64 = 255;
pub const BTRFS_LINK_MAX: u64 = 65535;
pub const BTRFS_ROOT_TREE_OBJECTID: u64 = 1;
pub const BTRFS_EXTENT_TREE_OBJECTID: u64 = 2;
pub const BTRFS_CHUNK_TREE_OBJECTID: u64 = 3;
pub const BTRFS_DEV_TREE_OBJECTID: u64 = 4;
pub const BTRFS_FS_TREE_OBJECTID: u64 = 5;
pub const BTRFS_ROOT_TREE_DIR_OBJECTID: u64 = 6;
pub const BTRFS_CSUM_TREE_OBJECTID: u64 = 7;
pub const BTRFS_QUOTA_TREE_OBJECTID: u64 = 8;
pub const BTRFS_UUID_TREE_OBJECTID: u64 = 9;
pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u64 = 10;
pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u64 = 11;
pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u64 = 12;
pub const BTRFS_REMAP_TREE_OBJECTID: u64 = 13;
pub const BTRFS_DEV_STATS_OBJECTID: u64 = 0;
pub const BTRFS_BALANCE_OBJECTID: u64 = 18446744073709551612;
pub const BTRFS_ORPHAN_OBJECTID: u64 = 18446744073709551611;
pub const BTRFS_TREE_LOG_OBJECTID: u64 = 18446744073709551610;
pub const BTRFS_TREE_LOG_FIXUP_OBJECTID: u64 = 18446744073709551609;
pub const BTRFS_TREE_RELOC_OBJECTID: u64 = 18446744073709551608;
pub const BTRFS_DATA_RELOC_TREE_OBJECTID: u64 = 18446744073709551607;
pub const BTRFS_EXTENT_CSUM_OBJECTID: u64 = 18446744073709551606;
pub const BTRFS_FREE_SPACE_OBJECTID: u64 = 18446744073709551605;
pub const BTRFS_FREE_INO_OBJECTID: u64 = 18446744073709551604;
pub const BTRFS_MULTIPLE_OBJECTIDS: u64 = 18446744073709551361;
pub const BTRFS_FIRST_FREE_OBJECTID: u64 = 256;
pub const BTRFS_LAST_FREE_OBJECTID: u64 = 18446744073709551360;
pub const BTRFS_FIRST_CHUNK_TREE_OBJECTID: u64 = 256;
pub const BTRFS_DEV_ITEMS_OBJECTID: u64 = 1;
pub const BTRFS_BTREE_INODE_OBJECTID: u64 = 1;
pub const BTRFS_EMPTY_SUBVOL_DIR_OBJECTID: u64 = 2;
pub const BTRFS_DEV_REPLACE_DEVID: u64 = 0;
pub const BTRFS_INODE_ITEM_KEY: u32 = 1;
pub const BTRFS_INODE_REF_KEY: u32 = 12;
pub const BTRFS_INODE_EXTREF_KEY: u32 = 13;
pub const BTRFS_XATTR_ITEM_KEY: u32 = 24;
pub const BTRFS_VERITY_DESC_ITEM_KEY: u32 = 36;
pub const BTRFS_VERITY_MERKLE_ITEM_KEY: u32 = 37;
pub const BTRFS_ORPHAN_ITEM_KEY: u32 = 48;
pub const BTRFS_DIR_LOG_ITEM_KEY: u32 = 60;
pub const BTRFS_DIR_LOG_INDEX_KEY: u32 = 72;
pub const BTRFS_DIR_ITEM_KEY: u32 = 84;
pub const BTRFS_DIR_INDEX_KEY: u32 = 96;
pub const BTRFS_EXTENT_DATA_KEY: u32 = 108;
pub const BTRFS_EXTENT_CSUM_KEY: u32 = 128;
pub const BTRFS_ROOT_ITEM_KEY: u32 = 132;
pub const BTRFS_ROOT_BACKREF_KEY: u32 = 144;
pub const BTRFS_ROOT_REF_KEY: u32 = 156;
pub const BTRFS_EXTENT_ITEM_KEY: u32 = 168;
pub const BTRFS_METADATA_ITEM_KEY: u32 = 169;
pub const BTRFS_EXTENT_OWNER_REF_KEY: u32 = 172;
pub const BTRFS_TREE_BLOCK_REF_KEY: u32 = 176;
pub const BTRFS_EXTENT_DATA_REF_KEY: u32 = 178;
pub const BTRFS_SHARED_BLOCK_REF_KEY: u32 = 182;
pub const BTRFS_SHARED_DATA_REF_KEY: u32 = 184;
pub const BTRFS_BLOCK_GROUP_ITEM_KEY: u32 = 192;
pub const BTRFS_FREE_SPACE_INFO_KEY: u32 = 198;
pub const BTRFS_FREE_SPACE_EXTENT_KEY: u32 = 199;
pub const BTRFS_FREE_SPACE_BITMAP_KEY: u32 = 200;
pub const BTRFS_DEV_EXTENT_KEY: u32 = 204;
pub const BTRFS_DEV_ITEM_KEY: u32 = 216;
pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228;
pub const BTRFS_RAID_STRIPE_KEY: u32 = 230;
pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234;
pub const BTRFS_REMAP_KEY: u32 = 235;
pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236;
pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240;
pub const BTRFS_QGROUP_INFO_KEY: u32 = 242;
pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244;
pub const BTRFS_QGROUP_RELATION_KEY: u32 = 246;
pub const BTRFS_BALANCE_ITEM_KEY: u32 = 248;
pub const BTRFS_TEMPORARY_ITEM_KEY: u32 = 248;
pub const BTRFS_DEV_STATS_KEY: u32 = 249;
pub const BTRFS_PERSISTENT_ITEM_KEY: u32 = 249;
pub const BTRFS_DEV_REPLACE_KEY: u32 = 250;
pub const BTRFS_UUID_KEY_SUBVOL: u64 = 251;
pub const BTRFS_UUID_KEY_RECEIVED_SUBVOL: u64 = 252;
pub const BTRFS_STRING_ITEM_KEY: u32 = 253;
pub const BTRFS_MAX_METADATA_BLOCKSIZE: u32 = 65536;
pub const BTRFS_CSUM_SIZE: u32 = 32;
pub const BTRFS_FT_UNKNOWN: u8 = 0;
pub const BTRFS_FT_REG_FILE: u8 = 1;
pub const BTRFS_FT_DIR: u8 = 2;
pub const BTRFS_FT_CHRDEV: u8 = 3;
pub const BTRFS_FT_BLKDEV: u8 = 4;
pub const BTRFS_FT_FIFO: u8 = 5;
pub const BTRFS_FT_SOCK: u8 = 6;
pub const BTRFS_FT_SYMLINK: u8 = 7;
pub const BTRFS_FT_XATTR: u8 = 8;
pub const BTRFS_FT_MAX: u8 = 9;
pub const BTRFS_FT_ENCRYPTED: u8 = 128;
pub const BTRFS_INODE_NODATASUM: u64 = 1;
pub const BTRFS_INODE_NODATACOW: u64 = 2;
pub const BTRFS_INODE_READONLY: u64 = 4;
pub const BTRFS_INODE_NOCOMPRESS: u64 = 8;
pub const BTRFS_INODE_PREALLOC: u64 = 16;
pub const BTRFS_INODE_SYNC: u64 = 32;
pub const BTRFS_INODE_IMMUTABLE: u64 = 64;
pub const BTRFS_INODE_APPEND: u64 = 128;
pub const BTRFS_INODE_NODUMP: u64 = 256;
pub const BTRFS_INODE_NOATIME: u64 = 512;
pub const BTRFS_INODE_DIRSYNC: u64 = 1024;
pub const BTRFS_INODE_COMPRESS: u64 = 2048;
pub const BTRFS_INODE_ROOT_ITEM_INIT: u64 = 2147483648;
pub const BTRFS_INODE_FLAG_MASK: u64 = 2147487743;
pub const BTRFS_INODE_RO_VERITY: u64 = 1;
pub const BTRFS_INODE_RO_FLAG_MASK: u64 = 1;
pub const BTRFS_SYSTEM_CHUNK_ARRAY_SIZE: u64 = 2048;
pub const BTRFS_NUM_BACKUP_ROOTS: u64 = 4;
pub const BTRFS_FREE_SPACE_EXTENT: u64 = 1;
pub const BTRFS_FREE_SPACE_BITMAP: u64 = 2;
pub const BTRFS_HEADER_FLAG_WRITTEN: u64 = 1;
pub const BTRFS_HEADER_FLAG_RELOC: u64 = 2;
pub const BTRFS_SUPER_FLAG_ERROR: u64 = 4;
pub const BTRFS_SUPER_FLAG_SEEDING: u64 = 4294967296;
pub const BTRFS_SUPER_FLAG_METADUMP: u64 = 8589934592;
pub const BTRFS_SUPER_FLAG_METADUMP_V2: u64 = 17179869184;
pub const BTRFS_SUPER_FLAG_CHANGING_FSID: u64 = 34359738368;
pub const BTRFS_SUPER_FLAG_CHANGING_FSID_V2: u64 = 68719476736;
pub const BTRFS_SUPER_FLAG_CHANGING_BG_TREE: u64 = 274877906944;
pub const BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM: u64 = 549755813888;
pub const BTRFS_SUPER_FLAG_CHANGING_META_CSUM: u64 = 1099511627776;
pub const BTRFS_EXTENT_FLAG_DATA: u64 = 1;
pub const BTRFS_EXTENT_FLAG_TREE_BLOCK: u64 = 2;
pub const BTRFS_BLOCK_FLAG_FULL_BACKREF: u64 = 256;
pub const BTRFS_BACKREF_REV_MAX: u64 = 256;
pub const BTRFS_BACKREF_REV_SHIFT: u64 = 56;
pub const BTRFS_OLD_BACKREF_REV: u64 = 0;
pub const BTRFS_MIXED_BACKREF_REV: u64 = 1;
pub const BTRFS_EXTENT_FLAG_SUPER: u64 = 281474976710656;
pub const BTRFS_ROOT_SUBVOL_RDONLY: u64 = 1;
pub const BTRFS_ROOT_SUBVOL_DEAD: u64 = 281474976710656;
pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u64 = 0;
pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID: u64 = 1;
pub const BTRFS_BLOCK_GROUP_DATA: u64 = 1;
pub const BTRFS_BLOCK_GROUP_SYSTEM: u64 = 2;
pub const BTRFS_BLOCK_GROUP_METADATA: u64 = 4;
pub const BTRFS_BLOCK_GROUP_RAID0: u64 = 8;
pub const BTRFS_BLOCK_GROUP_RAID1: u64 = 16;
pub const BTRFS_BLOCK_GROUP_DUP: u64 = 32;
pub const BTRFS_BLOCK_GROUP_RAID10: u64 = 64;
pub const BTRFS_BLOCK_GROUP_RAID5: u64 = 128;
pub const BTRFS_BLOCK_GROUP_RAID6: u64 = 256;
pub const BTRFS_BLOCK_GROUP_RAID1C3: u64 = 512;
pub const BTRFS_BLOCK_GROUP_RAID1C4: u64 = 1024;
pub const BTRFS_BLOCK_GROUP_REMAPPED: u64 = 2048;
pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u64 = 4096;
pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u64 = 4103;
pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u64 = 2040;
pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u64 = 384;
pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u64 = 1552;
pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656;
pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312;
pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696;
pub const BTRFS_FREE_SPACE_USING_BITMAPS: u64 = 1;
pub const BTRFS_FREE_SPACE_FLAGS_MASK: u64 = 1;
pub const BTRFS_QGROUP_LEVEL_SHIFT: u64 = 48;
pub const BTRFS_QGROUP_STATUS_FLAG_ON: u64 = 1;
pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u64 = 2;
pub const BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT: u64 = 4;
pub const BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE: u64 = 8;
pub const BTRFS_QGROUP_STATUS_FLAGS_MASK: u64 = 15;
pub const BTRFS_QGROUP_STATUS_VERSION: u64 = 1;
pub type __s8 = ::std::os::raw::c_schar;
pub type __u8 = ::std::os::raw::c_uchar;
pub type __u16 = ::std::os::raw::c_ushort;
pub type __s32 = ::std::os::raw::c_int;
pub type __u32 = ::std::os::raw::c_uint;
pub type __s64 = ::std::os::raw::c_longlong;
pub type __u64 = ::std::os::raw::c_ulonglong;
pub type __le16 = __u16;
pub type __le32 = __u32;
pub type __le64 = __u64;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_vol_args {
    pub fd: __s64,
    pub name: [::std::os::raw::c_char; 4088usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_vol_args"][::std::mem::size_of::<btrfs_ioctl_vol_args>() - 4096usize];
    ["Alignment of btrfs_ioctl_vol_args"][::std::mem::align_of::<btrfs_ioctl_vol_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_vol_args::fd"]
        [::std::mem::offset_of!(btrfs_ioctl_vol_args, fd) - 0usize];
    ["Offset of field: btrfs_ioctl_vol_args::name"]
        [::std::mem::offset_of!(btrfs_ioctl_vol_args, name) - 8usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_qgroup_limit {
    pub flags: __u64,
    pub max_rfer: __u64,
    pub max_excl: __u64,
    pub rsv_rfer: __u64,
    pub rsv_excl: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_qgroup_limit"][::std::mem::size_of::<btrfs_qgroup_limit>() - 40usize];
    ["Alignment of btrfs_qgroup_limit"][::std::mem::align_of::<btrfs_qgroup_limit>() - 4usize];
    ["Offset of field: btrfs_qgroup_limit::flags"]
        [::std::mem::offset_of!(btrfs_qgroup_limit, flags) - 0usize];
    ["Offset of field: btrfs_qgroup_limit::max_rfer"]
        [::std::mem::offset_of!(btrfs_qgroup_limit, max_rfer) - 8usize];
    ["Offset of field: btrfs_qgroup_limit::max_excl"]
        [::std::mem::offset_of!(btrfs_qgroup_limit, max_excl) - 16usize];
    ["Offset of field: btrfs_qgroup_limit::rsv_rfer"]
        [::std::mem::offset_of!(btrfs_qgroup_limit, rsv_rfer) - 24usize];
    ["Offset of field: btrfs_qgroup_limit::rsv_excl"]
        [::std::mem::offset_of!(btrfs_qgroup_limit, rsv_excl) - 32usize];
};
#[repr(C)]
pub struct btrfs_qgroup_inherit {
    pub flags: __u64,
    pub num_qgroups: __u64,
    pub num_ref_copies: __u64,
    pub num_excl_copies: __u64,
    pub lim: btrfs_qgroup_limit,
    pub qgroups: __IncompleteArrayField<__u64>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_qgroup_inherit"][::std::mem::size_of::<btrfs_qgroup_inherit>() - 72usize];
    ["Alignment of btrfs_qgroup_inherit"][::std::mem::align_of::<btrfs_qgroup_inherit>() - 4usize];
    ["Offset of field: btrfs_qgroup_inherit::flags"]
        [::std::mem::offset_of!(btrfs_qgroup_inherit, flags) - 0usize];
    ["Offset of field: btrfs_qgroup_inherit::num_qgroups"]
        [::std::mem::offset_of!(btrfs_qgroup_inherit, num_qgroups) - 8usize];
    ["Offset of field: btrfs_qgroup_inherit::num_ref_copies"]
        [::std::mem::offset_of!(btrfs_qgroup_inherit, num_ref_copies) - 16usize];
    ["Offset of field: btrfs_qgroup_inherit::num_excl_copies"]
        [::std::mem::offset_of!(btrfs_qgroup_inherit, num_excl_copies) - 24usize];
    ["Offset of field: btrfs_qgroup_inherit::lim"]
        [::std::mem::offset_of!(btrfs_qgroup_inherit, lim) - 32usize];
    ["Offset of field: btrfs_qgroup_inherit::qgroups"]
        [::std::mem::offset_of!(btrfs_qgroup_inherit, qgroups) - 72usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_qgroup_limit_args {
    pub qgroupid: __u64,
    pub lim: btrfs_qgroup_limit,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_qgroup_limit_args"]
        [::std::mem::size_of::<btrfs_ioctl_qgroup_limit_args>() - 48usize];
    ["Alignment of btrfs_ioctl_qgroup_limit_args"]
        [::std::mem::align_of::<btrfs_ioctl_qgroup_limit_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_qgroup_limit_args::qgroupid"]
        [::std::mem::offset_of!(btrfs_ioctl_qgroup_limit_args, qgroupid) - 0usize];
    ["Offset of field: btrfs_ioctl_qgroup_limit_args::lim"]
        [::std::mem::offset_of!(btrfs_ioctl_qgroup_limit_args, lim) - 8usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_vol_args_v2 {
    pub fd: __s64,
    pub transid: __u64,
    pub flags: __u64,
    pub inner1: vol_args_v2_qgroup,
    pub inner2: vol_args_v2_volume,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vol_args_v2_qgroup {
    pub inner1: vol_args_v2_qgroup_opts,
    pub unused: [__u64; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vol_args_v2_qgroup_opts {
    pub size: __u64,
    pub qgroup_inherit: *mut btrfs_qgroup_inherit,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of vol_args_v2_qgroup_opts"]
        [::std::mem::size_of::<vol_args_v2_qgroup_opts>() - 12usize];
    ["Alignment of vol_args_v2_qgroup_opts"]
        [::std::mem::align_of::<vol_args_v2_qgroup_opts>() - 4usize];
    ["Offset of field: vol_args_v2_qgroup_opts::size"]
        [::std::mem::offset_of!(vol_args_v2_qgroup_opts, size) - 0usize];
    ["Offset of field: vol_args_v2_qgroup_opts::qgroup_inherit"]
        [::std::mem::offset_of!(vol_args_v2_qgroup_opts, qgroup_inherit) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of vol_args_v2_qgroup"][::std::mem::size_of::<vol_args_v2_qgroup>() - 32usize];
    ["Alignment of vol_args_v2_qgroup"][::std::mem::align_of::<vol_args_v2_qgroup>() - 4usize];
    ["Offset of field: vol_args_v2_qgroup::unused"]
        [::std::mem::offset_of!(vol_args_v2_qgroup, unused) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union vol_args_v2_volume {
    pub name: [::std::os::raw::c_char; 4040usize],
    pub devid: __u64,
    pub subvolid: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of vol_args_v2_volume"][::std::mem::size_of::<vol_args_v2_volume>() - 4040usize];
    ["Alignment of vol_args_v2_volume"][::std::mem::align_of::<vol_args_v2_volume>() - 4usize];
    ["Offset of field: vol_args_v2_volume::name"]
        [::std::mem::offset_of!(vol_args_v2_volume, name) - 0usize];
    ["Offset of field: vol_args_v2_volume::devid"]
        [::std::mem::offset_of!(vol_args_v2_volume, devid) - 0usize];
    ["Offset of field: vol_args_v2_volume::subvolid"]
        [::std::mem::offset_of!(vol_args_v2_volume, subvolid) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_vol_args_v2"]
        [::std::mem::size_of::<btrfs_ioctl_vol_args_v2>() - 4096usize];
    ["Alignment of btrfs_ioctl_vol_args_v2"]
        [::std::mem::align_of::<btrfs_ioctl_vol_args_v2>() - 4usize];
    ["Offset of field: btrfs_ioctl_vol_args_v2::fd"]
        [::std::mem::offset_of!(btrfs_ioctl_vol_args_v2, fd) - 0usize];
    ["Offset of field: btrfs_ioctl_vol_args_v2::transid"]
        [::std::mem::offset_of!(btrfs_ioctl_vol_args_v2, transid) - 8usize];
    ["Offset of field: btrfs_ioctl_vol_args_v2::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_vol_args_v2, flags) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_scrub_progress {
    pub data_extents_scrubbed: __u64,
    pub tree_extents_scrubbed: __u64,
    pub data_bytes_scrubbed: __u64,
    pub tree_bytes_scrubbed: __u64,
    pub read_errors: __u64,
    pub csum_errors: __u64,
    pub verify_errors: __u64,
    pub no_csum: __u64,
    pub csum_discards: __u64,
    pub super_errors: __u64,
    pub malloc_errors: __u64,
    pub uncorrectable_errors: __u64,
    pub corrected_errors: __u64,
    pub last_physical: __u64,
    pub unverified_errors: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_scrub_progress"][::std::mem::size_of::<btrfs_scrub_progress>() - 120usize];
    ["Alignment of btrfs_scrub_progress"][::std::mem::align_of::<btrfs_scrub_progress>() - 4usize];
    ["Offset of field: btrfs_scrub_progress::data_extents_scrubbed"]
        [::std::mem::offset_of!(btrfs_scrub_progress, data_extents_scrubbed) - 0usize];
    ["Offset of field: btrfs_scrub_progress::tree_extents_scrubbed"]
        [::std::mem::offset_of!(btrfs_scrub_progress, tree_extents_scrubbed) - 8usize];
    ["Offset of field: btrfs_scrub_progress::data_bytes_scrubbed"]
        [::std::mem::offset_of!(btrfs_scrub_progress, data_bytes_scrubbed) - 16usize];
    ["Offset of field: btrfs_scrub_progress::tree_bytes_scrubbed"]
        [::std::mem::offset_of!(btrfs_scrub_progress, tree_bytes_scrubbed) - 24usize];
    ["Offset of field: btrfs_scrub_progress::read_errors"]
        [::std::mem::offset_of!(btrfs_scrub_progress, read_errors) - 32usize];
    ["Offset of field: btrfs_scrub_progress::csum_errors"]
        [::std::mem::offset_of!(btrfs_scrub_progress, csum_errors) - 40usize];
    ["Offset of field: btrfs_scrub_progress::verify_errors"]
        [::std::mem::offset_of!(btrfs_scrub_progress, verify_errors) - 48usize];
    ["Offset of field: btrfs_scrub_progress::no_csum"]
        [::std::mem::offset_of!(btrfs_scrub_progress, no_csum) - 56usize];
    ["Offset of field: btrfs_scrub_progress::csum_discards"]
        [::std::mem::offset_of!(btrfs_scrub_progress, csum_discards) - 64usize];
    ["Offset of field: btrfs_scrub_progress::super_errors"]
        [::std::mem::offset_of!(btrfs_scrub_progress, super_errors) - 72usize];
    ["Offset of field: btrfs_scrub_progress::malloc_errors"]
        [::std::mem::offset_of!(btrfs_scrub_progress, malloc_errors) - 80usize];
    ["Offset of field: btrfs_scrub_progress::uncorrectable_errors"]
        [::std::mem::offset_of!(btrfs_scrub_progress, uncorrectable_errors) - 88usize];
    ["Offset of field: btrfs_scrub_progress::corrected_errors"]
        [::std::mem::offset_of!(btrfs_scrub_progress, corrected_errors) - 96usize];
    ["Offset of field: btrfs_scrub_progress::last_physical"]
        [::std::mem::offset_of!(btrfs_scrub_progress, last_physical) - 104usize];
    ["Offset of field: btrfs_scrub_progress::unverified_errors"]
        [::std::mem::offset_of!(btrfs_scrub_progress, unverified_errors) - 112usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_scrub_args {
    pub devid: __u64,
    pub start: __u64,
    pub end: __u64,
    pub flags: __u64,
    pub progress: btrfs_scrub_progress,
    pub unused: [__u64; 109usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_scrub_args"]
        [::std::mem::size_of::<btrfs_ioctl_scrub_args>() - 1024usize];
    ["Alignment of btrfs_ioctl_scrub_args"]
        [::std::mem::align_of::<btrfs_ioctl_scrub_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_scrub_args::devid"]
        [::std::mem::offset_of!(btrfs_ioctl_scrub_args, devid) - 0usize];
    ["Offset of field: btrfs_ioctl_scrub_args::start"]
        [::std::mem::offset_of!(btrfs_ioctl_scrub_args, start) - 8usize];
    ["Offset of field: btrfs_ioctl_scrub_args::end"]
        [::std::mem::offset_of!(btrfs_ioctl_scrub_args, end) - 16usize];
    ["Offset of field: btrfs_ioctl_scrub_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_scrub_args, flags) - 24usize];
    ["Offset of field: btrfs_ioctl_scrub_args::progress"]
        [::std::mem::offset_of!(btrfs_ioctl_scrub_args, progress) - 32usize];
    ["Offset of field: btrfs_ioctl_scrub_args::unused"]
        [::std::mem::offset_of!(btrfs_ioctl_scrub_args, unused) - 152usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_dev_replace_start_params {
    pub srcdevid: __u64,
    pub cont_reading_from_srcdev_mode: __u64,
    pub srcdev_name: [__u8; 1025usize],
    pub tgtdev_name: [__u8; 1025usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_dev_replace_start_params"]
        [::std::mem::size_of::<btrfs_ioctl_dev_replace_start_params>() - 2068usize];
    ["Alignment of btrfs_ioctl_dev_replace_start_params"]
        [::std::mem::align_of::<btrfs_ioctl_dev_replace_start_params>() - 4usize];
    ["Offset of field: btrfs_ioctl_dev_replace_start_params::srcdevid"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_start_params, srcdevid) - 0usize];
    ["Offset of field: btrfs_ioctl_dev_replace_start_params::cont_reading_from_srcdev_mode"][::std::mem::offset_of!(
        btrfs_ioctl_dev_replace_start_params,
        cont_reading_from_srcdev_mode
    )
        - 8usize];
    ["Offset of field: btrfs_ioctl_dev_replace_start_params::srcdev_name"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_start_params, srcdev_name) - 16usize];
    ["Offset of field: btrfs_ioctl_dev_replace_start_params::tgtdev_name"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_start_params, tgtdev_name) - 1041usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_dev_replace_status_params {
    pub replace_state: __u64,
    pub progress_1000: __u64,
    pub time_started: __u64,
    pub time_stopped: __u64,
    pub num_write_errors: __u64,
    pub num_uncorrectable_read_errors: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_dev_replace_status_params"]
        [::std::mem::size_of::<btrfs_ioctl_dev_replace_status_params>() - 48usize];
    ["Alignment of btrfs_ioctl_dev_replace_status_params"]
        [::std::mem::align_of::<btrfs_ioctl_dev_replace_status_params>() - 4usize];
    ["Offset of field: btrfs_ioctl_dev_replace_status_params::replace_state"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_status_params, replace_state) - 0usize];
    ["Offset of field: btrfs_ioctl_dev_replace_status_params::progress_1000"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_status_params, progress_1000) - 8usize];
    ["Offset of field: btrfs_ioctl_dev_replace_status_params::time_started"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_status_params, time_started) - 16usize];
    ["Offset of field: btrfs_ioctl_dev_replace_status_params::time_stopped"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_status_params, time_stopped) - 24usize];
    ["Offset of field: btrfs_ioctl_dev_replace_status_params::num_write_errors"][::std::mem::offset_of!(
        btrfs_ioctl_dev_replace_status_params,
        num_write_errors
    ) - 32usize];
    ["Offset of field: btrfs_ioctl_dev_replace_status_params::num_uncorrectable_read_errors"][::std::mem::offset_of!(
        btrfs_ioctl_dev_replace_status_params,
        num_uncorrectable_read_errors
    )
        - 40usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_dev_replace_args {
    pub cmd: __u64,
    pub result: __u64,
    pub inner1: btrfs_ioctl_dev_replace_args__bindgen_ty_1,
    pub spare: [__u64; 64usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union btrfs_ioctl_dev_replace_args__bindgen_ty_1 {
    pub start: btrfs_ioctl_dev_replace_start_params,
    pub status: btrfs_ioctl_dev_replace_status_params,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_dev_replace_args__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_ioctl_dev_replace_args__bindgen_ty_1>() - 2068usize];
    ["Alignment of btrfs_ioctl_dev_replace_args__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_ioctl_dev_replace_args__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_ioctl_dev_replace_args__bindgen_ty_1::start"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_args__bindgen_ty_1, start) - 0usize];
    ["Offset of field: btrfs_ioctl_dev_replace_args__bindgen_ty_1::status"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_args__bindgen_ty_1, status) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_dev_replace_args"]
        [::std::mem::size_of::<btrfs_ioctl_dev_replace_args>() - 2596usize];
    ["Alignment of btrfs_ioctl_dev_replace_args"]
        [::std::mem::align_of::<btrfs_ioctl_dev_replace_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_dev_replace_args::cmd"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_args, cmd) - 0usize];
    ["Offset of field: btrfs_ioctl_dev_replace_args::result"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_args, result) - 8usize];
    ["Offset of field: btrfs_ioctl_dev_replace_args::spare"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_replace_args, spare) - 2084usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_dev_info_args {
    pub devid: __u64,
    pub uuid: [__u8; 16usize],
    pub bytes_used: __u64,
    pub total_bytes: __u64,
    pub fsid: [__u8; 16usize],
    pub unused: [__u64; 377usize],
    pub path: [__u8; 1024usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_dev_info_args"]
        [::std::mem::size_of::<btrfs_ioctl_dev_info_args>() - 4096usize];
    ["Alignment of btrfs_ioctl_dev_info_args"]
        [::std::mem::align_of::<btrfs_ioctl_dev_info_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_dev_info_args::devid"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_info_args, devid) - 0usize];
    ["Offset of field: btrfs_ioctl_dev_info_args::uuid"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_info_args, uuid) - 8usize];
    ["Offset of field: btrfs_ioctl_dev_info_args::bytes_used"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_info_args, bytes_used) - 24usize];
    ["Offset of field: btrfs_ioctl_dev_info_args::total_bytes"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_info_args, total_bytes) - 32usize];
    ["Offset of field: btrfs_ioctl_dev_info_args::fsid"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_info_args, fsid) - 40usize];
    ["Offset of field: btrfs_ioctl_dev_info_args::unused"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_info_args, unused) - 56usize];
    ["Offset of field: btrfs_ioctl_dev_info_args::path"]
        [::std::mem::offset_of!(btrfs_ioctl_dev_info_args, path) - 3072usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_fs_info_args {
    pub max_id: __u64,
    pub num_devices: __u64,
    pub fsid: [__u8; 16usize],
    pub nodesize: __u32,
    pub sectorsize: __u32,
    pub clone_alignment: __u32,
    pub csum_type: __u16,
    pub csum_size: __u16,
    pub flags: __u64,
    pub generation: __u64,
    pub metadata_uuid: [__u8; 16usize],
    pub reserved: [__u8; 944usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_fs_info_args"]
        [::std::mem::size_of::<btrfs_ioctl_fs_info_args>() - 1024usize];
    ["Alignment of btrfs_ioctl_fs_info_args"]
        [::std::mem::align_of::<btrfs_ioctl_fs_info_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::max_id"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, max_id) - 0usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::num_devices"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, num_devices) - 8usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::fsid"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, fsid) - 16usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::nodesize"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, nodesize) - 32usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::sectorsize"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, sectorsize) - 36usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::clone_alignment"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, clone_alignment) - 40usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::csum_type"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, csum_type) - 44usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::csum_size"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, csum_size) - 46usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, flags) - 48usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::generation"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, generation) - 56usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::metadata_uuid"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, metadata_uuid) - 64usize];
    ["Offset of field: btrfs_ioctl_fs_info_args::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_fs_info_args, reserved) - 80usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_feature_flags {
    pub compat_flags: __u64,
    pub compat_ro_flags: __u64,
    pub incompat_flags: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_feature_flags"]
        [::std::mem::size_of::<btrfs_ioctl_feature_flags>() - 24usize];
    ["Alignment of btrfs_ioctl_feature_flags"]
        [::std::mem::align_of::<btrfs_ioctl_feature_flags>() - 4usize];
    ["Offset of field: btrfs_ioctl_feature_flags::compat_flags"]
        [::std::mem::offset_of!(btrfs_ioctl_feature_flags, compat_flags) - 0usize];
    ["Offset of field: btrfs_ioctl_feature_flags::compat_ro_flags"]
        [::std::mem::offset_of!(btrfs_ioctl_feature_flags, compat_ro_flags) - 8usize];
    ["Offset of field: btrfs_ioctl_feature_flags::incompat_flags"]
        [::std::mem::offset_of!(btrfs_ioctl_feature_flags, incompat_flags) - 16usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_balance_args {
    pub profiles: __u64,
    pub inner1: btrfs_balance_args__bindgen_ty_1,
    pub devid: __u64,
    pub pstart: __u64,
    pub pend: __u64,
    pub vstart: __u64,
    pub vend: __u64,
    pub target: __u64,
    pub flags: __u64,
    pub inner2: btrfs_balance_args__bindgen_ty_2,
    pub stripes_min: __u32,
    pub stripes_max: __u32,
    pub unused: [__u64; 6usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union btrfs_balance_args__bindgen_ty_1 {
    pub usage: __u64,
    pub inner1: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_balance_args__bindgen_ty_1__bindgen_ty_1 {
    pub usage_min: __u32,
    pub usage_max: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_balance_args__bindgen_ty_1__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_balance_args__bindgen_ty_1__bindgen_ty_1>() - 8usize];
    ["Alignment of btrfs_balance_args__bindgen_ty_1__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_balance_args__bindgen_ty_1__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1::usage_min"][::std::mem::offset_of!(
        btrfs_balance_args__bindgen_ty_1__bindgen_ty_1,
        usage_min
    ) - 0usize];
    ["Offset of field: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1::usage_max"][::std::mem::offset_of!(
        btrfs_balance_args__bindgen_ty_1__bindgen_ty_1,
        usage_max
    ) - 4usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_balance_args__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_balance_args__bindgen_ty_1>() - 8usize];
    ["Alignment of btrfs_balance_args__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_balance_args__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_balance_args__bindgen_ty_1::usage"]
        [::std::mem::offset_of!(btrfs_balance_args__bindgen_ty_1, usage) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union btrfs_balance_args__bindgen_ty_2 {
    pub limit: __u64,
    pub inner1: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_balance_args__bindgen_ty_2__bindgen_ty_1 {
    pub limit_min: __u32,
    pub limit_max: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_balance_args__bindgen_ty_2__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_balance_args__bindgen_ty_2__bindgen_ty_1>() - 8usize];
    ["Alignment of btrfs_balance_args__bindgen_ty_2__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_balance_args__bindgen_ty_2__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1::limit_min"][::std::mem::offset_of!(
        btrfs_balance_args__bindgen_ty_2__bindgen_ty_1,
        limit_min
    ) - 0usize];
    ["Offset of field: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1::limit_max"][::std::mem::offset_of!(
        btrfs_balance_args__bindgen_ty_2__bindgen_ty_1,
        limit_max
    ) - 4usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_balance_args__bindgen_ty_2"]
        [::std::mem::size_of::<btrfs_balance_args__bindgen_ty_2>() - 8usize];
    ["Alignment of btrfs_balance_args__bindgen_ty_2"]
        [::std::mem::align_of::<btrfs_balance_args__bindgen_ty_2>() - 4usize];
    ["Offset of field: btrfs_balance_args__bindgen_ty_2::limit"]
        [::std::mem::offset_of!(btrfs_balance_args__bindgen_ty_2, limit) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_balance_args"][::std::mem::size_of::<btrfs_balance_args>() - 136usize];
    ["Alignment of btrfs_balance_args"][::std::mem::align_of::<btrfs_balance_args>() - 1usize];
    ["Offset of field: btrfs_balance_args::profiles"]
        [::std::mem::offset_of!(btrfs_balance_args, profiles) - 0usize];
    ["Offset of field: btrfs_balance_args::devid"]
        [::std::mem::offset_of!(btrfs_balance_args, devid) - 16usize];
    ["Offset of field: btrfs_balance_args::pstart"]
        [::std::mem::offset_of!(btrfs_balance_args, pstart) - 24usize];
    ["Offset of field: btrfs_balance_args::pend"]
        [::std::mem::offset_of!(btrfs_balance_args, pend) - 32usize];
    ["Offset of field: btrfs_balance_args::vstart"]
        [::std::mem::offset_of!(btrfs_balance_args, vstart) - 40usize];
    ["Offset of field: btrfs_balance_args::vend"]
        [::std::mem::offset_of!(btrfs_balance_args, vend) - 48usize];
    ["Offset of field: btrfs_balance_args::target"]
        [::std::mem::offset_of!(btrfs_balance_args, target) - 56usize];
    ["Offset of field: btrfs_balance_args::flags"]
        [::std::mem::offset_of!(btrfs_balance_args, flags) - 64usize];
    ["Offset of field: btrfs_balance_args::stripes_min"]
        [::std::mem::offset_of!(btrfs_balance_args, stripes_min) - 80usize];
    ["Offset of field: btrfs_balance_args::stripes_max"]
        [::std::mem::offset_of!(btrfs_balance_args, stripes_max) - 84usize];
    ["Offset of field: btrfs_balance_args::unused"]
        [::std::mem::offset_of!(btrfs_balance_args, unused) - 88usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_balance_progress {
    pub expected: __u64,
    pub considered: __u64,
    pub completed: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_balance_progress"][::std::mem::size_of::<btrfs_balance_progress>() - 24usize];
    ["Alignment of btrfs_balance_progress"]
        [::std::mem::align_of::<btrfs_balance_progress>() - 4usize];
    ["Offset of field: btrfs_balance_progress::expected"]
        [::std::mem::offset_of!(btrfs_balance_progress, expected) - 0usize];
    ["Offset of field: btrfs_balance_progress::considered"]
        [::std::mem::offset_of!(btrfs_balance_progress, considered) - 8usize];
    ["Offset of field: btrfs_balance_progress::completed"]
        [::std::mem::offset_of!(btrfs_balance_progress, completed) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_balance_args {
    pub flags: __u64,
    pub state: __u64,
    pub data: btrfs_balance_args,
    pub meta: btrfs_balance_args,
    pub sys: btrfs_balance_args,
    pub stat: btrfs_balance_progress,
    pub unused: [__u64; 72usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_balance_args"]
        [::std::mem::size_of::<btrfs_ioctl_balance_args>() - 1024usize];
    ["Alignment of btrfs_ioctl_balance_args"]
        [::std::mem::align_of::<btrfs_ioctl_balance_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_balance_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_balance_args, flags) - 0usize];
    ["Offset of field: btrfs_ioctl_balance_args::state"]
        [::std::mem::offset_of!(btrfs_ioctl_balance_args, state) - 8usize];
    ["Offset of field: btrfs_ioctl_balance_args::data"]
        [::std::mem::offset_of!(btrfs_ioctl_balance_args, data) - 16usize];
    ["Offset of field: btrfs_ioctl_balance_args::meta"]
        [::std::mem::offset_of!(btrfs_ioctl_balance_args, meta) - 152usize];
    ["Offset of field: btrfs_ioctl_balance_args::sys"]
        [::std::mem::offset_of!(btrfs_ioctl_balance_args, sys) - 288usize];
    ["Offset of field: btrfs_ioctl_balance_args::stat"]
        [::std::mem::offset_of!(btrfs_ioctl_balance_args, stat) - 424usize];
    ["Offset of field: btrfs_ioctl_balance_args::unused"]
        [::std::mem::offset_of!(btrfs_ioctl_balance_args, unused) - 448usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_ino_lookup_args {
    pub treeid: __u64,
    pub objectid: __u64,
    pub name: [::std::os::raw::c_char; 4080usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_ino_lookup_args"]
        [::std::mem::size_of::<btrfs_ioctl_ino_lookup_args>() - 4096usize];
    ["Alignment of btrfs_ioctl_ino_lookup_args"]
        [::std::mem::align_of::<btrfs_ioctl_ino_lookup_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_ino_lookup_args::treeid"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_lookup_args, treeid) - 0usize];
    ["Offset of field: btrfs_ioctl_ino_lookup_args::objectid"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_lookup_args, objectid) - 8usize];
    ["Offset of field: btrfs_ioctl_ino_lookup_args::name"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_lookup_args, name) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_ino_lookup_user_args {
    pub dirid: __u64,
    pub treeid: __u64,
    pub name: [::std::os::raw::c_char; 256usize],
    pub path: [::std::os::raw::c_char; 3824usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_ino_lookup_user_args"]
        [::std::mem::size_of::<btrfs_ioctl_ino_lookup_user_args>() - 4096usize];
    ["Alignment of btrfs_ioctl_ino_lookup_user_args"]
        [::std::mem::align_of::<btrfs_ioctl_ino_lookup_user_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_ino_lookup_user_args::dirid"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_lookup_user_args, dirid) - 0usize];
    ["Offset of field: btrfs_ioctl_ino_lookup_user_args::treeid"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_lookup_user_args, treeid) - 8usize];
    ["Offset of field: btrfs_ioctl_ino_lookup_user_args::name"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_lookup_user_args, name) - 16usize];
    ["Offset of field: btrfs_ioctl_ino_lookup_user_args::path"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_lookup_user_args, path) - 272usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_search_key {
    pub tree_id: __u64,
    pub min_objectid: __u64,
    pub max_objectid: __u64,
    pub min_offset: __u64,
    pub max_offset: __u64,
    pub min_transid: __u64,
    pub max_transid: __u64,
    pub min_type: __u32,
    pub max_type: __u32,
    pub nr_items: __u32,
    pub unused: __u32,
    pub unused1: __u64,
    pub unused2: __u64,
    pub unused3: __u64,
    pub unused4: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_search_key"][::std::mem::size_of::<btrfs_ioctl_search_key>() - 104usize];
    ["Alignment of btrfs_ioctl_search_key"]
        [::std::mem::align_of::<btrfs_ioctl_search_key>() - 4usize];
    ["Offset of field: btrfs_ioctl_search_key::tree_id"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, tree_id) - 0usize];
    ["Offset of field: btrfs_ioctl_search_key::min_objectid"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, min_objectid) - 8usize];
    ["Offset of field: btrfs_ioctl_search_key::max_objectid"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, max_objectid) - 16usize];
    ["Offset of field: btrfs_ioctl_search_key::min_offset"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, min_offset) - 24usize];
    ["Offset of field: btrfs_ioctl_search_key::max_offset"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, max_offset) - 32usize];
    ["Offset of field: btrfs_ioctl_search_key::min_transid"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, min_transid) - 40usize];
    ["Offset of field: btrfs_ioctl_search_key::max_transid"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, max_transid) - 48usize];
    ["Offset of field: btrfs_ioctl_search_key::min_type"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, min_type) - 56usize];
    ["Offset of field: btrfs_ioctl_search_key::max_type"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, max_type) - 60usize];
    ["Offset of field: btrfs_ioctl_search_key::nr_items"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, nr_items) - 64usize];
    ["Offset of field: btrfs_ioctl_search_key::unused"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, unused) - 68usize];
    ["Offset of field: btrfs_ioctl_search_key::unused1"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, unused1) - 72usize];
    ["Offset of field: btrfs_ioctl_search_key::unused2"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, unused2) - 80usize];
    ["Offset of field: btrfs_ioctl_search_key::unused3"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, unused3) - 88usize];
    ["Offset of field: btrfs_ioctl_search_key::unused4"]
        [::std::mem::offset_of!(btrfs_ioctl_search_key, unused4) - 96usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_search_header {
    pub transid: __u64,
    pub objectid: __u64,
    pub offset: __u64,
    pub type_: __u32,
    pub len: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_search_header"]
        [::std::mem::size_of::<btrfs_ioctl_search_header>() - 32usize];
    ["Alignment of btrfs_ioctl_search_header"]
        [::std::mem::align_of::<btrfs_ioctl_search_header>() - 4usize];
    ["Offset of field: btrfs_ioctl_search_header::transid"]
        [::std::mem::offset_of!(btrfs_ioctl_search_header, transid) - 0usize];
    ["Offset of field: btrfs_ioctl_search_header::objectid"]
        [::std::mem::offset_of!(btrfs_ioctl_search_header, objectid) - 8usize];
    ["Offset of field: btrfs_ioctl_search_header::offset"]
        [::std::mem::offset_of!(btrfs_ioctl_search_header, offset) - 16usize];
    ["Offset of field: btrfs_ioctl_search_header::type_"]
        [::std::mem::offset_of!(btrfs_ioctl_search_header, type_) - 24usize];
    ["Offset of field: btrfs_ioctl_search_header::len"]
        [::std::mem::offset_of!(btrfs_ioctl_search_header, len) - 28usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_search_args {
    pub key: btrfs_ioctl_search_key,
    pub buf: [::std::os::raw::c_char; 3992usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_search_args"]
        [::std::mem::size_of::<btrfs_ioctl_search_args>() - 4096usize];
    ["Alignment of btrfs_ioctl_search_args"]
        [::std::mem::align_of::<btrfs_ioctl_search_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_search_args::key"]
        [::std::mem::offset_of!(btrfs_ioctl_search_args, key) - 0usize];
    ["Offset of field: btrfs_ioctl_search_args::buf"]
        [::std::mem::offset_of!(btrfs_ioctl_search_args, buf) - 104usize];
};
#[repr(C)]
pub struct btrfs_ioctl_search_args_v2 {
    pub key: btrfs_ioctl_search_key,
    pub buf_size: __u64,
    pub buf: __IncompleteArrayField<__u64>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_search_args_v2"]
        [::std::mem::size_of::<btrfs_ioctl_search_args_v2>() - 112usize];
    ["Alignment of btrfs_ioctl_search_args_v2"]
        [::std::mem::align_of::<btrfs_ioctl_search_args_v2>() - 4usize];
    ["Offset of field: btrfs_ioctl_search_args_v2::key"]
        [::std::mem::offset_of!(btrfs_ioctl_search_args_v2, key) - 0usize];
    ["Offset of field: btrfs_ioctl_search_args_v2::buf_size"]
        [::std::mem::offset_of!(btrfs_ioctl_search_args_v2, buf_size) - 104usize];
    ["Offset of field: btrfs_ioctl_search_args_v2::buf"]
        [::std::mem::offset_of!(btrfs_ioctl_search_args_v2, buf) - 112usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_clone_range_args {
    pub src_fd: __s64,
    pub src_offset: __u64,
    pub src_length: __u64,
    pub dest_offset: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_clone_range_args"]
        [::std::mem::size_of::<btrfs_ioctl_clone_range_args>() - 32usize];
    ["Alignment of btrfs_ioctl_clone_range_args"]
        [::std::mem::align_of::<btrfs_ioctl_clone_range_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_clone_range_args::src_fd"]
        [::std::mem::offset_of!(btrfs_ioctl_clone_range_args, src_fd) - 0usize];
    ["Offset of field: btrfs_ioctl_clone_range_args::src_offset"]
        [::std::mem::offset_of!(btrfs_ioctl_clone_range_args, src_offset) - 8usize];
    ["Offset of field: btrfs_ioctl_clone_range_args::src_length"]
        [::std::mem::offset_of!(btrfs_ioctl_clone_range_args, src_length) - 16usize];
    ["Offset of field: btrfs_ioctl_clone_range_args::dest_offset"]
        [::std::mem::offset_of!(btrfs_ioctl_clone_range_args, dest_offset) - 24usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_defrag_range_args {
    pub start: __u64,
    pub len: __u64,
    pub flags: __u64,
    pub extent_thresh: __u32,
    pub inner1: btrfs_ioctl_defrag_range_args__bindgen_ty_1,
    pub unused: [__u32; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union btrfs_ioctl_defrag_range_args__bindgen_ty_1 {
    pub compress_type: __u32,
    pub compress: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1 {
    pub type_: __u8,
    pub level: __s8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1"][::std::mem::size_of::<
        btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1,
    >() - 2usize];
    ["Alignment of btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1"][::std::mem::align_of::<
        btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1,
    >() - 1usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1::type_"][::std::mem::offset_of!(
        btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1,
        type_
    )
        - 0usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1::level"][::std::mem::offset_of!(
        btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1,
        level
    )
        - 1usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_defrag_range_args__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_ioctl_defrag_range_args__bindgen_ty_1>() - 4usize];
    ["Alignment of btrfs_ioctl_defrag_range_args__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_ioctl_defrag_range_args__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args__bindgen_ty_1::compress_type"][::std::mem::offset_of!(
        btrfs_ioctl_defrag_range_args__bindgen_ty_1,
        compress_type
    ) - 0usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args__bindgen_ty_1::compress"]
        [::std::mem::offset_of!(btrfs_ioctl_defrag_range_args__bindgen_ty_1, compress) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_defrag_range_args"]
        [::std::mem::size_of::<btrfs_ioctl_defrag_range_args>() - 48usize];
    ["Alignment of btrfs_ioctl_defrag_range_args"]
        [::std::mem::align_of::<btrfs_ioctl_defrag_range_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args::start"]
        [::std::mem::offset_of!(btrfs_ioctl_defrag_range_args, start) - 0usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args::len"]
        [::std::mem::offset_of!(btrfs_ioctl_defrag_range_args, len) - 8usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_defrag_range_args, flags) - 16usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args::extent_thresh"]
        [::std::mem::offset_of!(btrfs_ioctl_defrag_range_args, extent_thresh) - 24usize];
    ["Offset of field: btrfs_ioctl_defrag_range_args::unused"]
        [::std::mem::offset_of!(btrfs_ioctl_defrag_range_args, unused) - 32usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_same_extent_info {
    pub fd: __s64,
    pub logical_offset: __u64,
    pub bytes_deduped: __u64,
    pub status: __s32,
    pub reserved: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_same_extent_info"]
        [::std::mem::size_of::<btrfs_ioctl_same_extent_info>() - 32usize];
    ["Alignment of btrfs_ioctl_same_extent_info"]
        [::std::mem::align_of::<btrfs_ioctl_same_extent_info>() - 4usize];
    ["Offset of field: btrfs_ioctl_same_extent_info::fd"]
        [::std::mem::offset_of!(btrfs_ioctl_same_extent_info, fd) - 0usize];
    ["Offset of field: btrfs_ioctl_same_extent_info::logical_offset"]
        [::std::mem::offset_of!(btrfs_ioctl_same_extent_info, logical_offset) - 8usize];
    ["Offset of field: btrfs_ioctl_same_extent_info::bytes_deduped"]
        [::std::mem::offset_of!(btrfs_ioctl_same_extent_info, bytes_deduped) - 16usize];
    ["Offset of field: btrfs_ioctl_same_extent_info::status"]
        [::std::mem::offset_of!(btrfs_ioctl_same_extent_info, status) - 24usize];
    ["Offset of field: btrfs_ioctl_same_extent_info::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_same_extent_info, reserved) - 28usize];
};
#[repr(C)]
pub struct btrfs_ioctl_same_args {
    pub logical_offset: __u64,
    pub length: __u64,
    pub dest_count: __u16,
    pub reserved1: __u16,
    pub reserved2: __u32,
    pub info: __IncompleteArrayField<btrfs_ioctl_same_extent_info>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_same_args"][::std::mem::size_of::<btrfs_ioctl_same_args>() - 24usize];
    ["Alignment of btrfs_ioctl_same_args"]
        [::std::mem::align_of::<btrfs_ioctl_same_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_same_args::logical_offset"]
        [::std::mem::offset_of!(btrfs_ioctl_same_args, logical_offset) - 0usize];
    ["Offset of field: btrfs_ioctl_same_args::length"]
        [::std::mem::offset_of!(btrfs_ioctl_same_args, length) - 8usize];
    ["Offset of field: btrfs_ioctl_same_args::dest_count"]
        [::std::mem::offset_of!(btrfs_ioctl_same_args, dest_count) - 16usize];
    ["Offset of field: btrfs_ioctl_same_args::reserved1"]
        [::std::mem::offset_of!(btrfs_ioctl_same_args, reserved1) - 18usize];
    ["Offset of field: btrfs_ioctl_same_args::reserved2"]
        [::std::mem::offset_of!(btrfs_ioctl_same_args, reserved2) - 20usize];
    ["Offset of field: btrfs_ioctl_same_args::info"]
        [::std::mem::offset_of!(btrfs_ioctl_same_args, info) - 24usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_space_info {
    pub flags: __u64,
    pub total_bytes: __u64,
    pub used_bytes: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_space_info"][::std::mem::size_of::<btrfs_ioctl_space_info>() - 24usize];
    ["Alignment of btrfs_ioctl_space_info"]
        [::std::mem::align_of::<btrfs_ioctl_space_info>() - 4usize];
    ["Offset of field: btrfs_ioctl_space_info::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_space_info, flags) - 0usize];
    ["Offset of field: btrfs_ioctl_space_info::total_bytes"]
        [::std::mem::offset_of!(btrfs_ioctl_space_info, total_bytes) - 8usize];
    ["Offset of field: btrfs_ioctl_space_info::used_bytes"]
        [::std::mem::offset_of!(btrfs_ioctl_space_info, used_bytes) - 16usize];
};
#[repr(C)]
pub struct btrfs_ioctl_space_args {
    pub space_slots: __u64,
    pub total_spaces: __u64,
    pub spaces: __IncompleteArrayField<btrfs_ioctl_space_info>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_space_args"][::std::mem::size_of::<btrfs_ioctl_space_args>() - 16usize];
    ["Alignment of btrfs_ioctl_space_args"]
        [::std::mem::align_of::<btrfs_ioctl_space_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_space_args::space_slots"]
        [::std::mem::offset_of!(btrfs_ioctl_space_args, space_slots) - 0usize];
    ["Offset of field: btrfs_ioctl_space_args::total_spaces"]
        [::std::mem::offset_of!(btrfs_ioctl_space_args, total_spaces) - 8usize];
    ["Offset of field: btrfs_ioctl_space_args::spaces"]
        [::std::mem::offset_of!(btrfs_ioctl_space_args, spaces) - 16usize];
};
#[repr(C)]
pub struct btrfs_data_container {
    pub bytes_left: __u32,
    pub bytes_missing: __u32,
    pub elem_cnt: __u32,
    pub elem_missed: __u32,
    pub val: __IncompleteArrayField<__u64>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_data_container"][::std::mem::size_of::<btrfs_data_container>() - 16usize];
    ["Alignment of btrfs_data_container"][::std::mem::align_of::<btrfs_data_container>() - 4usize];
    ["Offset of field: btrfs_data_container::bytes_left"]
        [::std::mem::offset_of!(btrfs_data_container, bytes_left) - 0usize];
    ["Offset of field: btrfs_data_container::bytes_missing"]
        [::std::mem::offset_of!(btrfs_data_container, bytes_missing) - 4usize];
    ["Offset of field: btrfs_data_container::elem_cnt"]
        [::std::mem::offset_of!(btrfs_data_container, elem_cnt) - 8usize];
    ["Offset of field: btrfs_data_container::elem_missed"]
        [::std::mem::offset_of!(btrfs_data_container, elem_missed) - 12usize];
    ["Offset of field: btrfs_data_container::val"]
        [::std::mem::offset_of!(btrfs_data_container, val) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_ino_path_args {
    pub inum: __u64,
    pub size: __u64,
    pub reserved: [__u64; 4usize],
    pub fspath: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_ino_path_args"]
        [::std::mem::size_of::<btrfs_ioctl_ino_path_args>() - 56usize];
    ["Alignment of btrfs_ioctl_ino_path_args"]
        [::std::mem::align_of::<btrfs_ioctl_ino_path_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_ino_path_args::inum"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_path_args, inum) - 0usize];
    ["Offset of field: btrfs_ioctl_ino_path_args::size"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_path_args, size) - 8usize];
    ["Offset of field: btrfs_ioctl_ino_path_args::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_path_args, reserved) - 16usize];
    ["Offset of field: btrfs_ioctl_ino_path_args::fspath"]
        [::std::mem::offset_of!(btrfs_ioctl_ino_path_args, fspath) - 48usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_logical_ino_args {
    pub logical: __u64,
    pub size: __u64,
    pub reserved: [__u64; 3usize],
    pub flags: __u64,
    pub inodes: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_logical_ino_args"]
        [::std::mem::size_of::<btrfs_ioctl_logical_ino_args>() - 56usize];
    ["Alignment of btrfs_ioctl_logical_ino_args"]
        [::std::mem::align_of::<btrfs_ioctl_logical_ino_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_logical_ino_args::logical"]
        [::std::mem::offset_of!(btrfs_ioctl_logical_ino_args, logical) - 0usize];
    ["Offset of field: btrfs_ioctl_logical_ino_args::size"]
        [::std::mem::offset_of!(btrfs_ioctl_logical_ino_args, size) - 8usize];
    ["Offset of field: btrfs_ioctl_logical_ino_args::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_logical_ino_args, reserved) - 16usize];
    ["Offset of field: btrfs_ioctl_logical_ino_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_logical_ino_args, flags) - 40usize];
    ["Offset of field: btrfs_ioctl_logical_ino_args::inodes"]
        [::std::mem::offset_of!(btrfs_ioctl_logical_ino_args, inodes) - 48usize];
};
pub const BTRFS_DEV_STAT_WRITE_ERRS: btrfs_dev_stat_values = 0;
pub const BTRFS_DEV_STAT_READ_ERRS: btrfs_dev_stat_values = 1;
pub const BTRFS_DEV_STAT_FLUSH_ERRS: btrfs_dev_stat_values = 2;
pub const BTRFS_DEV_STAT_CORRUPTION_ERRS: btrfs_dev_stat_values = 3;
pub const BTRFS_DEV_STAT_GENERATION_ERRS: btrfs_dev_stat_values = 4;
pub const BTRFS_DEV_STAT_VALUES_MAX: btrfs_dev_stat_values = 5;
pub type btrfs_dev_stat_values = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_get_dev_stats {
    pub devid: __u64,
    pub nr_items: __u64,
    pub flags: __u64,
    pub values: [__u64; 5usize],
    pub unused: [__u64; 121usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_get_dev_stats"]
        [::std::mem::size_of::<btrfs_ioctl_get_dev_stats>() - 1032usize];
    ["Alignment of btrfs_ioctl_get_dev_stats"]
        [::std::mem::align_of::<btrfs_ioctl_get_dev_stats>() - 4usize];
    ["Offset of field: btrfs_ioctl_get_dev_stats::devid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_dev_stats, devid) - 0usize];
    ["Offset of field: btrfs_ioctl_get_dev_stats::nr_items"]
        [::std::mem::offset_of!(btrfs_ioctl_get_dev_stats, nr_items) - 8usize];
    ["Offset of field: btrfs_ioctl_get_dev_stats::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_get_dev_stats, flags) - 16usize];
    ["Offset of field: btrfs_ioctl_get_dev_stats::values"]
        [::std::mem::offset_of!(btrfs_ioctl_get_dev_stats, values) - 24usize];
    ["Offset of field: btrfs_ioctl_get_dev_stats::unused"]
        [::std::mem::offset_of!(btrfs_ioctl_get_dev_stats, unused) - 64usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_quota_ctl_args {
    pub cmd: __u64,
    pub status: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_quota_ctl_args"]
        [::std::mem::size_of::<btrfs_ioctl_quota_ctl_args>() - 16usize];
    ["Alignment of btrfs_ioctl_quota_ctl_args"]
        [::std::mem::align_of::<btrfs_ioctl_quota_ctl_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_quota_ctl_args::cmd"]
        [::std::mem::offset_of!(btrfs_ioctl_quota_ctl_args, cmd) - 0usize];
    ["Offset of field: btrfs_ioctl_quota_ctl_args::status"]
        [::std::mem::offset_of!(btrfs_ioctl_quota_ctl_args, status) - 8usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_quota_rescan_args {
    pub flags: __u64,
    pub progress: __u64,
    pub reserved: [__u64; 6usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_quota_rescan_args"]
        [::std::mem::size_of::<btrfs_ioctl_quota_rescan_args>() - 64usize];
    ["Alignment of btrfs_ioctl_quota_rescan_args"]
        [::std::mem::align_of::<btrfs_ioctl_quota_rescan_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_quota_rescan_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_quota_rescan_args, flags) - 0usize];
    ["Offset of field: btrfs_ioctl_quota_rescan_args::progress"]
        [::std::mem::offset_of!(btrfs_ioctl_quota_rescan_args, progress) - 8usize];
    ["Offset of field: btrfs_ioctl_quota_rescan_args::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_quota_rescan_args, reserved) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_qgroup_assign_args {
    pub assign: __u64,
    pub src: __u64,
    pub dst: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_qgroup_assign_args"]
        [::std::mem::size_of::<btrfs_ioctl_qgroup_assign_args>() - 24usize];
    ["Alignment of btrfs_ioctl_qgroup_assign_args"]
        [::std::mem::align_of::<btrfs_ioctl_qgroup_assign_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_qgroup_assign_args::assign"]
        [::std::mem::offset_of!(btrfs_ioctl_qgroup_assign_args, assign) - 0usize];
    ["Offset of field: btrfs_ioctl_qgroup_assign_args::src"]
        [::std::mem::offset_of!(btrfs_ioctl_qgroup_assign_args, src) - 8usize];
    ["Offset of field: btrfs_ioctl_qgroup_assign_args::dst"]
        [::std::mem::offset_of!(btrfs_ioctl_qgroup_assign_args, dst) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_qgroup_create_args {
    pub create: __u64,
    pub qgroupid: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_qgroup_create_args"]
        [::std::mem::size_of::<btrfs_ioctl_qgroup_create_args>() - 16usize];
    ["Alignment of btrfs_ioctl_qgroup_create_args"]
        [::std::mem::align_of::<btrfs_ioctl_qgroup_create_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_qgroup_create_args::create"]
        [::std::mem::offset_of!(btrfs_ioctl_qgroup_create_args, create) - 0usize];
    ["Offset of field: btrfs_ioctl_qgroup_create_args::qgroupid"]
        [::std::mem::offset_of!(btrfs_ioctl_qgroup_create_args, qgroupid) - 8usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_timespec {
    pub sec: __u64,
    pub nsec: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_timespec"][::std::mem::size_of::<btrfs_ioctl_timespec>() - 12usize];
    ["Alignment of btrfs_ioctl_timespec"][::std::mem::align_of::<btrfs_ioctl_timespec>() - 4usize];
    ["Offset of field: btrfs_ioctl_timespec::sec"]
        [::std::mem::offset_of!(btrfs_ioctl_timespec, sec) - 0usize];
    ["Offset of field: btrfs_ioctl_timespec::nsec"]
        [::std::mem::offset_of!(btrfs_ioctl_timespec, nsec) - 8usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_received_subvol_args {
    pub uuid: [::std::os::raw::c_char; 16usize],
    pub stransid: __u64,
    pub rtransid: __u64,
    pub stime: btrfs_ioctl_timespec,
    pub rtime: btrfs_ioctl_timespec,
    pub flags: __u64,
    pub reserved: [__u64; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_received_subvol_args"]
        [::std::mem::size_of::<btrfs_ioctl_received_subvol_args>() - 192usize];
    ["Alignment of btrfs_ioctl_received_subvol_args"]
        [::std::mem::align_of::<btrfs_ioctl_received_subvol_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_received_subvol_args::uuid"]
        [::std::mem::offset_of!(btrfs_ioctl_received_subvol_args, uuid) - 0usize];
    ["Offset of field: btrfs_ioctl_received_subvol_args::stransid"]
        [::std::mem::offset_of!(btrfs_ioctl_received_subvol_args, stransid) - 16usize];
    ["Offset of field: btrfs_ioctl_received_subvol_args::rtransid"]
        [::std::mem::offset_of!(btrfs_ioctl_received_subvol_args, rtransid) - 24usize];
    ["Offset of field: btrfs_ioctl_received_subvol_args::stime"]
        [::std::mem::offset_of!(btrfs_ioctl_received_subvol_args, stime) - 32usize];
    ["Offset of field: btrfs_ioctl_received_subvol_args::rtime"]
        [::std::mem::offset_of!(btrfs_ioctl_received_subvol_args, rtime) - 44usize];
    ["Offset of field: btrfs_ioctl_received_subvol_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_received_subvol_args, flags) - 56usize];
    ["Offset of field: btrfs_ioctl_received_subvol_args::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_received_subvol_args, reserved) - 64usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_send_args {
    pub send_fd: __s64,
    pub clone_sources_count: __u64,
    pub clone_sources: *mut __u64,
    pub parent_root: __u64,
    pub flags: __u64,
    pub version: __u32,
    pub reserved: [__u8; 28usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_send_args"][::std::mem::size_of::<btrfs_ioctl_send_args>() - 68usize];
    ["Alignment of btrfs_ioctl_send_args"]
        [::std::mem::align_of::<btrfs_ioctl_send_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_send_args::send_fd"]
        [::std::mem::offset_of!(btrfs_ioctl_send_args, send_fd) - 0usize];
    ["Offset of field: btrfs_ioctl_send_args::clone_sources_count"]
        [::std::mem::offset_of!(btrfs_ioctl_send_args, clone_sources_count) - 8usize];
    ["Offset of field: btrfs_ioctl_send_args::clone_sources"]
        [::std::mem::offset_of!(btrfs_ioctl_send_args, clone_sources) - 16usize];
    ["Offset of field: btrfs_ioctl_send_args::parent_root"]
        [::std::mem::offset_of!(btrfs_ioctl_send_args, parent_root) - 20usize];
    ["Offset of field: btrfs_ioctl_send_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_send_args, flags) - 28usize];
    ["Offset of field: btrfs_ioctl_send_args::version"]
        [::std::mem::offset_of!(btrfs_ioctl_send_args, version) - 36usize];
    ["Offset of field: btrfs_ioctl_send_args::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_send_args, reserved) - 40usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_get_subvol_info_args {
    pub treeid: __u64,
    pub name: [::std::os::raw::c_char; 256usize],
    pub parent_id: __u64,
    pub dirid: __u64,
    pub generation: __u64,
    pub flags: __u64,
    pub uuid: [__u8; 16usize],
    pub parent_uuid: [__u8; 16usize],
    pub received_uuid: [__u8; 16usize],
    pub ctransid: __u64,
    pub otransid: __u64,
    pub stransid: __u64,
    pub rtransid: __u64,
    pub ctime: btrfs_ioctl_timespec,
    pub otime: btrfs_ioctl_timespec,
    pub stime: btrfs_ioctl_timespec,
    pub rtime: btrfs_ioctl_timespec,
    pub reserved: [__u64; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_get_subvol_info_args"]
        [::std::mem::size_of::<btrfs_ioctl_get_subvol_info_args>() - 488usize];
    ["Alignment of btrfs_ioctl_get_subvol_info_args"]
        [::std::mem::align_of::<btrfs_ioctl_get_subvol_info_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::treeid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, treeid) - 0usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::name"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, name) - 8usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::parent_id"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, parent_id) - 264usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::dirid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, dirid) - 272usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::generation"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, generation) - 280usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, flags) - 288usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::uuid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, uuid) - 296usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::parent_uuid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, parent_uuid) - 312usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::received_uuid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, received_uuid) - 328usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::ctransid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, ctransid) - 344usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::otransid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, otransid) - 352usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::stransid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, stransid) - 360usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::rtransid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, rtransid) - 368usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::ctime"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, ctime) - 376usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::otime"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, otime) - 388usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::stime"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, stime) - 400usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::rtime"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, rtime) - 412usize];
    ["Offset of field: btrfs_ioctl_get_subvol_info_args::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_info_args, reserved) - 424usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_get_subvol_rootref_args {
    pub min_treeid: __u64,
    pub rootref: [btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1; 255usize],
    pub num_items: __u8,
    pub align: [__u8; 7usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1 {
    pub treeid: __u64,
    pub dirid: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1>() - 16usize];
    ["Alignment of btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1::treeid"][::std::mem::offset_of!(
        btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1,
        treeid
    ) - 0usize];
    ["Offset of field: btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1::dirid"][::std::mem::offset_of!(
        btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1,
        dirid
    ) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_get_subvol_rootref_args"]
        [::std::mem::size_of::<btrfs_ioctl_get_subvol_rootref_args>() - 4096usize];
    ["Alignment of btrfs_ioctl_get_subvol_rootref_args"]
        [::std::mem::align_of::<btrfs_ioctl_get_subvol_rootref_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_get_subvol_rootref_args::min_treeid"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_rootref_args, min_treeid) - 0usize];
    ["Offset of field: btrfs_ioctl_get_subvol_rootref_args::rootref"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_rootref_args, rootref) - 8usize];
    ["Offset of field: btrfs_ioctl_get_subvol_rootref_args::num_items"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_rootref_args, num_items) - 4088usize];
    ["Offset of field: btrfs_ioctl_get_subvol_rootref_args::align"]
        [::std::mem::offset_of!(btrfs_ioctl_get_subvol_rootref_args, align) - 4089usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_encoded_io_args {
    pub iov: *mut iovec,
    pub iovcnt: ::std::os::raw::c_ulong,
    pub offset: __s64,
    pub flags: __u64,
    pub len: __u64,
    pub unencoded_len: __u64,
    pub unencoded_offset: __u64,
    pub compression: __u32,
    pub encryption: __u32,
    pub reserved: [__u8; 64usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_encoded_io_args"]
        [::std::mem::size_of::<btrfs_ioctl_encoded_io_args>() - 120usize];
    ["Alignment of btrfs_ioctl_encoded_io_args"]
        [::std::mem::align_of::<btrfs_ioctl_encoded_io_args>() - 4usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::iov"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, iov) - 0usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::iovcnt"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, iovcnt) - 4usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::offset"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, offset) - 8usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::flags"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, flags) - 16usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::len"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, len) - 24usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::unencoded_len"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, unencoded_len) - 32usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::unencoded_offset"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, unencoded_offset) - 40usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::compression"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, compression) - 48usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::encryption"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, encryption) - 52usize];
    ["Offset of field: btrfs_ioctl_encoded_io_args::reserved"]
        [::std::mem::offset_of!(btrfs_ioctl_encoded_io_args, reserved) - 56usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_ioctl_subvol_wait {
    pub subvolid: __u64,
    pub mode: __u32,
    pub count: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_ioctl_subvol_wait"]
        [::std::mem::size_of::<btrfs_ioctl_subvol_wait>() - 16usize];
    ["Alignment of btrfs_ioctl_subvol_wait"]
        [::std::mem::align_of::<btrfs_ioctl_subvol_wait>() - 4usize];
    ["Offset of field: btrfs_ioctl_subvol_wait::subvolid"]
        [::std::mem::offset_of!(btrfs_ioctl_subvol_wait, subvolid) - 0usize];
    ["Offset of field: btrfs_ioctl_subvol_wait::mode"]
        [::std::mem::offset_of!(btrfs_ioctl_subvol_wait, mode) - 8usize];
    ["Offset of field: btrfs_ioctl_subvol_wait::count"]
        [::std::mem::offset_of!(btrfs_ioctl_subvol_wait, count) - 12usize];
};
pub const BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET: btrfs_err_code = 1;
pub const BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET: btrfs_err_code = 2;
pub const BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET: btrfs_err_code = 3;
pub const BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET: btrfs_err_code = 4;
pub const BTRFS_ERROR_DEV_TGT_REPLACE: btrfs_err_code = 5;
pub const BTRFS_ERROR_DEV_MISSING_NOT_FOUND: btrfs_err_code = 6;
pub const BTRFS_ERROR_DEV_ONLY_WRITABLE: btrfs_err_code = 7;
pub const BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS: btrfs_err_code = 8;
pub const BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET: btrfs_err_code = 9;
pub const BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET: btrfs_err_code = 10;
pub type btrfs_err_code = ::std::os::raw::c_uint;
pub const BTRFS_CSUM_TYPE_CRC32: btrfs_csum_type = 0;
pub const BTRFS_CSUM_TYPE_XXHASH: btrfs_csum_type = 1;
pub const BTRFS_CSUM_TYPE_SHA256: btrfs_csum_type = 2;
pub const BTRFS_CSUM_TYPE_BLAKE2: btrfs_csum_type = 3;
pub type btrfs_csum_type = ::std::os::raw::c_uint;
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_disk_key {
    pub objectid: __le64,
    pub type_: __u8,
    pub offset: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_disk_key"][::std::mem::size_of::<btrfs_disk_key>() - 17usize];
    ["Alignment of btrfs_disk_key"][::std::mem::align_of::<btrfs_disk_key>() - 1usize];
    ["Offset of field: btrfs_disk_key::objectid"]
        [::std::mem::offset_of!(btrfs_disk_key, objectid) - 0usize];
    ["Offset of field: btrfs_disk_key::type_"]
        [::std::mem::offset_of!(btrfs_disk_key, type_) - 8usize];
    ["Offset of field: btrfs_disk_key::offset"]
        [::std::mem::offset_of!(btrfs_disk_key, offset) - 9usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_key {
    pub objectid: __u64,
    pub type_: __u8,
    pub offset: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_key"][::std::mem::size_of::<btrfs_key>() - 17usize];
    ["Alignment of btrfs_key"][::std::mem::align_of::<btrfs_key>() - 1usize];
    ["Offset of field: btrfs_key::objectid"][::std::mem::offset_of!(btrfs_key, objectid) - 0usize];
    ["Offset of field: btrfs_key::type_"][::std::mem::offset_of!(btrfs_key, type_) - 8usize];
    ["Offset of field: btrfs_key::offset"][::std::mem::offset_of!(btrfs_key, offset) - 9usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_header {
    pub csum: [__u8; 32usize],
    pub fsid: [__u8; 16usize],
    pub bytenr: __le64,
    pub flags: __le64,
    pub chunk_tree_uuid: [__u8; 16usize],
    pub generation: __le64,
    pub owner: __le64,
    pub nritems: __le32,
    pub level: __u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_header"][::std::mem::size_of::<btrfs_header>() - 101usize];
    ["Alignment of btrfs_header"][::std::mem::align_of::<btrfs_header>() - 1usize];
    ["Offset of field: btrfs_header::csum"][::std::mem::offset_of!(btrfs_header, csum) - 0usize];
    ["Offset of field: btrfs_header::fsid"][::std::mem::offset_of!(btrfs_header, fsid) - 32usize];
    ["Offset of field: btrfs_header::bytenr"]
        [::std::mem::offset_of!(btrfs_header, bytenr) - 48usize];
    ["Offset of field: btrfs_header::flags"]
        [::std::mem::offset_of!(btrfs_header, flags) - 56usize];
    ["Offset of field: btrfs_header::chunk_tree_uuid"]
        [::std::mem::offset_of!(btrfs_header, chunk_tree_uuid) - 64usize];
    ["Offset of field: btrfs_header::generation"]
        [::std::mem::offset_of!(btrfs_header, generation) - 80usize];
    ["Offset of field: btrfs_header::owner"]
        [::std::mem::offset_of!(btrfs_header, owner) - 88usize];
    ["Offset of field: btrfs_header::nritems"]
        [::std::mem::offset_of!(btrfs_header, nritems) - 96usize];
    ["Offset of field: btrfs_header::level"]
        [::std::mem::offset_of!(btrfs_header, level) - 100usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_root_backup {
    pub tree_root: __le64,
    pub tree_root_gen: __le64,
    pub chunk_root: __le64,
    pub chunk_root_gen: __le64,
    pub extent_root: __le64,
    pub extent_root_gen: __le64,
    pub fs_root: __le64,
    pub fs_root_gen: __le64,
    pub dev_root: __le64,
    pub dev_root_gen: __le64,
    pub csum_root: __le64,
    pub csum_root_gen: __le64,
    pub total_bytes: __le64,
    pub bytes_used: __le64,
    pub num_devices: __le64,
    pub unused_64: [__le64; 4usize],
    pub tree_root_level: __u8,
    pub chunk_root_level: __u8,
    pub extent_root_level: __u8,
    pub fs_root_level: __u8,
    pub dev_root_level: __u8,
    pub csum_root_level: __u8,
    pub unused_8: [__u8; 10usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_root_backup"][::std::mem::size_of::<btrfs_root_backup>() - 168usize];
    ["Alignment of btrfs_root_backup"][::std::mem::align_of::<btrfs_root_backup>() - 1usize];
    ["Offset of field: btrfs_root_backup::tree_root"]
        [::std::mem::offset_of!(btrfs_root_backup, tree_root) - 0usize];
    ["Offset of field: btrfs_root_backup::tree_root_gen"]
        [::std::mem::offset_of!(btrfs_root_backup, tree_root_gen) - 8usize];
    ["Offset of field: btrfs_root_backup::chunk_root"]
        [::std::mem::offset_of!(btrfs_root_backup, chunk_root) - 16usize];
    ["Offset of field: btrfs_root_backup::chunk_root_gen"]
        [::std::mem::offset_of!(btrfs_root_backup, chunk_root_gen) - 24usize];
    ["Offset of field: btrfs_root_backup::extent_root"]
        [::std::mem::offset_of!(btrfs_root_backup, extent_root) - 32usize];
    ["Offset of field: btrfs_root_backup::extent_root_gen"]
        [::std::mem::offset_of!(btrfs_root_backup, extent_root_gen) - 40usize];
    ["Offset of field: btrfs_root_backup::fs_root"]
        [::std::mem::offset_of!(btrfs_root_backup, fs_root) - 48usize];
    ["Offset of field: btrfs_root_backup::fs_root_gen"]
        [::std::mem::offset_of!(btrfs_root_backup, fs_root_gen) - 56usize];
    ["Offset of field: btrfs_root_backup::dev_root"]
        [::std::mem::offset_of!(btrfs_root_backup, dev_root) - 64usize];
    ["Offset of field: btrfs_root_backup::dev_root_gen"]
        [::std::mem::offset_of!(btrfs_root_backup, dev_root_gen) - 72usize];
    ["Offset of field: btrfs_root_backup::csum_root"]
        [::std::mem::offset_of!(btrfs_root_backup, csum_root) - 80usize];
    ["Offset of field: btrfs_root_backup::csum_root_gen"]
        [::std::mem::offset_of!(btrfs_root_backup, csum_root_gen) - 88usize];
    ["Offset of field: btrfs_root_backup::total_bytes"]
        [::std::mem::offset_of!(btrfs_root_backup, total_bytes) - 96usize];
    ["Offset of field: btrfs_root_backup::bytes_used"]
        [::std::mem::offset_of!(btrfs_root_backup, bytes_used) - 104usize];
    ["Offset of field: btrfs_root_backup::num_devices"]
        [::std::mem::offset_of!(btrfs_root_backup, num_devices) - 112usize];
    ["Offset of field: btrfs_root_backup::unused_64"]
        [::std::mem::offset_of!(btrfs_root_backup, unused_64) - 120usize];
    ["Offset of field: btrfs_root_backup::tree_root_level"]
        [::std::mem::offset_of!(btrfs_root_backup, tree_root_level) - 152usize];
    ["Offset of field: btrfs_root_backup::chunk_root_level"]
        [::std::mem::offset_of!(btrfs_root_backup, chunk_root_level) - 153usize];
    ["Offset of field: btrfs_root_backup::extent_root_level"]
        [::std::mem::offset_of!(btrfs_root_backup, extent_root_level) - 154usize];
    ["Offset of field: btrfs_root_backup::fs_root_level"]
        [::std::mem::offset_of!(btrfs_root_backup, fs_root_level) - 155usize];
    ["Offset of field: btrfs_root_backup::dev_root_level"]
        [::std::mem::offset_of!(btrfs_root_backup, dev_root_level) - 156usize];
    ["Offset of field: btrfs_root_backup::csum_root_level"]
        [::std::mem::offset_of!(btrfs_root_backup, csum_root_level) - 157usize];
    ["Offset of field: btrfs_root_backup::unused_8"]
        [::std::mem::offset_of!(btrfs_root_backup, unused_8) - 158usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_item {
    pub key: btrfs_disk_key,
    pub offset: __le32,
    pub size: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_item"][::std::mem::size_of::<btrfs_item>() - 25usize];
    ["Alignment of btrfs_item"][::std::mem::align_of::<btrfs_item>() - 1usize];
    ["Offset of field: btrfs_item::key"][::std::mem::offset_of!(btrfs_item, key) - 0usize];
    ["Offset of field: btrfs_item::offset"][::std::mem::offset_of!(btrfs_item, offset) - 17usize];
    ["Offset of field: btrfs_item::size"][::std::mem::offset_of!(btrfs_item, size) - 21usize];
};
#[repr(C, packed)]
pub struct btrfs_leaf {
    pub header: btrfs_header,
    pub items: __IncompleteArrayField<btrfs_item>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_leaf"][::std::mem::size_of::<btrfs_leaf>() - 101usize];
    ["Alignment of btrfs_leaf"][::std::mem::align_of::<btrfs_leaf>() - 1usize];
    ["Offset of field: btrfs_leaf::header"][::std::mem::offset_of!(btrfs_leaf, header) - 0usize];
    ["Offset of field: btrfs_leaf::items"][::std::mem::offset_of!(btrfs_leaf, items) - 101usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_key_ptr {
    pub key: btrfs_disk_key,
    pub blockptr: __le64,
    pub generation: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_key_ptr"][::std::mem::size_of::<btrfs_key_ptr>() - 33usize];
    ["Alignment of btrfs_key_ptr"][::std::mem::align_of::<btrfs_key_ptr>() - 1usize];
    ["Offset of field: btrfs_key_ptr::key"][::std::mem::offset_of!(btrfs_key_ptr, key) - 0usize];
    ["Offset of field: btrfs_key_ptr::blockptr"]
        [::std::mem::offset_of!(btrfs_key_ptr, blockptr) - 17usize];
    ["Offset of field: btrfs_key_ptr::generation"]
        [::std::mem::offset_of!(btrfs_key_ptr, generation) - 25usize];
};
#[repr(C, packed)]
pub struct btrfs_node {
    pub header: btrfs_header,
    pub ptrs: __IncompleteArrayField<btrfs_key_ptr>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_node"][::std::mem::size_of::<btrfs_node>() - 101usize];
    ["Alignment of btrfs_node"][::std::mem::align_of::<btrfs_node>() - 1usize];
    ["Offset of field: btrfs_node::header"][::std::mem::offset_of!(btrfs_node, header) - 0usize];
    ["Offset of field: btrfs_node::ptrs"][::std::mem::offset_of!(btrfs_node, ptrs) - 101usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_dev_item {
    pub devid: __le64,
    pub total_bytes: __le64,
    pub bytes_used: __le64,
    pub io_align: __le32,
    pub io_width: __le32,
    pub sector_size: __le32,
    pub type_: __le64,
    pub generation: __le64,
    pub start_offset: __le64,
    pub dev_group: __le32,
    pub seek_speed: __u8,
    pub bandwidth: __u8,
    pub uuid: [__u8; 16usize],
    pub fsid: [__u8; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_dev_item"][::std::mem::size_of::<btrfs_dev_item>() - 98usize];
    ["Alignment of btrfs_dev_item"][::std::mem::align_of::<btrfs_dev_item>() - 1usize];
    ["Offset of field: btrfs_dev_item::devid"]
        [::std::mem::offset_of!(btrfs_dev_item, devid) - 0usize];
    ["Offset of field: btrfs_dev_item::total_bytes"]
        [::std::mem::offset_of!(btrfs_dev_item, total_bytes) - 8usize];
    ["Offset of field: btrfs_dev_item::bytes_used"]
        [::std::mem::offset_of!(btrfs_dev_item, bytes_used) - 16usize];
    ["Offset of field: btrfs_dev_item::io_align"]
        [::std::mem::offset_of!(btrfs_dev_item, io_align) - 24usize];
    ["Offset of field: btrfs_dev_item::io_width"]
        [::std::mem::offset_of!(btrfs_dev_item, io_width) - 28usize];
    ["Offset of field: btrfs_dev_item::sector_size"]
        [::std::mem::offset_of!(btrfs_dev_item, sector_size) - 32usize];
    ["Offset of field: btrfs_dev_item::type_"]
        [::std::mem::offset_of!(btrfs_dev_item, type_) - 36usize];
    ["Offset of field: btrfs_dev_item::generation"]
        [::std::mem::offset_of!(btrfs_dev_item, generation) - 44usize];
    ["Offset of field: btrfs_dev_item::start_offset"]
        [::std::mem::offset_of!(btrfs_dev_item, start_offset) - 52usize];
    ["Offset of field: btrfs_dev_item::dev_group"]
        [::std::mem::offset_of!(btrfs_dev_item, dev_group) - 60usize];
    ["Offset of field: btrfs_dev_item::seek_speed"]
        [::std::mem::offset_of!(btrfs_dev_item, seek_speed) - 64usize];
    ["Offset of field: btrfs_dev_item::bandwidth"]
        [::std::mem::offset_of!(btrfs_dev_item, bandwidth) - 65usize];
    ["Offset of field: btrfs_dev_item::uuid"]
        [::std::mem::offset_of!(btrfs_dev_item, uuid) - 66usize];
    ["Offset of field: btrfs_dev_item::fsid"]
        [::std::mem::offset_of!(btrfs_dev_item, fsid) - 82usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_stripe {
    pub devid: __le64,
    pub offset: __le64,
    pub dev_uuid: [__u8; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_stripe"][::std::mem::size_of::<btrfs_stripe>() - 32usize];
    ["Alignment of btrfs_stripe"][::std::mem::align_of::<btrfs_stripe>() - 1usize];
    ["Offset of field: btrfs_stripe::devid"][::std::mem::offset_of!(btrfs_stripe, devid) - 0usize];
    ["Offset of field: btrfs_stripe::offset"]
        [::std::mem::offset_of!(btrfs_stripe, offset) - 8usize];
    ["Offset of field: btrfs_stripe::dev_uuid"]
        [::std::mem::offset_of!(btrfs_stripe, dev_uuid) - 16usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_chunk {
    pub length: __le64,
    pub owner: __le64,
    pub stripe_len: __le64,
    pub type_: __le64,
    pub io_align: __le32,
    pub io_width: __le32,
    pub sector_size: __le32,
    pub num_stripes: __le16,
    pub sub_stripes: __le16,
    pub stripe: btrfs_stripe,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_chunk"][::std::mem::size_of::<btrfs_chunk>() - 80usize];
    ["Alignment of btrfs_chunk"][::std::mem::align_of::<btrfs_chunk>() - 1usize];
    ["Offset of field: btrfs_chunk::length"][::std::mem::offset_of!(btrfs_chunk, length) - 0usize];
    ["Offset of field: btrfs_chunk::owner"][::std::mem::offset_of!(btrfs_chunk, owner) - 8usize];
    ["Offset of field: btrfs_chunk::stripe_len"]
        [::std::mem::offset_of!(btrfs_chunk, stripe_len) - 16usize];
    ["Offset of field: btrfs_chunk::type_"][::std::mem::offset_of!(btrfs_chunk, type_) - 24usize];
    ["Offset of field: btrfs_chunk::io_align"]
        [::std::mem::offset_of!(btrfs_chunk, io_align) - 32usize];
    ["Offset of field: btrfs_chunk::io_width"]
        [::std::mem::offset_of!(btrfs_chunk, io_width) - 36usize];
    ["Offset of field: btrfs_chunk::sector_size"]
        [::std::mem::offset_of!(btrfs_chunk, sector_size) - 40usize];
    ["Offset of field: btrfs_chunk::num_stripes"]
        [::std::mem::offset_of!(btrfs_chunk, num_stripes) - 44usize];
    ["Offset of field: btrfs_chunk::sub_stripes"]
        [::std::mem::offset_of!(btrfs_chunk, sub_stripes) - 46usize];
    ["Offset of field: btrfs_chunk::stripe"]
        [::std::mem::offset_of!(btrfs_chunk, stripe) - 48usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_super_block {
    pub csum: [__u8; 32usize],
    pub fsid: [__u8; 16usize],
    pub bytenr: __le64,
    pub flags: __le64,
    pub magic: __le64,
    pub generation: __le64,
    pub root: __le64,
    pub chunk_root: __le64,
    pub log_root: __le64,
    pub __unused_log_root_transid: __le64,
    pub total_bytes: __le64,
    pub bytes_used: __le64,
    pub root_dir_objectid: __le64,
    pub num_devices: __le64,
    pub sectorsize: __le32,
    pub nodesize: __le32,
    pub __unused_leafsize: __le32,
    pub stripesize: __le32,
    pub sys_chunk_array_size: __le32,
    pub chunk_root_generation: __le64,
    pub compat_flags: __le64,
    pub compat_ro_flags: __le64,
    pub incompat_flags: __le64,
    pub csum_type: __le16,
    pub root_level: __u8,
    pub chunk_root_level: __u8,
    pub log_root_level: __u8,
    pub dev_item: btrfs_dev_item,
    pub label: [::std::os::raw::c_char; 256usize],
    pub cache_generation: __le64,
    pub uuid_tree_generation: __le64,
    pub metadata_uuid: [__u8; 16usize],
    pub nr_global_roots: __u64,
    pub remap_root: __le64,
    pub remap_root_generation: __le64,
    pub remap_root_level: __u8,
    pub reserved: [__u8; 199usize],
    pub sys_chunk_array: [__u8; 2048usize],
    pub super_roots: [btrfs_root_backup; 4usize],
    pub padding: [__u8; 565usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_super_block"][::std::mem::size_of::<btrfs_super_block>() - 4096usize];
    ["Alignment of btrfs_super_block"][::std::mem::align_of::<btrfs_super_block>() - 1usize];
    ["Offset of field: btrfs_super_block::csum"]
        [::std::mem::offset_of!(btrfs_super_block, csum) - 0usize];
    ["Offset of field: btrfs_super_block::fsid"]
        [::std::mem::offset_of!(btrfs_super_block, fsid) - 32usize];
    ["Offset of field: btrfs_super_block::bytenr"]
        [::std::mem::offset_of!(btrfs_super_block, bytenr) - 48usize];
    ["Offset of field: btrfs_super_block::flags"]
        [::std::mem::offset_of!(btrfs_super_block, flags) - 56usize];
    ["Offset of field: btrfs_super_block::magic"]
        [::std::mem::offset_of!(btrfs_super_block, magic) - 64usize];
    ["Offset of field: btrfs_super_block::generation"]
        [::std::mem::offset_of!(btrfs_super_block, generation) - 72usize];
    ["Offset of field: btrfs_super_block::root"]
        [::std::mem::offset_of!(btrfs_super_block, root) - 80usize];
    ["Offset of field: btrfs_super_block::chunk_root"]
        [::std::mem::offset_of!(btrfs_super_block, chunk_root) - 88usize];
    ["Offset of field: btrfs_super_block::log_root"]
        [::std::mem::offset_of!(btrfs_super_block, log_root) - 96usize];
    ["Offset of field: btrfs_super_block::__unused_log_root_transid"]
        [::std::mem::offset_of!(btrfs_super_block, __unused_log_root_transid) - 104usize];
    ["Offset of field: btrfs_super_block::total_bytes"]
        [::std::mem::offset_of!(btrfs_super_block, total_bytes) - 112usize];
    ["Offset of field: btrfs_super_block::bytes_used"]
        [::std::mem::offset_of!(btrfs_super_block, bytes_used) - 120usize];
    ["Offset of field: btrfs_super_block::root_dir_objectid"]
        [::std::mem::offset_of!(btrfs_super_block, root_dir_objectid) - 128usize];
    ["Offset of field: btrfs_super_block::num_devices"]
        [::std::mem::offset_of!(btrfs_super_block, num_devices) - 136usize];
    ["Offset of field: btrfs_super_block::sectorsize"]
        [::std::mem::offset_of!(btrfs_super_block, sectorsize) - 144usize];
    ["Offset of field: btrfs_super_block::nodesize"]
        [::std::mem::offset_of!(btrfs_super_block, nodesize) - 148usize];
    ["Offset of field: btrfs_super_block::__unused_leafsize"]
        [::std::mem::offset_of!(btrfs_super_block, __unused_leafsize) - 152usize];
    ["Offset of field: btrfs_super_block::stripesize"]
        [::std::mem::offset_of!(btrfs_super_block, stripesize) - 156usize];
    ["Offset of field: btrfs_super_block::sys_chunk_array_size"]
        [::std::mem::offset_of!(btrfs_super_block, sys_chunk_array_size) - 160usize];
    ["Offset of field: btrfs_super_block::chunk_root_generation"]
        [::std::mem::offset_of!(btrfs_super_block, chunk_root_generation) - 164usize];
    ["Offset of field: btrfs_super_block::compat_flags"]
        [::std::mem::offset_of!(btrfs_super_block, compat_flags) - 172usize];
    ["Offset of field: btrfs_super_block::compat_ro_flags"]
        [::std::mem::offset_of!(btrfs_super_block, compat_ro_flags) - 180usize];
    ["Offset of field: btrfs_super_block::incompat_flags"]
        [::std::mem::offset_of!(btrfs_super_block, incompat_flags) - 188usize];
    ["Offset of field: btrfs_super_block::csum_type"]
        [::std::mem::offset_of!(btrfs_super_block, csum_type) - 196usize];
    ["Offset of field: btrfs_super_block::root_level"]
        [::std::mem::offset_of!(btrfs_super_block, root_level) - 198usize];
    ["Offset of field: btrfs_super_block::chunk_root_level"]
        [::std::mem::offset_of!(btrfs_super_block, chunk_root_level) - 199usize];
    ["Offset of field: btrfs_super_block::log_root_level"]
        [::std::mem::offset_of!(btrfs_super_block, log_root_level) - 200usize];
    ["Offset of field: btrfs_super_block::dev_item"]
        [::std::mem::offset_of!(btrfs_super_block, dev_item) - 201usize];
    ["Offset of field: btrfs_super_block::label"]
        [::std::mem::offset_of!(btrfs_super_block, label) - 299usize];
    ["Offset of field: btrfs_super_block::cache_generation"]
        [::std::mem::offset_of!(btrfs_super_block, cache_generation) - 555usize];
    ["Offset of field: btrfs_super_block::uuid_tree_generation"]
        [::std::mem::offset_of!(btrfs_super_block, uuid_tree_generation) - 563usize];
    ["Offset of field: btrfs_super_block::metadata_uuid"]
        [::std::mem::offset_of!(btrfs_super_block, metadata_uuid) - 571usize];
    ["Offset of field: btrfs_super_block::nr_global_roots"]
        [::std::mem::offset_of!(btrfs_super_block, nr_global_roots) - 587usize];
    ["Offset of field: btrfs_super_block::remap_root"]
        [::std::mem::offset_of!(btrfs_super_block, remap_root) - 595usize];
    ["Offset of field: btrfs_super_block::remap_root_generation"]
        [::std::mem::offset_of!(btrfs_super_block, remap_root_generation) - 603usize];
    ["Offset of field: btrfs_super_block::remap_root_level"]
        [::std::mem::offset_of!(btrfs_super_block, remap_root_level) - 611usize];
    ["Offset of field: btrfs_super_block::reserved"]
        [::std::mem::offset_of!(btrfs_super_block, reserved) - 612usize];
    ["Offset of field: btrfs_super_block::sys_chunk_array"]
        [::std::mem::offset_of!(btrfs_super_block, sys_chunk_array) - 811usize];
    ["Offset of field: btrfs_super_block::super_roots"]
        [::std::mem::offset_of!(btrfs_super_block, super_roots) - 2859usize];
    ["Offset of field: btrfs_super_block::padding"]
        [::std::mem::offset_of!(btrfs_super_block, padding) - 3531usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_free_space_entry {
    pub offset: __le64,
    pub bytes: __le64,
    pub type_: __u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_free_space_entry"][::std::mem::size_of::<btrfs_free_space_entry>() - 17usize];
    ["Alignment of btrfs_free_space_entry"]
        [::std::mem::align_of::<btrfs_free_space_entry>() - 1usize];
    ["Offset of field: btrfs_free_space_entry::offset"]
        [::std::mem::offset_of!(btrfs_free_space_entry, offset) - 0usize];
    ["Offset of field: btrfs_free_space_entry::bytes"]
        [::std::mem::offset_of!(btrfs_free_space_entry, bytes) - 8usize];
    ["Offset of field: btrfs_free_space_entry::type_"]
        [::std::mem::offset_of!(btrfs_free_space_entry, type_) - 16usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_free_space_header {
    pub location: btrfs_disk_key,
    pub generation: __le64,
    pub num_entries: __le64,
    pub num_bitmaps: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_free_space_header"]
        [::std::mem::size_of::<btrfs_free_space_header>() - 41usize];
    ["Alignment of btrfs_free_space_header"]
        [::std::mem::align_of::<btrfs_free_space_header>() - 1usize];
    ["Offset of field: btrfs_free_space_header::location"]
        [::std::mem::offset_of!(btrfs_free_space_header, location) - 0usize];
    ["Offset of field: btrfs_free_space_header::generation"]
        [::std::mem::offset_of!(btrfs_free_space_header, generation) - 17usize];
    ["Offset of field: btrfs_free_space_header::num_entries"]
        [::std::mem::offset_of!(btrfs_free_space_header, num_entries) - 25usize];
    ["Offset of field: btrfs_free_space_header::num_bitmaps"]
        [::std::mem::offset_of!(btrfs_free_space_header, num_bitmaps) - 33usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_raid_stride {
    pub devid: __le64,
    pub physical: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_raid_stride"][::std::mem::size_of::<btrfs_raid_stride>() - 16usize];
    ["Alignment of btrfs_raid_stride"][::std::mem::align_of::<btrfs_raid_stride>() - 1usize];
    ["Offset of field: btrfs_raid_stride::devid"]
        [::std::mem::offset_of!(btrfs_raid_stride, devid) - 0usize];
    ["Offset of field: btrfs_raid_stride::physical"]
        [::std::mem::offset_of!(btrfs_raid_stride, physical) - 8usize];
};
#[repr(C, packed)]
pub struct btrfs_stripe_extent {
    pub inner1: btrfs_stripe_extent__bindgen_ty_1,
}
#[repr(C)]
pub struct btrfs_stripe_extent__bindgen_ty_1 {
    pub __empty_strides: btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1,
    pub strides: __IncompleteArrayField<btrfs_raid_stride>,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1 {}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1>() - 0usize];
    ["Alignment of btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1>() - 1usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_stripe_extent__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_stripe_extent__bindgen_ty_1>() - 0usize];
    ["Alignment of btrfs_stripe_extent__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_stripe_extent__bindgen_ty_1>() - 1usize];
    ["Offset of field: btrfs_stripe_extent__bindgen_ty_1::__empty_strides"]
        [::std::mem::offset_of!(btrfs_stripe_extent__bindgen_ty_1, __empty_strides) - 0usize];
    ["Offset of field: btrfs_stripe_extent__bindgen_ty_1::strides"]
        [::std::mem::offset_of!(btrfs_stripe_extent__bindgen_ty_1, strides) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_stripe_extent"][::std::mem::size_of::<btrfs_stripe_extent>() - 0usize];
    ["Alignment of btrfs_stripe_extent"][::std::mem::align_of::<btrfs_stripe_extent>() - 1usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_extent_item {
    pub refs: __le64,
    pub generation: __le64,
    pub flags: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_extent_item"][::std::mem::size_of::<btrfs_extent_item>() - 24usize];
    ["Alignment of btrfs_extent_item"][::std::mem::align_of::<btrfs_extent_item>() - 1usize];
    ["Offset of field: btrfs_extent_item::refs"]
        [::std::mem::offset_of!(btrfs_extent_item, refs) - 0usize];
    ["Offset of field: btrfs_extent_item::generation"]
        [::std::mem::offset_of!(btrfs_extent_item, generation) - 8usize];
    ["Offset of field: btrfs_extent_item::flags"]
        [::std::mem::offset_of!(btrfs_extent_item, flags) - 16usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_extent_item_v0 {
    pub refs: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_extent_item_v0"][::std::mem::size_of::<btrfs_extent_item_v0>() - 4usize];
    ["Alignment of btrfs_extent_item_v0"][::std::mem::align_of::<btrfs_extent_item_v0>() - 1usize];
    ["Offset of field: btrfs_extent_item_v0::refs"]
        [::std::mem::offset_of!(btrfs_extent_item_v0, refs) - 0usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_tree_block_info {
    pub key: btrfs_disk_key,
    pub level: __u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_tree_block_info"][::std::mem::size_of::<btrfs_tree_block_info>() - 18usize];
    ["Alignment of btrfs_tree_block_info"]
        [::std::mem::align_of::<btrfs_tree_block_info>() - 1usize];
    ["Offset of field: btrfs_tree_block_info::key"]
        [::std::mem::offset_of!(btrfs_tree_block_info, key) - 0usize];
    ["Offset of field: btrfs_tree_block_info::level"]
        [::std::mem::offset_of!(btrfs_tree_block_info, level) - 17usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_extent_data_ref {
    pub root: __le64,
    pub objectid: __le64,
    pub offset: __le64,
    pub count: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_extent_data_ref"][::std::mem::size_of::<btrfs_extent_data_ref>() - 28usize];
    ["Alignment of btrfs_extent_data_ref"]
        [::std::mem::align_of::<btrfs_extent_data_ref>() - 1usize];
    ["Offset of field: btrfs_extent_data_ref::root"]
        [::std::mem::offset_of!(btrfs_extent_data_ref, root) - 0usize];
    ["Offset of field: btrfs_extent_data_ref::objectid"]
        [::std::mem::offset_of!(btrfs_extent_data_ref, objectid) - 8usize];
    ["Offset of field: btrfs_extent_data_ref::offset"]
        [::std::mem::offset_of!(btrfs_extent_data_ref, offset) - 16usize];
    ["Offset of field: btrfs_extent_data_ref::count"]
        [::std::mem::offset_of!(btrfs_extent_data_ref, count) - 24usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_shared_data_ref {
    pub count: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_shared_data_ref"][::std::mem::size_of::<btrfs_shared_data_ref>() - 4usize];
    ["Alignment of btrfs_shared_data_ref"]
        [::std::mem::align_of::<btrfs_shared_data_ref>() - 1usize];
    ["Offset of field: btrfs_shared_data_ref::count"]
        [::std::mem::offset_of!(btrfs_shared_data_ref, count) - 0usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_extent_owner_ref {
    pub root_id: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_extent_owner_ref"][::std::mem::size_of::<btrfs_extent_owner_ref>() - 8usize];
    ["Alignment of btrfs_extent_owner_ref"]
        [::std::mem::align_of::<btrfs_extent_owner_ref>() - 1usize];
    ["Offset of field: btrfs_extent_owner_ref::root_id"]
        [::std::mem::offset_of!(btrfs_extent_owner_ref, root_id) - 0usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_extent_inline_ref {
    pub type_: __u8,
    pub offset: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_extent_inline_ref"][::std::mem::size_of::<btrfs_extent_inline_ref>() - 9usize];
    ["Alignment of btrfs_extent_inline_ref"]
        [::std::mem::align_of::<btrfs_extent_inline_ref>() - 1usize];
    ["Offset of field: btrfs_extent_inline_ref::type_"]
        [::std::mem::offset_of!(btrfs_extent_inline_ref, type_) - 0usize];
    ["Offset of field: btrfs_extent_inline_ref::offset"]
        [::std::mem::offset_of!(btrfs_extent_inline_ref, offset) - 1usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_dev_extent {
    pub chunk_tree: __le64,
    pub chunk_objectid: __le64,
    pub chunk_offset: __le64,
    pub length: __le64,
    pub chunk_tree_uuid: [__u8; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_dev_extent"][::std::mem::size_of::<btrfs_dev_extent>() - 48usize];
    ["Alignment of btrfs_dev_extent"][::std::mem::align_of::<btrfs_dev_extent>() - 1usize];
    ["Offset of field: btrfs_dev_extent::chunk_tree"]
        [::std::mem::offset_of!(btrfs_dev_extent, chunk_tree) - 0usize];
    ["Offset of field: btrfs_dev_extent::chunk_objectid"]
        [::std::mem::offset_of!(btrfs_dev_extent, chunk_objectid) - 8usize];
    ["Offset of field: btrfs_dev_extent::chunk_offset"]
        [::std::mem::offset_of!(btrfs_dev_extent, chunk_offset) - 16usize];
    ["Offset of field: btrfs_dev_extent::length"]
        [::std::mem::offset_of!(btrfs_dev_extent, length) - 24usize];
    ["Offset of field: btrfs_dev_extent::chunk_tree_uuid"]
        [::std::mem::offset_of!(btrfs_dev_extent, chunk_tree_uuid) - 32usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_inode_ref {
    pub index: __le64,
    pub name_len: __le16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_inode_ref"][::std::mem::size_of::<btrfs_inode_ref>() - 10usize];
    ["Alignment of btrfs_inode_ref"][::std::mem::align_of::<btrfs_inode_ref>() - 1usize];
    ["Offset of field: btrfs_inode_ref::index"]
        [::std::mem::offset_of!(btrfs_inode_ref, index) - 0usize];
    ["Offset of field: btrfs_inode_ref::name_len"]
        [::std::mem::offset_of!(btrfs_inode_ref, name_len) - 8usize];
};
#[repr(C, packed)]
pub struct btrfs_inode_extref {
    pub parent_objectid: __le64,
    pub index: __le64,
    pub name_len: __le16,
    pub name: __IncompleteArrayField<__u8>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_inode_extref"][::std::mem::size_of::<btrfs_inode_extref>() - 18usize];
    ["Alignment of btrfs_inode_extref"][::std::mem::align_of::<btrfs_inode_extref>() - 1usize];
    ["Offset of field: btrfs_inode_extref::parent_objectid"]
        [::std::mem::offset_of!(btrfs_inode_extref, parent_objectid) - 0usize];
    ["Offset of field: btrfs_inode_extref::index"]
        [::std::mem::offset_of!(btrfs_inode_extref, index) - 8usize];
    ["Offset of field: btrfs_inode_extref::name_len"]
        [::std::mem::offset_of!(btrfs_inode_extref, name_len) - 16usize];
    ["Offset of field: btrfs_inode_extref::name"]
        [::std::mem::offset_of!(btrfs_inode_extref, name) - 18usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_timespec {
    pub sec: __le64,
    pub nsec: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_timespec"][::std::mem::size_of::<btrfs_timespec>() - 12usize];
    ["Alignment of btrfs_timespec"][::std::mem::align_of::<btrfs_timespec>() - 1usize];
    ["Offset of field: btrfs_timespec::sec"][::std::mem::offset_of!(btrfs_timespec, sec) - 0usize];
    ["Offset of field: btrfs_timespec::nsec"]
        [::std::mem::offset_of!(btrfs_timespec, nsec) - 8usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_inode_item {
    pub generation: __le64,
    pub transid: __le64,
    pub size: __le64,
    pub nbytes: __le64,
    pub block_group: __le64,
    pub nlink: __le32,
    pub uid: __le32,
    pub gid: __le32,
    pub mode: __le32,
    pub rdev: __le64,
    pub flags: __le64,
    pub sequence: __le64,
    pub reserved: [__le64; 4usize],
    pub atime: btrfs_timespec,
    pub ctime: btrfs_timespec,
    pub mtime: btrfs_timespec,
    pub otime: btrfs_timespec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_inode_item"][::std::mem::size_of::<btrfs_inode_item>() - 160usize];
    ["Alignment of btrfs_inode_item"][::std::mem::align_of::<btrfs_inode_item>() - 1usize];
    ["Offset of field: btrfs_inode_item::generation"]
        [::std::mem::offset_of!(btrfs_inode_item, generation) - 0usize];
    ["Offset of field: btrfs_inode_item::transid"]
        [::std::mem::offset_of!(btrfs_inode_item, transid) - 8usize];
    ["Offset of field: btrfs_inode_item::size"]
        [::std::mem::offset_of!(btrfs_inode_item, size) - 16usize];
    ["Offset of field: btrfs_inode_item::nbytes"]
        [::std::mem::offset_of!(btrfs_inode_item, nbytes) - 24usize];
    ["Offset of field: btrfs_inode_item::block_group"]
        [::std::mem::offset_of!(btrfs_inode_item, block_group) - 32usize];
    ["Offset of field: btrfs_inode_item::nlink"]
        [::std::mem::offset_of!(btrfs_inode_item, nlink) - 40usize];
    ["Offset of field: btrfs_inode_item::uid"]
        [::std::mem::offset_of!(btrfs_inode_item, uid) - 44usize];
    ["Offset of field: btrfs_inode_item::gid"]
        [::std::mem::offset_of!(btrfs_inode_item, gid) - 48usize];
    ["Offset of field: btrfs_inode_item::mode"]
        [::std::mem::offset_of!(btrfs_inode_item, mode) - 52usize];
    ["Offset of field: btrfs_inode_item::rdev"]
        [::std::mem::offset_of!(btrfs_inode_item, rdev) - 56usize];
    ["Offset of field: btrfs_inode_item::flags"]
        [::std::mem::offset_of!(btrfs_inode_item, flags) - 64usize];
    ["Offset of field: btrfs_inode_item::sequence"]
        [::std::mem::offset_of!(btrfs_inode_item, sequence) - 72usize];
    ["Offset of field: btrfs_inode_item::reserved"]
        [::std::mem::offset_of!(btrfs_inode_item, reserved) - 80usize];
    ["Offset of field: btrfs_inode_item::atime"]
        [::std::mem::offset_of!(btrfs_inode_item, atime) - 112usize];
    ["Offset of field: btrfs_inode_item::ctime"]
        [::std::mem::offset_of!(btrfs_inode_item, ctime) - 124usize];
    ["Offset of field: btrfs_inode_item::mtime"]
        [::std::mem::offset_of!(btrfs_inode_item, mtime) - 136usize];
    ["Offset of field: btrfs_inode_item::otime"]
        [::std::mem::offset_of!(btrfs_inode_item, otime) - 148usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_dir_log_item {
    pub end: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_dir_log_item"][::std::mem::size_of::<btrfs_dir_log_item>() - 8usize];
    ["Alignment of btrfs_dir_log_item"][::std::mem::align_of::<btrfs_dir_log_item>() - 1usize];
    ["Offset of field: btrfs_dir_log_item::end"]
        [::std::mem::offset_of!(btrfs_dir_log_item, end) - 0usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_dir_item {
    pub location: btrfs_disk_key,
    pub transid: __le64,
    pub data_len: __le16,
    pub name_len: __le16,
    pub type_: __u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_dir_item"][::std::mem::size_of::<btrfs_dir_item>() - 30usize];
    ["Alignment of btrfs_dir_item"][::std::mem::align_of::<btrfs_dir_item>() - 1usize];
    ["Offset of field: btrfs_dir_item::location"]
        [::std::mem::offset_of!(btrfs_dir_item, location) - 0usize];
    ["Offset of field: btrfs_dir_item::transid"]
        [::std::mem::offset_of!(btrfs_dir_item, transid) - 17usize];
    ["Offset of field: btrfs_dir_item::data_len"]
        [::std::mem::offset_of!(btrfs_dir_item, data_len) - 25usize];
    ["Offset of field: btrfs_dir_item::name_len"]
        [::std::mem::offset_of!(btrfs_dir_item, name_len) - 27usize];
    ["Offset of field: btrfs_dir_item::type_"]
        [::std::mem::offset_of!(btrfs_dir_item, type_) - 29usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_root_item {
    pub inode: btrfs_inode_item,
    pub generation: __le64,
    pub root_dirid: __le64,
    pub bytenr: __le64,
    pub byte_limit: __le64,
    pub bytes_used: __le64,
    pub last_snapshot: __le64,
    pub flags: __le64,
    pub refs: __le32,
    pub drop_progress: btrfs_disk_key,
    pub drop_level: __u8,
    pub level: __u8,
    pub generation_v2: __le64,
    pub uuid: [__u8; 16usize],
    pub parent_uuid: [__u8; 16usize],
    pub received_uuid: [__u8; 16usize],
    pub ctransid: __le64,
    pub otransid: __le64,
    pub stransid: __le64,
    pub rtransid: __le64,
    pub ctime: btrfs_timespec,
    pub otime: btrfs_timespec,
    pub stime: btrfs_timespec,
    pub rtime: btrfs_timespec,
    pub reserved: [__le64; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_root_item"][::std::mem::size_of::<btrfs_root_item>() - 439usize];
    ["Alignment of btrfs_root_item"][::std::mem::align_of::<btrfs_root_item>() - 1usize];
    ["Offset of field: btrfs_root_item::inode"]
        [::std::mem::offset_of!(btrfs_root_item, inode) - 0usize];
    ["Offset of field: btrfs_root_item::generation"]
        [::std::mem::offset_of!(btrfs_root_item, generation) - 160usize];
    ["Offset of field: btrfs_root_item::root_dirid"]
        [::std::mem::offset_of!(btrfs_root_item, root_dirid) - 168usize];
    ["Offset of field: btrfs_root_item::bytenr"]
        [::std::mem::offset_of!(btrfs_root_item, bytenr) - 176usize];
    ["Offset of field: btrfs_root_item::byte_limit"]
        [::std::mem::offset_of!(btrfs_root_item, byte_limit) - 184usize];
    ["Offset of field: btrfs_root_item::bytes_used"]
        [::std::mem::offset_of!(btrfs_root_item, bytes_used) - 192usize];
    ["Offset of field: btrfs_root_item::last_snapshot"]
        [::std::mem::offset_of!(btrfs_root_item, last_snapshot) - 200usize];
    ["Offset of field: btrfs_root_item::flags"]
        [::std::mem::offset_of!(btrfs_root_item, flags) - 208usize];
    ["Offset of field: btrfs_root_item::refs"]
        [::std::mem::offset_of!(btrfs_root_item, refs) - 216usize];
    ["Offset of field: btrfs_root_item::drop_progress"]
        [::std::mem::offset_of!(btrfs_root_item, drop_progress) - 220usize];
    ["Offset of field: btrfs_root_item::drop_level"]
        [::std::mem::offset_of!(btrfs_root_item, drop_level) - 237usize];
    ["Offset of field: btrfs_root_item::level"]
        [::std::mem::offset_of!(btrfs_root_item, level) - 238usize];
    ["Offset of field: btrfs_root_item::generation_v2"]
        [::std::mem::offset_of!(btrfs_root_item, generation_v2) - 239usize];
    ["Offset of field: btrfs_root_item::uuid"]
        [::std::mem::offset_of!(btrfs_root_item, uuid) - 247usize];
    ["Offset of field: btrfs_root_item::parent_uuid"]
        [::std::mem::offset_of!(btrfs_root_item, parent_uuid) - 263usize];
    ["Offset of field: btrfs_root_item::received_uuid"]
        [::std::mem::offset_of!(btrfs_root_item, received_uuid) - 279usize];
    ["Offset of field: btrfs_root_item::ctransid"]
        [::std::mem::offset_of!(btrfs_root_item, ctransid) - 295usize];
    ["Offset of field: btrfs_root_item::otransid"]
        [::std::mem::offset_of!(btrfs_root_item, otransid) - 303usize];
    ["Offset of field: btrfs_root_item::stransid"]
        [::std::mem::offset_of!(btrfs_root_item, stransid) - 311usize];
    ["Offset of field: btrfs_root_item::rtransid"]
        [::std::mem::offset_of!(btrfs_root_item, rtransid) - 319usize];
    ["Offset of field: btrfs_root_item::ctime"]
        [::std::mem::offset_of!(btrfs_root_item, ctime) - 327usize];
    ["Offset of field: btrfs_root_item::otime"]
        [::std::mem::offset_of!(btrfs_root_item, otime) - 339usize];
    ["Offset of field: btrfs_root_item::stime"]
        [::std::mem::offset_of!(btrfs_root_item, stime) - 351usize];
    ["Offset of field: btrfs_root_item::rtime"]
        [::std::mem::offset_of!(btrfs_root_item, rtime) - 363usize];
    ["Offset of field: btrfs_root_item::reserved"]
        [::std::mem::offset_of!(btrfs_root_item, reserved) - 375usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_root_ref {
    pub dirid: __le64,
    pub sequence: __le64,
    pub name_len: __le16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_root_ref"][::std::mem::size_of::<btrfs_root_ref>() - 18usize];
    ["Alignment of btrfs_root_ref"][::std::mem::align_of::<btrfs_root_ref>() - 1usize];
    ["Offset of field: btrfs_root_ref::dirid"]
        [::std::mem::offset_of!(btrfs_root_ref, dirid) - 0usize];
    ["Offset of field: btrfs_root_ref::sequence"]
        [::std::mem::offset_of!(btrfs_root_ref, sequence) - 8usize];
    ["Offset of field: btrfs_root_ref::name_len"]
        [::std::mem::offset_of!(btrfs_root_ref, name_len) - 16usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_disk_balance_args {
    pub profiles: __le64,
    pub inner1: btrfs_disk_balance_args__bindgen_ty_1,
    pub devid: __le64,
    pub pstart: __le64,
    pub pend: __le64,
    pub vstart: __le64,
    pub vend: __le64,
    pub target: __le64,
    pub flags: __le64,
    pub inner2: btrfs_disk_balance_args__bindgen_ty_2,
    pub stripes_min: __le32,
    pub stripes_max: __le32,
    pub unused: [__le64; 6usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union btrfs_disk_balance_args__bindgen_ty_1 {
    pub usage: __le64,
    pub inner1: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1 {
    pub usage_min: __le32,
    pub usage_max: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1>() - 8usize];
    ["Alignment of btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1::usage_min"][::std::mem::offset_of!(
        btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1,
        usage_min
    )
        - 0usize];
    ["Offset of field: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1::usage_max"][::std::mem::offset_of!(
        btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1,
        usage_max
    )
        - 4usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_disk_balance_args__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_disk_balance_args__bindgen_ty_1>() - 8usize];
    ["Alignment of btrfs_disk_balance_args__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_disk_balance_args__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_disk_balance_args__bindgen_ty_1::usage"]
        [::std::mem::offset_of!(btrfs_disk_balance_args__bindgen_ty_1, usage) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union btrfs_disk_balance_args__bindgen_ty_2 {
    pub limit: __le64,
    pub inner1: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1 {
    pub limit_min: __le32,
    pub limit_max: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1"]
        [::std::mem::size_of::<btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1>() - 8usize];
    ["Alignment of btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1"]
        [::std::mem::align_of::<btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1>() - 4usize];
    ["Offset of field: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1::limit_min"][::std::mem::offset_of!(
        btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1,
        limit_min
    )
        - 0usize];
    ["Offset of field: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1::limit_max"][::std::mem::offset_of!(
        btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1,
        limit_max
    )
        - 4usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_disk_balance_args__bindgen_ty_2"]
        [::std::mem::size_of::<btrfs_disk_balance_args__bindgen_ty_2>() - 8usize];
    ["Alignment of btrfs_disk_balance_args__bindgen_ty_2"]
        [::std::mem::align_of::<btrfs_disk_balance_args__bindgen_ty_2>() - 4usize];
    ["Offset of field: btrfs_disk_balance_args__bindgen_ty_2::limit"]
        [::std::mem::offset_of!(btrfs_disk_balance_args__bindgen_ty_2, limit) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_disk_balance_args"]
        [::std::mem::size_of::<btrfs_disk_balance_args>() - 136usize];
    ["Alignment of btrfs_disk_balance_args"]
        [::std::mem::align_of::<btrfs_disk_balance_args>() - 1usize];
    ["Offset of field: btrfs_disk_balance_args::profiles"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, profiles) - 0usize];
    ["Offset of field: btrfs_disk_balance_args::devid"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, devid) - 16usize];
    ["Offset of field: btrfs_disk_balance_args::pstart"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, pstart) - 24usize];
    ["Offset of field: btrfs_disk_balance_args::pend"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, pend) - 32usize];
    ["Offset of field: btrfs_disk_balance_args::vstart"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, vstart) - 40usize];
    ["Offset of field: btrfs_disk_balance_args::vend"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, vend) - 48usize];
    ["Offset of field: btrfs_disk_balance_args::target"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, target) - 56usize];
    ["Offset of field: btrfs_disk_balance_args::flags"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, flags) - 64usize];
    ["Offset of field: btrfs_disk_balance_args::stripes_min"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, stripes_min) - 80usize];
    ["Offset of field: btrfs_disk_balance_args::stripes_max"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, stripes_max) - 84usize];
    ["Offset of field: btrfs_disk_balance_args::unused"]
        [::std::mem::offset_of!(btrfs_disk_balance_args, unused) - 88usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_balance_item {
    pub flags: __le64,
    pub data: btrfs_disk_balance_args,
    pub meta: btrfs_disk_balance_args,
    pub sys: btrfs_disk_balance_args,
    pub unused: [__le64; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_balance_item"][::std::mem::size_of::<btrfs_balance_item>() - 448usize];
    ["Alignment of btrfs_balance_item"][::std::mem::align_of::<btrfs_balance_item>() - 1usize];
    ["Offset of field: btrfs_balance_item::flags"]
        [::std::mem::offset_of!(btrfs_balance_item, flags) - 0usize];
    ["Offset of field: btrfs_balance_item::data"]
        [::std::mem::offset_of!(btrfs_balance_item, data) - 8usize];
    ["Offset of field: btrfs_balance_item::meta"]
        [::std::mem::offset_of!(btrfs_balance_item, meta) - 144usize];
    ["Offset of field: btrfs_balance_item::sys"]
        [::std::mem::offset_of!(btrfs_balance_item, sys) - 280usize];
    ["Offset of field: btrfs_balance_item::unused"]
        [::std::mem::offset_of!(btrfs_balance_item, unused) - 416usize];
};
pub const BTRFS_FILE_EXTENT_INLINE: _bindgen_ty_1 = 0;
pub const BTRFS_FILE_EXTENT_REG: _bindgen_ty_1 = 1;
pub const BTRFS_FILE_EXTENT_PREALLOC: _bindgen_ty_1 = 2;
pub const BTRFS_NR_FILE_EXTENT_TYPES: _bindgen_ty_1 = 3;
pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_file_extent_item {
    pub generation: __le64,
    pub ram_bytes: __le64,
    pub compression: __u8,
    pub encryption: __u8,
    pub other_encoding: __le16,
    pub type_: __u8,
    pub disk_bytenr: __le64,
    pub disk_num_bytes: __le64,
    pub offset: __le64,
    pub num_bytes: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_file_extent_item"][::std::mem::size_of::<btrfs_file_extent_item>() - 53usize];
    ["Alignment of btrfs_file_extent_item"]
        [::std::mem::align_of::<btrfs_file_extent_item>() - 1usize];
    ["Offset of field: btrfs_file_extent_item::generation"]
        [::std::mem::offset_of!(btrfs_file_extent_item, generation) - 0usize];
    ["Offset of field: btrfs_file_extent_item::ram_bytes"]
        [::std::mem::offset_of!(btrfs_file_extent_item, ram_bytes) - 8usize];
    ["Offset of field: btrfs_file_extent_item::compression"]
        [::std::mem::offset_of!(btrfs_file_extent_item, compression) - 16usize];
    ["Offset of field: btrfs_file_extent_item::encryption"]
        [::std::mem::offset_of!(btrfs_file_extent_item, encryption) - 17usize];
    ["Offset of field: btrfs_file_extent_item::other_encoding"]
        [::std::mem::offset_of!(btrfs_file_extent_item, other_encoding) - 18usize];
    ["Offset of field: btrfs_file_extent_item::type_"]
        [::std::mem::offset_of!(btrfs_file_extent_item, type_) - 20usize];
    ["Offset of field: btrfs_file_extent_item::disk_bytenr"]
        [::std::mem::offset_of!(btrfs_file_extent_item, disk_bytenr) - 21usize];
    ["Offset of field: btrfs_file_extent_item::disk_num_bytes"]
        [::std::mem::offset_of!(btrfs_file_extent_item, disk_num_bytes) - 29usize];
    ["Offset of field: btrfs_file_extent_item::offset"]
        [::std::mem::offset_of!(btrfs_file_extent_item, offset) - 37usize];
    ["Offset of field: btrfs_file_extent_item::num_bytes"]
        [::std::mem::offset_of!(btrfs_file_extent_item, num_bytes) - 45usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_csum_item {
    pub csum: __u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_csum_item"][::std::mem::size_of::<btrfs_csum_item>() - 1usize];
    ["Alignment of btrfs_csum_item"][::std::mem::align_of::<btrfs_csum_item>() - 1usize];
    ["Offset of field: btrfs_csum_item::csum"]
        [::std::mem::offset_of!(btrfs_csum_item, csum) - 0usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_dev_stats_item {
    pub values: [__le64; 5usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_dev_stats_item"][::std::mem::size_of::<btrfs_dev_stats_item>() - 40usize];
    ["Alignment of btrfs_dev_stats_item"][::std::mem::align_of::<btrfs_dev_stats_item>() - 1usize];
    ["Offset of field: btrfs_dev_stats_item::values"]
        [::std::mem::offset_of!(btrfs_dev_stats_item, values) - 0usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_dev_replace_item {
    pub src_devid: __le64,
    pub cursor_left: __le64,
    pub cursor_right: __le64,
    pub cont_reading_from_srcdev_mode: __le64,
    pub replace_state: __le64,
    pub time_started: __le64,
    pub time_stopped: __le64,
    pub num_write_errors: __le64,
    pub num_uncorrectable_read_errors: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_dev_replace_item"][::std::mem::size_of::<btrfs_dev_replace_item>() - 72usize];
    ["Alignment of btrfs_dev_replace_item"]
        [::std::mem::align_of::<btrfs_dev_replace_item>() - 1usize];
    ["Offset of field: btrfs_dev_replace_item::src_devid"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, src_devid) - 0usize];
    ["Offset of field: btrfs_dev_replace_item::cursor_left"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, cursor_left) - 8usize];
    ["Offset of field: btrfs_dev_replace_item::cursor_right"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, cursor_right) - 16usize];
    ["Offset of field: btrfs_dev_replace_item::cont_reading_from_srcdev_mode"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, cont_reading_from_srcdev_mode) - 24usize];
    ["Offset of field: btrfs_dev_replace_item::replace_state"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, replace_state) - 32usize];
    ["Offset of field: btrfs_dev_replace_item::time_started"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, time_started) - 40usize];
    ["Offset of field: btrfs_dev_replace_item::time_stopped"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, time_stopped) - 48usize];
    ["Offset of field: btrfs_dev_replace_item::num_write_errors"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, num_write_errors) - 56usize];
    ["Offset of field: btrfs_dev_replace_item::num_uncorrectable_read_errors"]
        [::std::mem::offset_of!(btrfs_dev_replace_item, num_uncorrectable_read_errors) - 64usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_block_group_item {
    pub used: __le64,
    pub chunk_objectid: __le64,
    pub flags: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_block_group_item"][::std::mem::size_of::<btrfs_block_group_item>() - 24usize];
    ["Alignment of btrfs_block_group_item"]
        [::std::mem::align_of::<btrfs_block_group_item>() - 1usize];
    ["Offset of field: btrfs_block_group_item::used"]
        [::std::mem::offset_of!(btrfs_block_group_item, used) - 0usize];
    ["Offset of field: btrfs_block_group_item::chunk_objectid"]
        [::std::mem::offset_of!(btrfs_block_group_item, chunk_objectid) - 8usize];
    ["Offset of field: btrfs_block_group_item::flags"]
        [::std::mem::offset_of!(btrfs_block_group_item, flags) - 16usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_block_group_item_v2 {
    pub used: __le64,
    pub chunk_objectid: __le64,
    pub flags: __le64,
    pub remap_bytes: __le64,
    pub identity_remap_count: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_block_group_item_v2"]
        [::std::mem::size_of::<btrfs_block_group_item_v2>() - 36usize];
    ["Alignment of btrfs_block_group_item_v2"]
        [::std::mem::align_of::<btrfs_block_group_item_v2>() - 1usize];
    ["Offset of field: btrfs_block_group_item_v2::used"]
        [::std::mem::offset_of!(btrfs_block_group_item_v2, used) - 0usize];
    ["Offset of field: btrfs_block_group_item_v2::chunk_objectid"]
        [::std::mem::offset_of!(btrfs_block_group_item_v2, chunk_objectid) - 8usize];
    ["Offset of field: btrfs_block_group_item_v2::flags"]
        [::std::mem::offset_of!(btrfs_block_group_item_v2, flags) - 16usize];
    ["Offset of field: btrfs_block_group_item_v2::remap_bytes"]
        [::std::mem::offset_of!(btrfs_block_group_item_v2, remap_bytes) - 24usize];
    ["Offset of field: btrfs_block_group_item_v2::identity_remap_count"]
        [::std::mem::offset_of!(btrfs_block_group_item_v2, identity_remap_count) - 32usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_free_space_info {
    pub extent_count: __le32,
    pub flags: __le32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_free_space_info"][::std::mem::size_of::<btrfs_free_space_info>() - 8usize];
    ["Alignment of btrfs_free_space_info"]
        [::std::mem::align_of::<btrfs_free_space_info>() - 1usize];
    ["Offset of field: btrfs_free_space_info::extent_count"]
        [::std::mem::offset_of!(btrfs_free_space_info, extent_count) - 0usize];
    ["Offset of field: btrfs_free_space_info::flags"]
        [::std::mem::offset_of!(btrfs_free_space_info, flags) - 4usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_qgroup_status_item {
    pub version: __le64,
    pub generation: __le64,
    pub flags: __le64,
    pub rescan: __le64,
    pub enable_gen: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_qgroup_status_item"]
        [::std::mem::size_of::<btrfs_qgroup_status_item>() - 40usize];
    ["Alignment of btrfs_qgroup_status_item"]
        [::std::mem::align_of::<btrfs_qgroup_status_item>() - 1usize];
    ["Offset of field: btrfs_qgroup_status_item::version"]
        [::std::mem::offset_of!(btrfs_qgroup_status_item, version) - 0usize];
    ["Offset of field: btrfs_qgroup_status_item::generation"]
        [::std::mem::offset_of!(btrfs_qgroup_status_item, generation) - 8usize];
    ["Offset of field: btrfs_qgroup_status_item::flags"]
        [::std::mem::offset_of!(btrfs_qgroup_status_item, flags) - 16usize];
    ["Offset of field: btrfs_qgroup_status_item::rescan"]
        [::std::mem::offset_of!(btrfs_qgroup_status_item, rescan) - 24usize];
    ["Offset of field: btrfs_qgroup_status_item::enable_gen"]
        [::std::mem::offset_of!(btrfs_qgroup_status_item, enable_gen) - 32usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_qgroup_info_item {
    pub generation: __le64,
    pub rfer: __le64,
    pub rfer_cmpr: __le64,
    pub excl: __le64,
    pub excl_cmpr: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_qgroup_info_item"][::std::mem::size_of::<btrfs_qgroup_info_item>() - 40usize];
    ["Alignment of btrfs_qgroup_info_item"]
        [::std::mem::align_of::<btrfs_qgroup_info_item>() - 1usize];
    ["Offset of field: btrfs_qgroup_info_item::generation"]
        [::std::mem::offset_of!(btrfs_qgroup_info_item, generation) - 0usize];
    ["Offset of field: btrfs_qgroup_info_item::rfer"]
        [::std::mem::offset_of!(btrfs_qgroup_info_item, rfer) - 8usize];
    ["Offset of field: btrfs_qgroup_info_item::rfer_cmpr"]
        [::std::mem::offset_of!(btrfs_qgroup_info_item, rfer_cmpr) - 16usize];
    ["Offset of field: btrfs_qgroup_info_item::excl"]
        [::std::mem::offset_of!(btrfs_qgroup_info_item, excl) - 24usize];
    ["Offset of field: btrfs_qgroup_info_item::excl_cmpr"]
        [::std::mem::offset_of!(btrfs_qgroup_info_item, excl_cmpr) - 32usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_qgroup_limit_item {
    pub flags: __le64,
    pub max_rfer: __le64,
    pub max_excl: __le64,
    pub rsv_rfer: __le64,
    pub rsv_excl: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_qgroup_limit_item"]
        [::std::mem::size_of::<btrfs_qgroup_limit_item>() - 40usize];
    ["Alignment of btrfs_qgroup_limit_item"]
        [::std::mem::align_of::<btrfs_qgroup_limit_item>() - 1usize];
    ["Offset of field: btrfs_qgroup_limit_item::flags"]
        [::std::mem::offset_of!(btrfs_qgroup_limit_item, flags) - 0usize];
    ["Offset of field: btrfs_qgroup_limit_item::max_rfer"]
        [::std::mem::offset_of!(btrfs_qgroup_limit_item, max_rfer) - 8usize];
    ["Offset of field: btrfs_qgroup_limit_item::max_excl"]
        [::std::mem::offset_of!(btrfs_qgroup_limit_item, max_excl) - 16usize];
    ["Offset of field: btrfs_qgroup_limit_item::rsv_rfer"]
        [::std::mem::offset_of!(btrfs_qgroup_limit_item, rsv_rfer) - 24usize];
    ["Offset of field: btrfs_qgroup_limit_item::rsv_excl"]
        [::std::mem::offset_of!(btrfs_qgroup_limit_item, rsv_excl) - 32usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_verity_descriptor_item {
    pub size: __le64,
    pub reserved: [__le64; 2usize],
    pub encryption: __u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_verity_descriptor_item"]
        [::std::mem::size_of::<btrfs_verity_descriptor_item>() - 25usize];
    ["Alignment of btrfs_verity_descriptor_item"]
        [::std::mem::align_of::<btrfs_verity_descriptor_item>() - 1usize];
    ["Offset of field: btrfs_verity_descriptor_item::size"]
        [::std::mem::offset_of!(btrfs_verity_descriptor_item, size) - 0usize];
    ["Offset of field: btrfs_verity_descriptor_item::reserved"]
        [::std::mem::offset_of!(btrfs_verity_descriptor_item, reserved) - 8usize];
    ["Offset of field: btrfs_verity_descriptor_item::encryption"]
        [::std::mem::offset_of!(btrfs_verity_descriptor_item, encryption) - 24usize];
};
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct btrfs_remap_item {
    pub address: __le64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of btrfs_remap_item"][::std::mem::size_of::<btrfs_remap_item>() - 8usize];
    ["Alignment of btrfs_remap_item"][::std::mem::align_of::<btrfs_remap_item>() - 1usize];
    ["Offset of field: btrfs_remap_item::address"]
        [::std::mem::offset_of!(btrfs_remap_item, address) - 0usize];
};
pub const BTRFS_SEARCH_ARGS_BUFSIZE: usize = 3992;
pub const BTRFS_BLOCK_GROUP_RESERVED: ::std::os::raw::c_ulonglong = 844424930131968;
pub type request_t = ::std::os::raw::c_ulonglong;
pub const BTRFS_IOC_SNAP_CREATE: request_t = 1342215169;
pub const BTRFS_IOC_DEFRAG: request_t = 1342215170;
pub const BTRFS_IOC_RESIZE: request_t = 1342215171;
pub const BTRFS_IOC_SCAN_DEV: request_t = 1342215172;
pub const BTRFS_IOC_FORGET_DEV: request_t = 1342215173;
pub const BTRFS_IOC_TRANS_START: request_t = 37894;
pub const BTRFS_IOC_TRANS_END: request_t = 37895;
pub const BTRFS_IOC_SYNC: request_t = 37896;
pub const BTRFS_IOC_CLONE: request_t = 1074041865;
pub const BTRFS_IOC_ADD_DEV: request_t = 1342215178;
pub const BTRFS_IOC_RM_DEV: request_t = 1342215179;
pub const BTRFS_IOC_BALANCE: request_t = 1342215180;
pub const BTRFS_IOC_CLONE_RANGE: request_t = 1075876877;
pub const BTRFS_IOC_SUBVOL_CREATE: request_t = 1342215182;
pub const BTRFS_IOC_SNAP_DESTROY: request_t = 1342215183;
pub const BTRFS_IOC_DEFRAG_RANGE: request_t = 1076925456;
pub const BTRFS_IOC_TREE_SEARCH: request_t = 3489698833;
pub const BTRFS_IOC_TREE_SEARCH_V2: request_t = 3228603409;
pub const BTRFS_IOC_INO_LOOKUP: request_t = 3489698834;
pub const BTRFS_IOC_DEFAULT_SUBVOL: request_t = 1074304019;
pub const BTRFS_IOC_SPACE_INFO: request_t = 3222311956;
pub const BTRFS_IOC_START_SYNC: request_t = 2148045848;
pub const BTRFS_IOC_WAIT_SYNC: request_t = 1074304022;
pub const BTRFS_IOC_SNAP_CREATE_V2: request_t = 1342215191;
pub const BTRFS_IOC_SUBVOL_CREATE_V2: request_t = 1342215192;
pub const BTRFS_IOC_SUBVOL_GETFLAGS: request_t = 2148045849;
pub const BTRFS_IOC_SUBVOL_SETFLAGS: request_t = 1074304026;
pub const BTRFS_IOC_SCRUB: request_t = 3288372251;
pub const BTRFS_IOC_SCRUB_CANCEL: request_t = 37916;
pub const BTRFS_IOC_SCRUB_PROGRESS: request_t = 3288372253;
pub const BTRFS_IOC_DEV_INFO: request_t = 3489698846;
pub const BTRFS_IOC_FS_INFO: request_t = 2214630431;
pub const BTRFS_IOC_BALANCE_V2: request_t = 3288372256;
pub const BTRFS_IOC_BALANCE_CTL: request_t = 1074041889;
pub const BTRFS_IOC_BALANCE_PROGRESS: request_t = 2214630434;
pub const BTRFS_IOC_INO_PATHS: request_t = 3224933411;
pub const BTRFS_IOC_LOGICAL_INO: request_t = 3224933412;
pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: request_t = 3233846309;
pub const BTRFS_IOC_SEND: request_t = 1078236198;
pub const BTRFS_IOC_DEVICES_READY: request_t = 2415957031;
pub const BTRFS_IOC_QUOTA_CTL: request_t = 3222311976;
pub const BTRFS_IOC_QGROUP_ASSIGN: request_t = 1075352617;
pub const BTRFS_IOC_QGROUP_CREATE: request_t = 1074828330;
pub const BTRFS_IOC_QGROUP_LIMIT: request_t = 2150667307;
pub const BTRFS_IOC_QUOTA_RESCAN: request_t = 1077974060;
pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: request_t = 2151715885;
pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: request_t = 37934;
pub const BTRFS_IOC_GET_FSLABEL: request_t = 2164298801;
pub const BTRFS_IOC_SET_FSLABEL: request_t = 1090556978;
pub const BTRFS_IOC_GET_DEV_STATS: request_t = 3288896564;
pub const BTRFS_IOC_DEV_REPLACE: request_t = 3391394869;
pub const BTRFS_IOC_FILE_EXTENT_SAME: request_t = 3222836278;
pub const BTRFS_IOC_GET_FEATURES: request_t = 2149094457;
pub const BTRFS_IOC_SET_FEATURES: request_t = 1076925497;
pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: request_t = 2152240185;
pub const BTRFS_IOC_RM_DEV_V2: request_t = 1342215226;
pub const BTRFS_IOC_LOGICAL_INO_V2: request_t = 3224933435;
pub const BTRFS_IOC_GET_SUBVOL_INFO: request_t = 2179503164;
pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: request_t = 3489698877;
pub const BTRFS_IOC_INO_LOOKUP_USER: request_t = 3489698878;
pub const BTRFS_IOC_SNAP_DESTROY_V2: request_t = 1342215231;
pub const BTRFS_IOC_ENCODED_READ: request_t = 2155385920;
pub const BTRFS_IOC_ENCODED_WRITE: request_t = 1081644096;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct iovec {
    pub _address: u8,
}