VNDCONFIG(8) BSD System Manager's Manual VNDCONFIG(8)NAMEvndconfig - configure vnode devices
SYNOPSISvndconfig [-f] [-s] [-u unit] file name
vndconfig [-c] [-u unit]
DESCRIPTION
Vndconfig associates a regular file with a vnd(4) pseudo disk unit. The
regular file provides the backing store for the the vnd(4) pseudo disk.
The user immutable flag is set on the regular file to prevent realloca-
tion of the blocks being used by the vnd(4) pseudo disk.
The options are as follows:
-c If no partitions on the pseudo disk unit are open the unit will
be cleared. The user immutable flag on the regular file which
was providing backing store for the pseudo disk will also be
cleared.
-f If the vnd(4) pseudo disk is not cleared before the system re-
boots the user immutable bit will be left set. The option is used
to force clearing of the user immutable bit before configuring
the device. This option will likely always be required when set-
ting up vnd(4) pseudo disks as part of normal boot in rc(8).
-u Specify the vnd(4) unit which is being initialized or cleared.
This defaults to 0.
-s This flags is used to indicated that the pseudo disk being con-
figured is read-only or is only going to be used as a swap de-
vice. If a vnd(4) pseudo disk is going to have a file system
built in it the mapping of logical blocks within the regular file
to device blocks must be done at open time to prevent dead locks.
This pre-mapping need not be done for vnd(4) pseudo disks which
are only going to be used as a swap device or will only be mount-
ed read-only such as iso9660 CD-ROM images.
FILES
/dev/vnd vnd(4) configuration device
/dev/vnd*[a-h] block vnd(4) pseudo disk devices
/dev/rvnd*[a-h] raw vnd(4) pseudo disk devices
EXAMPLESvndconfig-f -s /usr/swapfile
Create vnd(4) pseudo disk unit 0 for use as a swap file from reg-
ular file /usr/swapfile. This is a typical entry found in /etc/rc
rc(8) to set up a vnd(4) pseudo disk for use by swapon(8).
vndconfig-u 1 /tmp/floppyimage
Build vnd(4) pseudo disk unit 1 from regular file /tmp/floppyim-
age. Vnd(4) unit one can then be used to mount the floppy image
as if it were on a floppy disk being accessed through fd(4).
vndconfig-c
Clear vnd(4) unit 0.
vndconfig-c -u 0
Clear vnd(4) unit 0.
vndconfig-c -u 1
Clear vnd(4) unit 1.
SEE ALSOcd9660(8), fd(4), mount(8)mount_cd9660(8), vnd(4), rc(8), swapon(8)4th Berkeley Distribution October 18, 1996 2