4 ms·
Something like that exists for btrfs; it's called bdtu. It has the accuracy/time trade-off you're interested in, but the implementation is quite different. It s
by mos_basik 2y ago
Something like that exists for btrfs; it's called bdtu. It has the accuracy/time trade-off you're interested in, but the implementation is quite different. It samples random points on the disk and finds out what file path they belong to. The longer it runs the more accurate it gets. The readme is good at explaining why this approach makes sense for btrfs and what its limitations are.
https://github.com/CyberShadow/btdu https://github.com/CyberShadow/btdu
- oehpr 2y agoThat is so cool!!! I have always wanted something like this! Arg I wish other filesystems supported a strategy like this!
- jszymborski 2y agoThat's so cool.
- renewiltord 2y agoDamn, `ext4` is organized differently entirely. You can't get anything useful from: sudo debugfs -R "icheck $RANDOM" /dev/nvme1 sudo debugfs -R "ncheck $res" /dev/nvme1 and recursing. That's a clever technique given btrfs structs.