Re: Fix SWSUSP & !SWAP

Pavel Machek
2003-04-24T09:23:58Z

Hi!

> > Swapfile does not work, because even readonly mount wants to replay
> > logs, and that'd be disk corruption.
>
> I don't understand. During suspend, you just need a list of blocks to
> write to from the swapfile. You can get that list before starting the
> actual suspend, so that writing doesn't imply any filesystem activity.
>
> When you're resuming, you just need a list of which disk blocks to
> resume from. Can't that list be stored in a few blocks of the
> swapfile itself, with the only critical parameter being the first
> block number to resume from?

And how do you pass that first number? Please user could you write
this down to paper and enter it on commandline during suspend?

Okay, okay, this could be made to work. You could store pointer in
swapspace or in reserved block somewhere...
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]