Re: Fix SWSUSP & !SWAP

CaT
2003-04-24T00:05:39Z

On Wed, Apr 23, 2003 at 05:07:59PM -0700, Andrew Morton wrote:
> Pavel Machek <pavel@ucw.cz> wrote:
> >
> > If you really want to "solve" it reliably, you can always
> >
> > swapon /dev/hdfoo666
>
> Seems that using a swapfile instead of a swapdev would fix that neatly.
>
> But iirc, suspend doesn't work with swapfiles. Is that correct? If so,
> what has to be done to get it working?

I'm curious. What does a swapfile solve that a swapdev does not? Either
way you need to prealloc the case (either have a chunky file in a
partition or a partition set aside) or you need to keep enough room
avail to fit the file when it's needed.

--
Martin's distress was in contrast to the bitter satisfaction of some
of his fellow marines as they surveyed the scene. "The Iraqis are sick
people and we are the chemotherapy," said Corporal Ryan Dupre. "I am
starting to hate this country. Wait till I get hold of a friggin' Iraqi.
No, I won't get hold of one. I'll just kill him."
- http://www.informationclearinghouse.info/article2479.htm