Skip to content

v1.6.14 - stop double-clean races, tell why entries were skipped, refresh capacity cards

Latest

Choose a tag to compare

@stallenlu stallenlu released this 23 Nov 01:19

1.6.14 — stop double-clean races, tell why entries were skipped, refresh capacity cards

Two bugs that both looked like "the clean didn't work":

  • Double-clean race. A double-clicked confirmation, or two clean entry points fired in the same tick, used to launch two full scans of the same folders, racing to unlink the same files. One run deleted a file, the other then hit ENOENT; the skip counter exploded to ~68k. A synchronous in-flight lock now makes the second call a no-op.
  • Skips now explain themselves. Failed entries carry an errno breakdown (gone / locked-or-denied / other), so the result banner says why entries were skipped instead of showing a bare number.
  • Capacity cards refresh. The drive cards no longer stay frozen at the first reading. They re-read live statfs numbers on every scan and every panel mount, so after a clean they show the freed space immediately.

node smoke.mjs: 129 passed, 0 failed.