Re: syncing the disks when entering sleep

Pavel Machek
2010-01-27T09:55:33Z

> > Per-system property, which should better be
> > per-program-that-requires-suspend. You request suspend without syncing
> > (you want it quick, battery is 90%), then the battery runs low, and
> > system daeomn requests s2ram, not realizing that someone disabled sync
> > from under him.
>
> I really prefer a per-system setting. The program that wants to sync anyway
> can easily do that by itself.

Yes, but existing apps do not know they have to sync. You are
essentially adding "break back compatibility" system wide option, when
better alternative exists... See above for concrete example where it
may hurt.

> > Nope what?
> >
> > AFAICT no new interface is needed. Just do SNAPSHOT_FREEZE, then
> > _S2RAM then _UNFREEZE.
>
> That's not quite straightforward and I wouldn't seriously suggest that to
> anyone.

Well, seems more straightforward than running around and adding sync
to all the scripts/programs just to keep existing behaviour.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html