No matter what safeguards are put in place, no file system is ever going to be 100% safe from corruption from a power interruption. I spent years on trying to bet embedded file systems as close to 100% safe as possible. There is always going to be some case where something gets corrupted when power drops at the wrong time.

The best solution is to keep writes as short as possible (including writes to the journal). There is going to be some point in the design and development where the engineer must make the best compromise between performance and reliability. Shorter writes mean lower performance and higher reliability. Longer writes mean higher performance and lower reliability. A write cache in volatile memory (which is what you have on a hard drive) is always going to be a huge reliability hit, but a huge performance gain in comparison.

PGA
--
Paul G. Allen, BSIT/SE
Owner, Sr. Engineer
Random Logic Consulting
http://www.randomlogic.com


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to