summaryrefslogtreecommitdiffstats
path: root/sbin/vinum
Commit message (Collapse)AuthorAgeFilesLines
* While being here, remove a couple of unused "default:" labels in switchjoerg2003-01-161-4/+0
| | | | | | statements, now that gcc loudly complains about them. MFC after: 1 week
* Make vinum disk-related devices readable by group "operator" to matchjoerg2003-01-161-0/+15
| | | | | | | | | | the configuration of any other disk-like devices. This is the non-DEVFS part which is normally not used in 5.x, but due for MFC into 4.x. PR: bin/28294, bin/32588 MFC after: 1 week
* english(4) police.schweikh2002-12-271-2/+2
|
* vinum_info: Correct the print formats to allow for 64 bit pointers.grog2002-12-121-8/+8
| | | | Approved by: re (jhb).
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-212-17/+17
|
* The .Nm utility.charnier2002-07-061-12/+26
|
* Correct default location of history file.grog2002-06-231-1/+1
| | | | Observed by: Chris Bolt <chris-lists@bolt.cx>
* ANSIfy a few prototypes, thus fixing a few warnings.keramida2002-06-091-5/+5
| | | | Reviewed by: grog
* more file system > filesystemtrhodes2002-05-162-17/+17
|
* Remove unneeded include.phk2002-05-131-1/+0
| | | | | Sponsored by: DARPA & NAI Labs. Submitted by: mckusick
* vinum_start: examine storage array devices, not just disks.grog2002-04-261-3/+4
| | | | | | | Submitted by: Holger Kipp <holger.kipp@alogis.com> PR: 37458 MFC after: 5 days (to get 4.6 code freeze)
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-222-12/+12
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Change reference URLs.kuriyama2002-04-161-2/+2
| | | | | | Submitted by: Olivier Tharan <olivier.tharan@idealx.com> PR: docs/37094 MFC after: 1 week
* Default to WARNS=2.obrien2001-12-041-1/+2
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Reinstate VINUMDEBUG. Removing it also removes some diagnostic commands.grog2001-10-152-2/+1
| | | | I should reconsider whether I just leave them in without #ifdef VINUMDEBUG.
* mdoc(7) police: restore fix in rev. 1.52; .Dt should be in CAPITALS.ru2001-09-111-1/+1
|
* Use a better stripe size in the examples.grog2001-09-091-12/+12
| | | | Noted by: Sean Eric Fagan <sef@kithrup.com>
* Add some features to libdevstat, and overhaul the interface a bit:tmm2001-08-041-2/+2
| | | | | | | | | | | | | | | | | | | | | 1.) prefix all functions in the library with devstat_ (compatability functions are available for all functions that were chaned in an incompatible way, but are deprecated). 2.) Add a pointer to a kvm_t as the first argument to functions that used to get their information via sysctl; they behave the same as before when NULL is passed as this argument, otherwise, the information is obtained via libkvm using the supplied handle. 3.) Add a new function, devstat_compute_statistics(), that is intended to replace the old compute_stats() function. It offers more statistics data, and has a more flexible interface. libdevstat does now require libkvm; a library depedency is added, so that libkvm only needs to be explicitely specified for statically linked programs. The library major version number is bumped. Submitted by: Sergey A. Osokin <osa@freebsd.org.ru>, ken (3) Reviewed by: ken
* mdoc(7) police:ru2001-07-041-1/+1
| | | | Keep document title (.Dt) in CAPITALS, as required by the mdoc(7) manpage.
* Correct typo.grog2001-06-111-2/+2
| | | | Submitted by: Normand Leclerc <leclercn@videotron.ca>
* *sigh* We can't remove VINUMDEBUG entirely, since we include kernelgrog2001-05-231-3/+2
| | | | | header files and sources which depend on it. For userland, define VINUMDEBUG here. Also remove a now superfluous #ifdef.
* Remove cruft.grog2001-05-231-3/+0
|
* Remove -DVINUMDEBUG. vinum(8) now always supports debug options ifgrog2001-05-231-1/+1
| | | | the kernel module is built that way.
* Remove #ifdef VINUMDEBUG. vinum(8) now always supports debug optionsgrog2001-05-231-37/+1
| | | | | | | if the kernel module is built that way. Remove the gross debug device/non-debug device hack used to recognize whether the kernel module was in sync with the userland module.
* vinum_debug: Check for kernel module debug support, print errorgrog2001-05-231-10/+11
| | | | message if not present.
* Remove #ifdef VINUMDEBUG. vinum(8) now always supports debug optionsgrog2001-05-231-175/+175
| | | | | | | if the kernel module is built that way. vinum_info: Check for kernel module debug support, print error message if not present.
* Update description of the stripe size created by vinum_stripe,grog2001-05-221-48/+45
| | | | | | | | | | | | | | | | | vinum_mirror, vinum_raid4, vinum_raid5. Correct typos. Show new output of the 'list' and 'ls' commands. Update examples to use 279 kB stripe sizes instead of 256 kB. Clarify some text. Remove the description of the 'invalid ioctl' messages which now no longer occur. Add a description of the 'retryerrors' keyword.
* Major tidy up. Add explicit header files, thus enabling the .c filesgrog2001-05-221-26/+40
| | | | | | | | | | | | | | to avoid including the kernel headers. Move a number of definitions of userland functions from dev/vinum/vinumext.h. Desired by: bde This commit is the first of a general cleanup of the header files.. It won't be enough to make bde happy. Remove vinum_perror and associated DEVBUG definition.
* Tidy up header files. Don't include stuff we don't need.grog2001-05-221-50/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | Use userland expurgated versions of kernel structures, since that's what the ioctls return now. Remove vinum_perror. main: Check kernel version with userland version in _vinum_conf. This field is a constant which gets incremented every time the kernel-userland interface changes. This enables vinum(8) to check for the correct kernel version and to produce a useful message if it doesn't match. For previous versions, which don't have a version number, the length of the structure is different, so we can recognize it via the EINVAL return from ioctl. Supply count parameter to tokenize(). Change method of recognizing active devfs: replace devfs_is_active with (complemented) no_devfs. make_devices: remove references to devfs. If we're running devfs, we don't need to call make_devices at all. vinum_makedev (user command 'makedev'): Print a warning message if devfs is running and don't do anything else.
* Tidy up header files. Don't include stuff we don't need.grog2001-05-221-28/+40
| | | | | | | | | | | | | | | Remove vinum_perror. Modify 'list' brief printout to fit in 80 columns. Modify 'ls' brief printout to show the drive to which the subdisk before instead of the plex offset, which is usually less interesting. The verbose printout remains unchanged. Use userland expurgated versions of kernel structures, since that's what the ioctls return now. Move checkupdates here to simplify header file mess.
* Tidy up header files. Don't include stuff we don't need.grog2001-05-221-108/+107
| | | | | | | | | | | | | | | | | Remove 'vinum_perror'. Only call make_devices if we're not running devfs. Use userland expurgated versions of kernel structures, since that's what the ioctls return now. Update help list, which was lagging behind reality. checkupdates: move to list.c to simplify header file mess. vinum_stripe, vinum_mirror, vinum_raid4, vinum_raid5: change the default stripe size from 256 k to 279 k, thus hopefully spreading superblocks more evenly.
* mdoc(7) police: fix markup.ru2001-04-271-877/+818
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* Use _PATH_DEV.obrien2001-02-282-5/+7
| | | | Reviewed by: grog
* Fix vinum for both devfs and non-devfs systems.alfred2001-02-206-53/+84
| | | | | | | | | | | | | | | | | | | | | | | | | userland tool: Use the vfs.devfs.generation sysctl to test for devfs presense (thanks phk!) when devfs is active it will not try to create the device nodes in /dev and therefore will not complain about the failure to do so. Revert the change in the #define for VINUM_DIR in the kernel header so that vinum can find its device nodes. Replace perror() with vinum_perror() to print file/line when DEVBUG is defined (not defined by default). kernel: Don't use the #define names for the "superdev" creation since they will be prepended by "/dev/" (based on VINUM_DIR), instead use string constants. Create both debug and non-debug "superdev" nodes in the devfs. Problem noticed and fix tested by: Martin Blapp <mblapp@fuchur.lan.attic.ch>
* Fix typo.grog2001-01-151-4/+6
| | | | | | | | | Submitted by: Jimmy Olgeni <olgeni@uli.it> PR: 24233 Fix typos. Submitted by: "Jeroen C. van Gelderen" <jeroen@vangelderen.org>
* Remove references to lockinfo.plex.grog2001-01-141-10/+7
| | | | Reported by: dougb
* Prepare for mdoc(7)NG.ru2000-12-271-1/+1
|
* Cosmetics.grog2000-12-201-38/+42
| | | | | | | | Correct location of history file. Change references from /dev/wd to /dev/ad. Use more appropriate defaults for stripe size in examples.
* roughlength: Use correct format strings.grog2000-12-201-4/+4
|
* Correct some comments.grog2000-12-201-3/+6
| | | | | | vinum_attach: Get correct names (were being overwritten). Submitted by: Terry Glanfield <Terry.Glanfield@program-products.co.uk>
* mdoc(7) police: use canonical form of .Dd macro.ru2000-12-111-1/+1
|
* Correct the pathname of the history file.grog2000-11-231-1/+1
| | | | Reported by: Crist J . Clark <cjclark@alum.mit.edu>
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-15/+20
|
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-171-1/+1
|
* Document the correct default states for additional plexes of agrog2000-11-141-23/+31
| | | | | | | | multi-plex volume. Confusion reported by: many Clarify recommendations for default plex stripe size.
* Spell the `daemon' correctly.ru2000-11-141-2/+2
|
* Use Fx macro wherever possible.ru2000-11-141-2/+6
|
* Add 'setupstate' to RAID-10 example.grog2000-09-231-2/+7
| | | | Tripped-over-by: Nicole Harrington <nicole@picturetrail.com>
OpenPOWER on IntegriCloud