NetBSD/usr.sbin/vnconfig/vnconfig.8

109 lines
3.4 KiB
Groff
Raw Normal View History

1995-12-30 21:14:01 +03:00
.\" $NetBSD: vnconfig.8,v 1.7 1995/12/30 18:14:02 thorpej Exp $
.\"
1993-12-21 07:13:39 +03:00
.\" Copyright (c) 1993 University of Utah.
.\" Copyright (c) 1980, 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Systems Programming Group of the University of Utah Computer
.\" Science Department.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)vnconfig.8 8.1 (Berkeley) 6/5/93
.\"
.Dd July 8, 1993
.Dt VNCONFIG 8
.Os BSD 4
.Sh NAME
.Nm vnconfig
.Nd configure vnode disks
1993-12-21 07:13:39 +03:00
.Sh SYNOPSIS
.Nm vnconfig Fl c
.Op Fl v
.Ar special_file
.Ar regular_file
.Nm vnconfig Fl u
.Op Fl v
.Ar special_file
1993-12-21 07:13:39 +03:00
.Sh DESCRIPTION
The
.Nm vnconfig
command configures vnode pseudo disk devices.
It will associate the special file
1993-12-21 07:13:39 +03:00
.Ar special_file
with the regular file
.Ar 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 swapping
or can contain a filesystem that is mounted in the name space.
.Pp
Options indicate an action to be performed:
.Bl -tag -width indent
.It Fl c
Configures the device.
If successful, references to
.Ar special_file
will access the contents of
.Ar regular_file .
.It Fl u
Unconfigures the device.
1993-12-21 07:13:39 +03:00
.It Fl v
Print messages to stdout describing actions taken.
.El
.Pp
If no action option is given,
.Fl c
is assumed.
.Sh FILES
.Bl -tag -width /etc/rvnd?? -compact
.It Pa /dev/rvnd??
.It Pa /dev/vnd??
1993-12-21 07:13:39 +03:00
.El
.Sh EXAMPLES
.Pp
.Dl vnconfig /dev/vnd0c /tmp/diskimage
1993-12-21 07:13:39 +03:00
.Pp
Configures the vnode disk
.Pa vnd0c .
1993-12-21 07:13:39 +03:00
.Pp
.Dl vnconfig -u /dev/vnd0c
1993-12-21 07:13:39 +03:00
.Pp
Unconfigures the
.Pa vnd0c
device.
1995-01-25 07:32:37 +03:00
.Sh BUGS
This command should really be named
.Nm vndconfig .
1993-12-21 07:13:39 +03:00
.Sh SEE ALSO
.Xr swapon 8 ,
.Xr mount 8 ,
.Xr umount 8 ,
.Xr vnd 4 .