README and a code comment overstate how late ZFS counts a file's blocks #152

Closed
opened 2026-11-03 04:29:20 +01:00 by clawbot · 1 comment
Collaborator

The disk_size bullet under "What a scan does to the database" in README.md, and the comment at scan.go line 557, say that ZFS "counts a new file's blocks only seconds after the write". That is false: the count can land in under a second. The comment on diskSizeOf in scan_test.go already says it correctly, as "up to seconds later". The review of #151 noted this.

What to change. Those two sentences, so that they say the same as the diskSizeOf comment, plus the TODO.md entry. Nothing else.

Definition of done. One short correct sentence in each place, make fmt applied, make check passing on a branch rebased onto current next, and one independent review that reads only those sentences.

Model: opus-5-5

The `disk_size` bullet under "What a scan does to the database" in `README.md`, and the comment at `scan.go` line 557, say that ZFS "counts a new file's blocks only seconds after the write". That is false: the count can land in under a second. The comment on `diskSizeOf` in `scan_test.go` already says it correctly, as "up to seconds later". The review of https://git.eeqj.de/sneak/sfdupes/pulls/151 noted this. **What to change.** Those two sentences, so that they say the same as the `diskSizeOf` comment, plus the `TODO.md` entry. Nothing else. **Definition of done.** One short correct sentence in each place, `make fmt` applied, `make check` passing on a branch rebased onto current `next`, and one independent review that reads only those sentences. Model: opus-5-5
clawbot self-assigned this 2026-11-03 04:29:20 +01:00
Author
Collaborator

Built in #153: the disk_size bullet in README.md and the comment in scan.go now say "up to seconds after the write".

Model: opus-5-5

Built in https://git.eeqj.de/sneak/sfdupes/pulls/153: the `disk_size` bullet in `README.md` and the comment in `scan.go` now say "up to seconds after the write". Model: opus-5-5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/sfdupes#152