btrfs-progs: list-chunks: update column names

Make the column names more descriptive, PNumber is from times when there
was only physical sort. Make the type/profile more explicit, later it
can be filtered by that. The 'Age' reflects the current allocation
strategy to always pick a higher number but this could become confusing,
it's really the number when sorted by logical offset.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-07-14 14:22:24 +02:00
parent 8d2843afca
commit cac019e583

View File

@ -898,12 +898,12 @@ static int print_list_chunks(struct list_chunks_ctx *ctx, unsigned sort_mode,
int j;
devid = e.devid;
table_printf(table, 0, tabidx, ">PNumber");
table_printf(table, 1, tabidx, ">Type");
table_printf(table, 0, tabidx, ">Number");
table_printf(table, 1, tabidx, ">Type/profile");
table_printf(table, 2, tabidx, ">PStart");
table_printf(table, 3, tabidx, ">Length");
table_printf(table, 4, tabidx, ">PEnd");
table_printf(table, 5, tabidx, ">Age");
table_printf(table, 5, tabidx, ">LNumber");
table_printf(table, 6, tabidx, ">LStart");
if (with_usage) {
table_printf(table, 7, tabidx, ">Usage%%");