Re:Show HN: Dut, a fast Linux disk usage calculator
by svpg on Thursday July 11, 2024 @01:42AM
(#40933967)
It could hash the contents of a dir. Along the lines of git
[ Parent
| on HN ]
Re:Show HN: Dut, a fast Linux disk usage calculator
by Galanwe on Thursday July 11, 2024 @01:57AM
(#40934012)
Except hashing requires... reading.
There is not much to be done here. Directories entries are just names, no guarantees that the files were not modified or replaced.
The best you could do is something similar to the strategies of rsync, rely on metadata (modified date, etc) and cross fingers nobody did `cp -a`.
Re:Show HN: Dut, a fast Linux disk usage calculator
by shellfishgene on Thursday July 11, 2024 @02:23AM
(#40934101)
I would be fine with the latter, the program could display a warning like "Results may be inaccurate, full scan required" or something.
I guess I'm just annoyed that for Windows/NTFS really fast programs are available but not for Linux filesystems.