Commit Graph

16 Commits

Author SHA1 Message Date
phk
6da2b22ce5 GC some old no longer supported options. 2000-09-25 12:38:55 +00:00
kris
b2ae75bb55 Don't call warn() without a format string. 2000-07-12 00:50:15 +00:00
obrien
7ead15a56f Improve diagnostic message when device vnconfig'ing does not exist.
PR:	bin/6997
Submitted-by:
2000-05-14 21:05:21 +00:00
dillon
77cf4cb54b 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
mtaylor
0b81e841f1 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
efabb9ccb1 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
phk
0502f4560f 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
0c3f3973d2 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
d5e1466ec0 Automatically load the vn module if it isn't already in the kernel. 1999-01-26 04:53:09 +00:00
charnier
32c601ba50 Use err(3). Add prototypes. Document -s and -r flags. 1997-10-27 07:55:31 +00:00
imp
691010efad 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
bde
29f905f3b2 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
e9253fba9a Update to compile under Lite2 fs include layout 1997-03-11 14:26:52 +00:00
rgrimes
4f960dd75f Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
phk
9cd847bbf3 The changes to support the new flags in the vn driver. 1995-03-11 09:33:25 +00:00
phk
267256d1f5 The vnconfig program. 1994-12-04 20:12:26 +00:00