#4088 NORM Never A: Files should be synced to Nand when battery is critically low
Zarro Boogs per Child
bugtracker at laptop.org
Tue Oct 9 02:39:41 EDT 2007
#4088: Files should be synced to Nand when battery is critically low
----------------------------------+-----------------------------------------
Reporter: HoboPrimate | Owner: cjb
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: power manager (OHM) | Version:
Resolution: | Keywords:
Verified: 0 |
----------------------------------+-----------------------------------------
Comment(by AlbertCahalan):
Replying to [comment:2 marco]:
> In general though I don't think there is way to be completely safe
against a power failure. I think OHM or Sugar should shutdown the system
when the batter is about to dry out.
Databases have done this for years. Being safe means atomic transactions.
Some filesystem operations are supposed to be atomic; jffs2 is responsible
for taking that all the way to the storage.
Bonus: if you make things safe for power loss, then you can eliminate a
bunch of code (including any bugs) by ripping out the shutdown code.
--
Ticket URL: <https://dev.laptop.org/ticket/4088#comment:5>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list