Commit Graph

44 Commits

Author SHA1 Message Date
David E. O'Brien
90e655ea4e Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
Dima Dorfman
2694efd413 Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).
2001-06-24 20:25:23 +00:00
Ben Smithurst
e9d43b279b Kill vn related manual pages, they're not used any more.
Approved by:	phk
2001-03-29 11:36:46 +00:00
Philippe Charnier
57d4db4bc5 Typo. Move FreeBSD Id out of copyright section. 2001-03-14 19:39:29 +00:00
Poul-Henning Kamp
e10469fef8 Make md(4) and mdconfig(8) take over the role of vn(4) and vnconfig(8)
entirely as previously advertised.

md(4) adopted all assets of vn(4) some time back and has proper devfs
support and cloning abilities to boot.
2001-03-09 20:09:28 +00:00
Ruslan Ermilov
c2d03ea879 Eliminate mdocNG warnings caused by misplaced or extraneous macro calls. 2001-02-28 17:38:53 +00:00
Ruslan Ermilov
610a5778c5 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:44:04 +00:00
Poul-Henning Kamp
48b8568826 Make vnconfig annoy users for 15 seconds to make them switch to mdconfig. 2001-01-30 10:12:51 +00:00
Sheldon Hearn
af9351fc8a Catch up with rev 1.19 of vnconfig.c . 2001-01-03 10:55:23 +00:00
Matthew Dillon
10c2f24068 Imply -c when -S is specified, so 'vnconfig -s reserve -S 4 vn1' configures the
device as expected.
2000-12-31 01:27:55 +00:00
Ruslan Ermilov
8b5c4af3ff Prepare for mdoc(7)NG. 2000-12-27 15:30:30 +00:00
Poul-Henning Kamp
18d87306fd Don't do raw device 'r' mangling.
Try to use vn%d.ctl for setup and control if possible.

This paves the way for a DEVFS/cloning vn driver.
2000-12-15 16:40:11 +00:00
David E. O'Brien
1a37aa566b Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
Poul-Henning Kamp
90e1dc9f59 Make labels mandatory for vn(4). 2000-12-01 22:27:40 +00:00
Ruslan Ermilov
e97407b4f2 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 20:10:44 +00:00
Bruce A. Mah
2cfa011cb2 Fix typo: terrabytes->terabytes.
PR:		docs/21837
Submitted by:	Tony Finch <dot@dotat.at>
2000-10-09 21:17:16 +00:00
Poul-Henning Kamp
93ce5ab049 GC some old no longer supported options. 2000-09-25 12:38:55 +00:00
Kris Kennaway
0e0b415c72 Don't call warn() without a format string. 2000-07-12 00:50:15 +00:00
David E. O'Brien
5f6ed49497 Improve diagnostic message when device vnconfig'ing does not exist.
PR:	bin/6997
Submitted-by:
2000-05-14 21:05:21 +00:00
Kris Kennaway
d3e8671e13 Zap reference to /dev/rvn* 2000-05-07 08:22:33 +00:00
Gregory Sutter
cf2d6bbc58 Typo in example: 'vn0' should be 'vn1'
'boundry' -->  'boundary'
'seperated' --> 'separated'

PR:		16623
Submitted by:	Munehiro Matsuda <haro@tk.kubota.co.jp>
2000-02-17 02:54:36 +00:00
Philippe Charnier
97e84c76fd Do not dot terminate list of references. 2000-01-23 20:26:20 +00:00
Matthew Dillon
c35bc469bd Bring documentation up to date, add a few more vnconfig examples. 1999-09-21 01:03:11 +00:00
Matthew Dillon
447deba3da Fix a bug in the block number calculation for VN disks with a sector
size != 512 that are configured without a label.  The bug should only
    have effected swap-backed VN mounts without a label.

    Add several major features to VN.  In the kernel we add a swap
    pre-reservation capability, which can be used to guarentee seek
    consistency for swap-backed VN nodes.  This also incidently allows
    a swap-backed VN filesystem to be recovered after a crash in some
    cases (if the same swap blocks happen to be reserved).

    We also add a number of new options to vnconfig which do the work
    of pre-zeroing or creating/truncating/extending a file which greatly
    simplifies using VN in a file-backed configuration.

    Add FreeBSD CVS label to sys/sys/vnioctl.h, as well as a new ioctl
    flag for the swap pre-reservation feature.

Reviewed by:	Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
1999-09-17 05:34:00 +00:00
Mark J. Taylor
77cff66552 Make vnconfig's device argument not require a leading "/dev/", ala "ccdconfig".
Cleanup a few "-Wall -O" warnings.
Make "usage()" agree with man page.
1999-08-30 20:49:31 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Nik Clayton
414a35e60a Add $Id$, to make it simpler for members of the translation teams to
track.

The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:12:29 +00:00
Poul-Henning Kamp
85bee2f03a Turn an error into a warning. If running a 4.x binary on a 3.x system
we may still have vn in the kernel but not be able to see it.

This enables building -current SNAPS in a chroot on a -stable system
1999-05-16 08:09:23 +00:00
Julian Elischer
a5296b05b4 Submitted by: Matt Dillon <dillon@freebsd.org>
The old VN device broke in -4.x when the definition of B_PAGING
changed. This patch fixes this plus implements additional capabilities.
The new VN device can be backed by a file ( as per normal ), or it can
be directly backed by swap.

Due to dependencies in VM include files  (on opt_xxx options) the new
vn device cannot be a module yet. This will be fixed in a later commit.
This commit delimitted by tags {PRE,POST}_MATT_VNDEV
1999-03-14 09:20:01 +00:00
Peter Wemm
c2a1ba0f78 Automatically load the vn module if it isn't already in the kernel. 1999-01-26 04:53:09 +00:00
Joseph Koshy
0d58ca2312 Document meanings of flags to the -r and -s options. 1998-07-30 04:17:12 +00:00
Philippe Charnier
586470c149 Use err(3). Add prototypes. Document -s and -r flags. 1997-10-27 07:55:31 +00:00
Warner Losh
6c3f552a31 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
Bruce Evans
958a83b970 Use new mount args (mount "ufs" instead of MOUNT_UFS).
vnconfig doesn't seem to be in Lite2, although dev/vn is.  The Lite2
merge in userland has converted all mount calls except this one and
one for devfs in init, so we can drop support for old mount args soon.

Vnconfig probably shouldn't support mounting - it only supports ufs.
1997-03-29 11:01:54 +00:00
Peter Wemm
b7ecd01cb0 Update to compile under Lite2 fs include layout 1997-03-11 14:26:52 +00:00
Peter Wemm
476602a9d0 Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
Mike Pritchard
d79e37a33e Xref the new vn(4) man page. 1997-02-13 18:50:52 +00:00
Wolfram Schneider
bfd34a4a60 Sort cross references. 1997-01-20 00:03:00 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Wolfram Schneider
413b01e6ac man page link swapfile.8 -> vnconfig.8 1996-02-02 06:14:09 +00:00
Rodney W. Grimes
701a45221e The vnconfig man page needs updating (change vndXX to vnXX).
The -a option description is not very visible.

Submitted by:	Pierre Beyssac <pb@fasterix.freenix.fr>
Obtained from:	PR docs/447
1995-07-08 09:29:51 +00:00
Rodney W. Grimes
709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
Poul-Henning Kamp
5dad287ead The changes to support the new flags in the vn driver. 1995-03-11 09:33:25 +00:00
Poul-Henning Kamp
4da31dbbaa The vnconfig program. 1994-12-04 20:12:26 +00:00