News for hackers. Stuff that matters.
Re:Scripts for Btrfs Maintenance by Gigachad on Tuesday June 06, 2023 @08:12PM (#36220946)
If it was a good idea, I assume it should already be happening for me. What would be the point of mindlessly running some command periodically?
Re:Scripts for Btrfs Maintenance by kevincox on Tuesday June 06, 2023 @08:34PM (#36221134)
Because different use cases have different requirements. So having the maintenance command be separate from the filesystem gives ultimate flexibility.
Re:Scripts for Btrfs Maintenance by Gigachad on Tuesday June 06, 2023 @09:55PM (#36221833)
The OP comment didn't give any context for what you should be thinking to make a judgement call on. Just blindly "run this command periodically". If I'm not making any actual decision, it should just be run for me by default.
Re:Scripts for Btrfs Maintenance by bravetraveler on Tuesday June 06, 2023 @09:00PM (#36221370)
Does your car wash itself? /s

It very well may be! Depending on your distribution... they may already have similar services/timers for periodic scrubbing

On Fedora they aren't provided; but are with Arch

Unless you run an array it's fairly meaningless, beyond being an administrative-reporting tool. It can't fix failed checksums without mirrors or parity

I think the checksums are validated on read anyway, so it's mostly to mitigate bitrot - very specific to 'glacial' storage

Re:Scripts for Btrfs Maintenance by lmm on Tuesday June 06, 2023 @09:24PM (#36221583)
> If it was a good idea, I assume it should already be happening for me.

It would, if you were running a well-designed/maintained operating system. Unfortunately many Linux distributions make poor decisions.