Better HN
topnewbestaskshowjobs
Log inSign up

amtadt

3 karma · joined Jul 26, 2024 (2y ago) · 2 submissions

Submissions

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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).