Commit Graph

79 Commits

Author SHA1 Message Date
wiz f244ebf64d Sort options. 2018-10-07 20:30:50 +00:00
mlelstv 803c93c66f Add flag to enforce file I/O even when bmap/strategy would be possible.
This makes it easier to compare both modes, it also allows coherent
operation between vnd device and image file.
2018-10-07 11:51:26 +00:00
uwe a04344bae9 Fix missed s/vnconfig/vndconfig/ in an example. 2018-05-01 09:03:49 +00:00
christos 68ed0ec4e8 improve previous, use getprogname() to get the invocation name. 2018-03-12 01:15:00 +00:00
khorben 0b9ecbe221 Reflect the new name of vndconfig(8) in the usage screen
vnconfig(8) was renamed to vndconfig(8) in NetBSD 7. While the manual page
now defaults to vndconfig, the usage screen still referred to the old name.
2018-03-12 01:10:25 +00:00
wiz e3ed9c4909 Sort sections. Use more markup. 2016-04-10 09:49:14 +00:00
martin 0e449e1bfb Cosmetic tweaks to vncfonfig -l output, from Robert Elz (with minor tweaks
[and all bugs] by me). This should restore compatibility for old scripts
trying to find free vnodes in the new cloning world order.
2016-04-10 09:04:09 +00:00
christos 8f21cd691f Since now the kernel returns ENXIO again for devices exceeding the
number of devices configured in the kernel, use that instead of
scanning /dev.
XXX: pullup to 7 together with the kernel change.
2015-11-09 17:39:20 +00:00
pgoyette 513f488856 Update to keep up with reality. In NetBSD 7, the vnconfig command was
renamed.  So add this fact to the HISTORY section and remove BUGS.

XXX Pull-up to NetBSD-7 !
2015-11-05 22:35:24 +00:00
dholland ecb4fe8383 PR bin/48829 Thomas Schmitt: vnconfig pretends to succeed on
nonexistent files
2014-05-23 20:50:16 +00:00
jmmv 4aa7c4b88e Fix LINKS spec. 2013-06-09 22:00:50 +00:00
christos 515c2000f1 bump date. 2013-06-09 18:39:31 +00:00
christos ce446494c4 Alias this to vndconfig for symmetry. 2013-06-09 18:39:05 +00:00
christos 1b081a707c Now that we grow vnd's dynamically we cannot depend on the kernel returning
ENXIO when we exceed the number of configured vnds, so in the -l case, print
info for all vnds we can find device nodes for in /dev.
2013-06-09 13:25:40 +00:00
wiz ac0c6a8e78 From Bug Hunting: Add vndcompress(1) to SEE ALSO, bump date.
While here:
New sentence, new line.
2012-07-08 22:49:55 +00:00
joerg 2d826702b5 ANSIfy + static + __dead 2011-08-30 20:54:18 +00:00
rmind bb9ae7c0c2 Restore historic SCCS IDs in the comments (were removed in previous commit).
Noted by wiz@.
2011-02-09 10:25:40 +00:00
rmind 9b6bd2d968 Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
2011-02-08 20:20:06 +00:00
dsl 111a678bed VNDIOCSET now returns a 64bit unsigned size.
Use compat ioctls if the kernel rejects the request.
Fixes PR/41873.
2009-12-06 16:35:16 +00:00
lukem 975b87b4f5 Fix -Wcast-qual and -Wshadow issues 2009-04-19 00:56:32 +00:00
christos 0c6ff192f1 fix dev_t format. 2008-12-29 03:49:17 +00:00
martin cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
wiz a464698404 Argument is regular_file, not "regular file". From YOMURA Masanori in private mail. 2005-09-11 23:49:58 +00:00
christos c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
wiz 60027a5523 Grammar fixes. 2005-07-18 14:07:18 +00:00
wiz c5541497ba Drop trailing whitespace. 2005-07-18 14:06:05 +00:00
hubertf 673730506c Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
2005-07-17 00:08:27 +00:00
lukem 1fab072e48 appease gcc -Wuninitialized 2005-06-02 09:42:57 +00:00
christos 6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
atatat 3e0cc7e92c Print device names and mount points, if at all possible, instead of
just printing device numbers.
2004-01-25 21:49:04 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
wiz c1dcf625b3 Sync usage with man page. 2003-04-16 10:29:05 +00:00
wiz 61860e9d83 Sort options in SYNOPSIS and description. 2003-04-16 10:28:55 +00:00
drochner 5f4d60be7c Add an interface to the "force" option, and fix a bug where the
"readonly" flag cleared "hasgeom".
2003-04-11 16:15:28 +00:00
yamt 4962bbeda1 bump date. 2003-03-27 16:00:50 +00:00
yamt 0aaf666dea add a new option, -r; read-only configuration. 2003-03-27 15:36:02 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
lukem 4d5f70e6b6 add DPADD for ${LIBUTIL} 2002-11-30 06:04:57 +00:00
atatat 851e916f1b Provide a means for vnconfig to indicate which devices are in use, and
by which files (hmm...why can't I unmount that file system over
there).  Currently this is just the device and inode number of the
file backing the vnd, but hopefully consing up full pathnames can be
done at some point.
2002-06-21 19:09:29 +00:00
wiz 10d6eb080d Drop duplicate .Pp. 2002-03-05 15:09:26 +00:00
wiz e1833adb69 Sort sections, sort SEE ALSO, drop a .Pp. 2002-02-02 02:08:23 +00:00
fredette bba72d2b40 Add optional "-f disktab" argument, that will look up a disk
typename in the given disktab(5) file, instead of in /etc/disktab.
2001-12-12 16:55:10 +00:00
christos 22002034fe Now that vnconfig uses opendisk(3) update it's usage encouraging use
of "vnd0" instead of "/dev/rvnd0{c,d}". Noted by tron.
2001-11-08 15:41:55 +00:00
tron 316d7126f6 Try to open the file before configuring a vnode disk device to avoid silly
error messages when the file cannot be opened for some reason. This fixes
PR bin/12445 by <knotwell@ix.netcom.com>.
2001-11-08 07:44:32 +00:00
christos 271dd3ace8 Revert previous change that accepts non-raw devices as argument. The
distrib Makefiles have been adjusted appropriately. This change made
block devices and char devices look the same to the naive user, and
it is not appropriate.
2001-11-08 02:14:09 +00:00
tron 73ec93c7eb Invoke "opendisk" with "iscooked = 1" because existing makefiles and the
manual page used the block device.
2001-11-07 16:18:03 +00:00
lukem 6b4ee83154 <sys/stat.h> is unnecessary 2001-09-26 07:05:39 +00:00
bjh21 7447cfe382 Put sections in the canonical order (from mdoc.samples(7)).
Add a "HISTORY" section.
2000-10-02 16:21:27 +00:00
bjh21 87589cb557 Replace "foo is mutually exclusive of bar" with "foo and bar are mutually
exclusive".
2000-10-02 15:11:43 +00:00