ATTENTION!

From now on, >all< swapdevices must be activated with "swapon".

If you havn't got it, add this line to /etc/fstab:
	/dev/wd0b	none	swap	sw	0 0
ne sec

Reason:
We want our GENERIC* kernels to have a large selection of swap-devices, but
on the other hand, we don't want to use a wd0b as swap when we boot of a
floppy.  This way, we will never use a unexpected swapdevice.  Nothing else
has changed.
This commit is contained in:
Poul-Henning Kamp 1994-10-21 03:17:11 +00:00
parent ccc999917e
commit 2a054bc060
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3748

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm_swap.c 8.5 (Berkeley) 2/17/94
* $Id: vm_swap.c,v 1.7 1994/10/09 01:52:18 phk Exp $
* $Id: vm_swap.c,v 1.8 1994/10/09 07:35:18 davidg Exp $
*/
#include <sys/param.h>
@ -136,17 +136,12 @@ swapinit()
panic("swapvp");
#endif
/*
* If there is no swap configured, tell the user. If there is,
* try to make swap on boot device available now. If this fails,
* no swap space is available there or it isn't configured.
* If there is no swap configured, tell the user. We don't activate
* any swapspaces in the kernel. The user must explicitly use swapon
* to tell start each device.
*/
if (nswap == 0)
printf("WARNING: no swap space found\n");
else {
error = swfree(p, 0);
if (error)
printf("WARNING: no swap on boot device - use swapon\n");
}
}
void