summaryrefslogtreecommitdiffstats
path: root/sbin/vinum
Commit message (Collapse)AuthorAgeFilesLines
* Remove label command. It has been deprecated since December 1998, andgrog2003-06-121-37/+1
| | | | | | recent changes broke it altogether. Prompted by: phk
* Remove "label" keyword.grog2003-06-121-2/+1
|
* mdoc(7) fixes: Fixed the markup in the BUGS section, bumped document date.ru2003-05-191-4/+5
|
* vinum_read: Don't lock configuration from userland. If vinum(8)grog2003-05-081-7/+1
| | | | | | | | crashes, the config remains locked and causes all subsequent start or read attempts to fail. This is part of a fix for the recently reported hangs. Approved by: re (scottl)
* Centralize _PATH_* definitions.obrien2003-05-051-1/+1
| | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
* Typo in last commit.phk2003-05-051-1/+1
| | | | Spotted by: mbr
* Add a BUGS section which explains that & why vinum volumes can not bephk2003-05-051-0/+6
| | | | encrypted with gbde(8).
* vinum_start: Call vinum_read with correct number of parameters.grog2003-05-051-1/+1
|
* vinum_readpol: Get this right.grog2003-05-051-19/+20
| | | | | | Submitted by: Allan Saddi <allan@saddi.com> vinum_read: White space cleanup.
* Finally implement read policies. The previous "implementation" didn'tgrog2003-05-051-3/+7
| | | | | | | | | | | | | | | | | | | | | | work because it referred to plexes which were almost invariably when referred to. Instead, deprecate the "prefer" keyword for volumes (though it's still there for the moment) and add a keyword "preferred" to the plex definition. The relationship is like this: Old: vol foo ... prefer foo.p3 New: plex foo.p3 volume foo preferred printconfig: Print out the "preferred" keyword for plexes where appropriate. Still print out "prefer" for volumes. The kernel module continues to accept this version, but it's probably not going to live much longer.
* Rewrite of startup code:grog2003-05-041-56/+13
| | | | | | | | | | | vinum_read: Accept 0 parameters, hand an empty string to the kernel if so. Use new ioctl VINUM_READCONFIG, not VINUM_CREATE, to read config. vinum_start: When passed 0 parameters, drop the devstat kludge and call vinum_read instead. It's no longer necessary to distinguish between "start" and "read" if no parameters are passed, and probably one of them should go away.
* Remove VINUMDEBUG. vinum(8) always compiles with VINUMDEBUG to be ablegrog2003-05-011-1/+1
| | | | to cope with kernel modules with VINUMDEBUG.
* Add the #includes previously in individual .c files.grog2003-05-011-4/+27
| | | | Change name of history file to History to avoid name conflicts.
* Move most #includes to vext.h.grog2003-05-011-57/+38
| | | | | | | | | | | | | | | | Change name of history file to History to avoid name conflicts. Don't try to make devices unless devfs has been removed. Don't accept resetconfig command from a file. Abused by: Jens Schweikhardt <schweikh@schweikhardt.net> Remove dead code (#if 0) vinum_mirror: Don't try to create mirrors with 0 drives. Found by: mismatch between enum kw in two different files.
* Move most #includes to vext.h.grog2003-05-011-50/+33
| | | | | | | | | | | | Change name of history file to History to avoid name conflicts. Rewrite minor number decoding. Now we have only three types of object: subdisks, plexes and volumes. The encoding for plexes and subdisks no longer reflects the object to which they belong. The super devices are high-order volume numbers. This gives vastly more potential volumes (4 million instead of 256). Don't try to chown directories if they haven't been created.
* Move most #includes to vext.h.grog2003-05-011-153/+206
| | | | | | | vinum_info: Use increasing verbosity to show time spent in disk driver. Correct a comment.
* Update to use current version of devstat API.phk2003-03-152-4/+4
|
* Add #include <sys/resource.h>phk2003-02-162-0/+2
|
* Remove #include <sys/dkstat.h>phk2003-02-161-1/+0
|
* Rename bio_linkage to the more obvious bio_parent.phk2003-02-071-0/+1
| | | | Add bio_t0 timestamp, and include <sys/time.h> where needed
* 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.
OpenPOWER on IntegriCloud