News for hackers. Stuff that matters.

amtadt

Re:Bcachefs, an Introduction/Exploration on Friday July 26, 2024 @12:34PM (#41079977)
Because CRC is in the on-disk data structure, not in the in-ram data structure. It is stripped upon reading to ram, and created upon writing to disk.

That's how bcachefs is designed right now.

Re:Bcachefs, an Introduction/Exploration on Friday July 26, 2024 @12:16PM (#41079837)
Self healing is dangerous because it can potentially corrupt good data on disk, if RAM or other system component is flaky.

Repro: supposedly only good copy is copied to ram, ram corrupts bit, crc is recalculated using corrupted but, corrupted copy is written back to disk(s).