You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add `df` — how much of the image is in use
`stat` reports the geometry: how many blocks the filesystem has. It does not say
how many are spoken for, which is the question after packing a set of programs
into a 16 MiB image — did they fit, and how much room is left.
`easyfs df` reads the two bitmaps and prints used/total for inodes, data blocks
and bytes, plus --json. Usage counts allocation, not reachability: an inode a
packer allocated but never linked counts as used, which is what a disk-usage
number should say. `check` is what distinguishes a leak from a file, and there is
a test pinning exactly that difference.
The library gains `Image::inode_usage` and `Image::data_block_usage`.
Also adds CONTRIBUTING.md, which states the rules CI already enforces rather than
new ones, repeats the format traps that cost time to learn, and names what the
project will not do.
Build note for anyone working here: after `cargo publish`, this checkout's target
directory got into a state where cargo reported `Fresh` and never rebuilt despite
a changed source file — the binary kept reproducing the old behaviour and the new
subcommand was simply absent. `cargo clean -p` was not enough; `rm -rf target`
was. Worth knowing before concluding a change did nothing.