mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
0b2ab695c1
Calculating free blocks in ext[234] is surprisingly hard, since by default we report "bsd" style df which doesn't count filesystem "overhead" blocks as used. With a lot of code dedicated to sorting out what to report as free, things tend to go wrong surprisingly often. Here's a test to actually try to stop the next regression. ;) NB: For bsddf, the kernel currently does not count journal blocks as overhead; it probably should. But the test below looks to have the result within 1% of perfection, so it still passes even if the kernel doesn't count the journal against free blocks. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Rich Johnston <rjohnston@sgi.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
4 lines
77 B
Plaintext
4 lines
77 B
Plaintext
QA output created by 289
|
|
minix f_blocks is in range
|
|
bsd f_blocks is in range
|