Subject: Re: Swapfiles and vnodes
To: Ale Terlevich <A.I.Terlevich@durham.ac.uk>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-arm32
Date: 09/29/1996 10:10:31
On Sun, 29 Sep 1996 11:21:09 +0100 (BST) 
 Ale Terlevich <A.I.Terlevich@durham.ac.uk> wrote:

 > bash# vnconfig -v /dev/vnd0c /data/ale/swapfile 
 > /dev/vnd0c: 1048576 bytes on /data/ale/swapfile
 > bash# swapon /dev/vnd0c
 > swapon: /dev/vnd0c: device not configured
 > 
 >   Leading me to suppose that we just don't have the vnode driver 
 > configured in kernel 4626, however if I link the inst-12.fs file, I can 
 > mount it as a disk etc...

The vnd driver is configured into the kernel ... note that the vnconfig
command succeeds.

 >   So, Why can't I make a swapfile?  What device is it that isn't configured?

It's because your kernel isn't configured to swap on vnd0c ... you need
to build a kernel that lists all of the swap devices:

	config netbsd root on sd0a swap on sd0b and vnd0c

etc.

Yah, that's lame ... someone is working on replacing the swap mechanism
to allow dynamic addition/deletion of swap to block devices and regular
files (i.e. won't need vnd to use a swap file).

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939