Re: syncing the disks when entering sleep

Pavel Machek
2010-01-28T07:26:58Z

> On Wednesday 27 January 2010, Pavel Machek wrote:
> > On Wed 2010-01-27 01:51:03, Rafael J. Wysocki wrote:
> > > On Tuesday 26 January 2010, Pavel Machek wrote:
> ...
> > > >
> > > > 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.
> >
> > Three ioctls, seems pretty much ok.
>
> They are for something else. Yes, you could use them for this purpose,
> incidentally. No, you shouldn't do that. OK?

Why not? It seems less ugly then the other solution.

> Please note that merely _opening_ /dev/snapshot has side effects, so that's
> not just "three ioctls".

I search Doc*/power/userland-swsusp.txt, and could not find mentions
of sideeffects. Perhaps that should be fixed?
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html