|
|
Log in / Subscribe / Register

A tale of two data-corruption bugs

A tale of two data-corruption bugs

Posted May 26, 2015 15:41 UTC (Tue) by iabervon (subscriber, #722)
In reply to: A tale of two data-corruption bugs by JdGordy
Parent article: A tale of two data-corruption bugs

If the macro name had been uppercase from the start, the original code probably wouldn't have had the bug of changing sector. And the way to avoid that bug that the author chose would probably not have been to reload it, since the author was more likely at that time to know that bio had changed than Neil Brown was recently.

It's also easier to catch the second problem in review with it being new code than as a change to old code.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds