Re: Fix SWSUSP & !SWAP

Pavel Machek
2003-04-24T09:25:06Z

Hi!

> > No, ext3 will be "unclean" during resume (you can't really unmount it
> > during suspend!) and r-o mounting of ext3 will replay journal and
> > cause data corruption.
>
> Sorry, I still don't get it. Go through the steps for me:
>
> 1) suspend writes pages to disk
>
> 2) machine is shutdown
>
> 3) restart, journal replay
>
> 4) resume reads pages from disk.

And now you have kernel which expects data still in journal (that was
state before suspend), but reality on disk is quite different (journal
was replayed). Data corruption.

Simple enough steps?
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]