Subject: Swapping to vnodes
To: None <current-users@netbsd.org>
From: Gary D. Duzan <gary@wheel.tiac.net>
List: current-users
Date: 10/26/1994 10:40:42
Is there some magic to get the system to swap to a vnode device?
I can get it to mount if I fudge an /etc/disktab entry and run
newfs on it, but swapon refuses to see it:
wheel { ~ } # vnconfig -e /dev/vnd0b /var/swapfile swap
swapon: Invalid argument
wheel { ~ } # swapon /dev/vnd0b
swapon: /dev/vnd0b: device not configured
wheel { ~ } # mount /dev/vnd0b /mnt
wheel { ~ } # df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0a 967325 751008 119584 86% /
kernfs 1 1 0 100% /kern
/dev/vnd0b 9533 1 9055 0% /mnt
wheel { ~ } # disklabel -r vnd0
# /dev/rvnd0d:
type: unknown
disk: swapfile
label:
flags:
bytes/sector: 512
sectors/track: 20
tracks/cylinder: 10
sectors/cylinder: 200
cylinders: 100
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg]
b: 19997 2 swap # (Cyl. 0*- 99*)
c: 20000 0 unused 0 0 # (Cyl. 0 - 99)
d: 20000 0 unused 0 0 # (Cyl. 0 - 99)
wheel { ~ } #
This is under NetBSD/i386 1.0_Beta. Thanks.
Gary D. Duzan
Humble Practitioner of the Computer Arts