lkml.org 
[lkml]   [2003]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fix SWSUSP & !SWAP
Pavel Machek wrote:
> 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?

(A bit like LILO has a map file containing the list of blocks which
contain the kernel to boot.)

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.108 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site