lkml.org 
[lkml]   [1997]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Swap Files
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


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