vnconfig - configure vnode disks for file swapping or pseudo
vnconfig [-c] [-vk] rawdev regular_file
vnconfig -u [-v] rawdev
vnconfig -l [rawdev]
The vnconfig command configures vnode pseudo disk devices.
It will associate
(or disassociate) the special file rawdev with the
regular_file allowing the latter to be accessed as though it
were a disk.
Hence a regular file within the filesystem can be used for
can contain a filesystem that is mounted in the name space.
devices, vnd, and the cache-coherent devices, svnd,
If you read the regular file while using svnd, you need to
mount the svnd
with the mount option sync to ensure consistency in the
For normal operation this is not necessary.
The options are as follows:
-c Configures the device. If successful, references to
access the contents of regular_file. This is the
-k Associate an encryption key with the device. All
data will be
encrypted using the Blowfish cipher before it is
written to the
disk. Encryption only works with svnd.
-l List the vnd devices and indicate which ones are in
use. If a
specific rawdev is given, then only that one will be
-u Unconfigures the device.
-v Print messages to stdout describing actions taken.
If no action option is given, -c is assumed.
Configure the vnode disk svnd0 (all of its partitions become
# vnconfig svnd0 /tmp/diskimage
Unconfigure the same device:
# vnconfig -u svnd0
vnd(4), mount(8), swapon(8), umount(8)
This command should really be named vndconfig.
OpenBSD 3.6 July 8, 1993
[ Back ]