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
{{ message }}
Repository navigation
Storage: an interrupted or aborted Btrfs scrub is shown as "Last checked <date>, no errors" #163
The pool card in web/src/screens/Storage.tsx (the Last check line under the usage numbers) only special-cases scrub.state === 'running'. For Btrfs pools the server parses btrfs scrub status into {state, errors, started} (helper/helper.mjs lines 577-580, connector/helper.py lines 240-251). state is the word after "Status:", which btrfs-progs prints as finished, running, aborted or interrupted (or "no stats available" when a pool was never scrubbed). errors is the "Error summary" line with "no errors found" turned into an empty string, and started is the "Scrub started" line.
A scrub that was cancelled or cut short (for example by a reboot part way through) still has a "Scrub started" line, and when no errors were found in what it covered, btrfs prints "Error summary: no errors found". Then errors is '' and started is set, and the UI falls through to:
p.scrub?.started ? `Last checked ${new Date(p.scrub.started).toLocaleDateString()}, no errors`
scrub.state is never consulted there, so the pool is reported as checked with no errors although the check never finished.
How to reproduce
Found by reading the code; I did not run it against a real pool. Start a scrub on a Btrfs pool, cancel it (btrfs scrub cancel) or reboot during it, then open Settings > Storage. A quick way to see the UI side without a pool is to feed the card scrub: {state: 'aborted', errors: '', started: 'Tue Nov 10 03:00:00 2026'}.
Actual: "Last checked , no errors".
Expected: something like "Last check did not finish", not a clean result.
Suggested fix
Show the clean-result text only when scrub.state === 'finished'; for aborted or interrupted say the last check did not finish.
Activity
calledtoconstruct commentedon Nov 22, 2026
Working to resolve this.
No open pull request references this issue, and no one has commented that they are working on it.
#653, #472, #797, #204, #205, #206, #207, #654, #806, #798, #264, #258, #238, and #360 share storage, setup, and new machines with this and will land in one pull request.
🤖 Generated with Grok 4.7
calledtoconstruct commentedon Nov 22, 2026
Thanks @nixfred. An aborted or interrupted scrub says the check did not finish, instead of saying there were no errors. This ships in #879.
🤖 Generated with Grok 4.7