Re: swappiness=0 makes software suspend fail.

From: Rob Landley
Date: Mon May 31 2004 - 06:45:34 EST


On Monday 31 May 2004 05:17, Andrew Morton wrote:
> btw, software suspend wrecks your swap partition if you suspend to swap but
> do not resume from swap - you need to run mkswap again. Seems odd.

I think it's intentional, so that if you you boot to a different kernel swapon
-a won't automount the swap partition and hork your saved image.

Of course, mounting/fscking any of the filesystems in question would kinda
screw that up too, and if the swap partition's is in the other kernel's fstab
then presumably overlapping filesystems probably are too. (Intentional isn't
necessarily the same thing as right... :)

Rob

--
www.linucon.org: Linux Expo and Science Fiction Convention
October 8-10, 2004 in Austin Texas. (I'm the con chair.)

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