Commit a586adb
committed
release: 0.0.7 — sparse bcachefs dev-N numbering
Bumps the package version to 0.0.7 to ship the fix for #11.
bcachefs assigns internal device indices at format / add time, so a
filesystem that's had devices added or removed can have arbitrary
gaps in `dev-N` numbering — a pool with five devices may expose
`dev-2` through `dev-6` with no `dev-0` or `dev-1`. The pre-0.0.7
discovery code probed sequentially from `dev-0` and `break`-ed on
the first missing one, so it bailed immediately on these layouts
and the mount-point string stayed empty. statvfs("") then errored,
the bcachefs CLI fallback also errored on the empty path, both
returned zero, and the top bar displayed `0.0/0.0 GiB`.
Now enumerates the actual `dev-*` entries via `read_dir` instead.
The reporter confirmed their layout (`dev-2 dev-3 dev-4 dev-5 dev-6`)
matches the predicted pattern, so this is the verified root cause.1 parent 0324b6a commit a586adb
2 files changed
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments