Hi Kai, > > So yes, there might be conditions where you crash before fsync really > > completes and you lose the SMS. However, there's nothing in the world > > you can do about this case anyway, since both the write and the fsync > > succeeded. > > I think this is perfectly reasonable. Even if some storage system > had some internal caches outside the kernel sync's reach, I'd imagine > flushing these would be a prime candidate for last-minute actions done > before battery dies (or some sensor detecting the device is about to > hit a brick wall in about a few milliseconds ;)).
so the device health or charging daemon or whatever will most likely shut down the device cleanly before the battery dies completely. The case that a device suddenly dies, because the battery is empty does not really exist. At least with all the charging magic these days that would be pretty bad for the device and the battery. I would expect a clean kill of the oFono daemon and I bet you that even have time to shutdown the modem properly. So even the modem can save all its states. Regards Marcel _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
