df: show free blocks in free column

Previous change accidentally switched to showing used blocks instead,
which is less useful.

Also fix an alignment issue in the header.

Change-Id: I5878c2336009c351a5f305ab510d42354d6db18d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10229
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
PulkoMandy
2026-01-17 21:28:45 +00:00
committed by waddlesplash
parent 5779727045
commit e7ff15b674
+2 -2
View File
@@ -223,7 +223,7 @@ PrintCompact(dev_t device, FormatType format, bool strictPosix, bool all)
printf("\x1B[0m\n");
PrintType(info.fsh_name);
PrintBlocks(info.total_blocks, info.block_size, format);
PrintBlocks(usedBlocks, info.block_size, format);
PrintBlocks(info.free_blocks, info.block_size, format);
printf(" ");
PrintFlag(info.flags, B_FS_HAS_QUERY, 'Q', '-');
@@ -345,7 +345,7 @@ main(int argc, char **argv)
: (format == k512Block ? "512-blocks" : "1024-blocks"));
} else {
printf("\x1B[1mVolume\x1B[0m\n"
" Type Total Free Flags Used%% Device\n"
" Type Total Free Flags Used%% Device\n"
"----------- ---------- --------- ------- ------ -------------------\n");
}