Re: Swap Files

=?ISO-8859-1?Q?Johan_Myr=E9en?= (jem@vistacom.fi)
Mon, 20 Jan 1997 17:22:12 +0200 (EET)


On Sat, 18 Jan 1997, Andrew E. Mileski wrote:

> > swapoff -a turnes off only partitions/files that are listed as swap in
> > fstab.
> >
> > The solution is to either swapoff each file individually in rc.0 or to add
> > them to fstab. The latter solution will give some (harmless) errors if the
> > swapfiles are not on the root filesystem.
>
> Well wouldn't it make sense to have "swapoff -a" affect ALL swap areas?

I don't think so. swapon -a means "swap on all swap areas mentioned in
/etc/fstab", so swapoff -a should mean "stop swapping on the areas
mentioned in /etc/fstab". If you add swap areas manually, why can't you
remove them manually? Why would you even *want* swapoff -a to remove a
swap area swapon -a hasn't added?

Johan Myreen
jem@iki.fi