btrfs-progs
btrfs-progs copied to clipboard
List all block groups/chunks
New command has been added in v6.1 to list all block groups/chunks. Not yet finalized.
Example output:
PNumber Type PStart Length PEnd Age LStart Usage%
------- ----------------- --------- --------- --------- --- --------- ------
- empty - 1.00MiB - - - -
1 Data/single 1.00MiB 12.00MiB 13.00MiB 3 70.39GiB 86.00
- empty - 8.00MiB - - - -
2 Metadata/DUP 21.00MiB 256.00MiB 277.00MiB 49 112.90GiB 29.84
3 Metadata/DUP 277.00MiB 256.00MiB 533.00MiB 50 112.90GiB 29.84
4 Data/single 533.00MiB 1.00GiB 1.52GiB 11 76.40GiB 89.43
- empty - 16.00MiB - - - -
5 Data/single 1.54GiB 1.00GiB 2.54GiB 35 100.90GiB 34.93
6 Data/single 2.54GiB 1.00GiB 3.54GiB 34 99.90GiB 53.12
7 Data/single 3.54GiB 1.00GiB 4.54GiB 6 71.40GiB 64.98
8 Data/single 4.54GiB 1.00GiB 5.54GiB 33 98.90GiB 97.59
9 Data/single 5.54GiB 1.00GiB 6.54GiB 32 97.90GiB 91.22
- empty - 64.00MiB - - - -
10 Data/single 6.60GiB 448.00MiB 7.04GiB 2 69.95GiB 99.98
11 Data/single 7.04GiB 1.00GiB 8.04GiB 31 96.90GiB 89.36
12 System/DUP 8.04GiB 32.00MiB 8.07GiB 47 112.87GiB 0.05
13 System/DUP 8.07GiB 32.00MiB 8.10GiB 48 112.87GiB 0.05
- empty - 448.00MiB - - - -
14 Metadata/DUP 8.54GiB 256.00MiB 8.79GiB 41 112.12GiB 38.30
15 Metadata/DUP 8.79GiB 256.00MiB 9.04GiB 42 112.12GiB 38.30
16 Metadata/DUP 9.04GiB 256.00MiB 9.29GiB 43 112.37GiB 45.14
17 Metadata/DUP 9.29GiB 256.00MiB 9.54GiB 44 112.37GiB 45.14
18 Metadata/DUP 9.54GiB 256.00MiB 9.79GiB 51 113.15GiB 39.64
19 Metadata/DUP 9.79GiB 256.00MiB 10.04GiB 52 113.15GiB 39.64
20 Data/single 10.04GiB 1.00GiB 11.04GiB 30 95.90GiB 86.46
21 Data/single 11.04GiB 1.00GiB 12.04GiB 15 80.40GiB 98.74
22 Data/single 12.04GiB 1.00GiB 13.04GiB 29 94.90GiB 75.36
23 Data/single 13.04GiB 1.00GiB 14.04GiB 36 102.15GiB 44.38
24 Metadata/DUP 14.04GiB 256.00MiB 14.29GiB 45 112.62GiB 53.41
25 Metadata/DUP 14.29GiB 256.00MiB 14.54GiB 46 112.62GiB 53.41
26 Data/single 14.54GiB 1.00GiB 15.54GiB 28 93.90GiB 74.87
27 Metadata/DUP 15.54GiB 256.00MiB 15.79GiB 0 45.00GiB 34.78
28 Metadata/DUP 15.79GiB 256.00MiB 16.04GiB 1 45.00GiB 34.78
29 Metadata/DUP 16.04GiB 256.00MiB 16.29GiB 53 113.40GiB 12.17
30 Metadata/DUP 16.29GiB 256.00MiB 16.54GiB 54 113.40GiB 12.17
31 Data/single 16.54GiB 1.00GiB 17.54GiB 13 78.40GiB 78.98
32 Data/single 17.54GiB 1.00GiB 18.54GiB 27 92.65GiB 76.05
33 Data/single 18.54GiB 1.00GiB 19.54GiB 26 91.65GiB 81.63
34 Metadata/DUP 19.54GiB 256.00MiB 19.79GiB 57 115.65GiB 16.44
Remaining work:
- test on mult-device filesystems, the grouping is wrong in combination with --sort
- finish the sorting infrastructure (to allow multiple keys and direction), replace current sorting keys
Now available in the experimental build, sorting a few columns work, multi device works (device id is printed in the column).
Remaining: reorder columns
Devid PNumber Type/profile PStart Length PEnd LNumber LStart Usage%
----- ------- ----------------- --------- --------- --------- ------- --------- ------
1 1 Data/single 1.00MiB 84.00MiB 85.00MiB 68 191.60GiB 58.93
1 2 System/DUP 85.00MiB 32.00MiB 117.00MiB 39 140.17GiB 0.05
1 3 System/DUP 117.00MiB 32.00MiB 149.00MiB 40 140.17GiB 0.05
1 4 Metadata/DUP 149.00MiB 192.00MiB 341.00MiB 59 188.41GiB 71.61
1 5 Metadata/DUP 341.00MiB 192.00MiB 533.00MiB 60 188.41GiB 71.61
1 6 Data/single 533.00MiB 1.00GiB 1.52GiB 49 169.91GiB 72.69
1 7 Data/single 1.52GiB 16.00MiB 1.54GiB 69 191.68GiB 79.81
1 8 Data/single 1.54GiB 1.00GiB 2.54GiB 17 100.90GiB 48.20
...
Documentation updated. I'll move it out of experimental in 6.10 and then reorder the columns after feedback. Eventually the list of columns can be also specified e.g. like the util-linux tools do.