summaryrefslogtreecommitdiffstats
path: root/sbin/vinum/list.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix some 64 bit warnings. You can't fit a pointer in an int.peter2003-10-261-4/+4
|
* 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.
* 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-151-2/+2
|
* Add #include <sys/resource.h>phk2003-02-161-0/+1
|
* vinum_info: Correct the print formats to allow for 64 bit pointers.grog2002-12-121-8/+8
| | | | Approved by: re (jhb).
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* 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.
* 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.
* Fix vinum for both devfs and non-devfs systems.alfred2001-02-201-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Remove references to lockinfo.plex.grog2001-01-141-10/+7
| | | | Reported by: dougb
* roughlength: Use correct format strings.grog2000-12-201-4/+4
|
* Add new function dumpconfig: dump the configuration informationgrog2000-06-021-0/+219
| | | | | | | | | directly off the drives. This command shows a minor problem: it requires that the device nodes exist, whereas kernel Vinum does not. Thus dumpconfig may show no configuration for certain drives which are up and happily running. This is documented in the man page.
* vinum_info: Use the correct field to determine whether trace entriesgrog2000-05-111-16/+11
| | | | | | | | | are read or write. Bug-introduced-in: Revision 1.26 Show percentage complete in brief status of reviving and initializing subdisks.
* B_READ is gone, check for BIO_READ instead.phk2000-03-201-8/+8
| | | | Not tested.
* Increase the time we'll wait for a reviving disk to carry on and notgrog2000-03-011-4/+14
| | | | | | be marked as stalled, from 1 second to 5 seconds. Implicitly-sanctioned-by: jkh
* vinum_ldi: Honour the 'recurse' flag and show the subdisks on thisgrog2000-02-291-22/+69
| | | | | | | | | | | | | | | | | | drive if it is set. vinum_lvi: Change line spacing. This is still not right. Change checks for striped or RAID-5 plexes to a macro 'isstriped', which now also includes RAID-4. Change checks for RAID-5 plexes to a macro 'isparity', which now also includes RAID-4. vinum_lsi: If the subdisk is initializing or reviving, don't wait a whole second to check whether it's advancing; wait in increments of 50 ms up to 1 second. This makes for a barely perceptible delay. Approved-by: jkh
* Explicitly type large scalar parameters to avoid compilation warningsgrog2000-01-051-90/+168
| | | | | | | | | | | | | | | | on alpha. Submitted-by: Bernd Walter <ticso@cicely.de> Replace %q formats with %lld. Desired-by: bde Remove #ifdef RAID5 vinum_lsi: If a subdisk is in 'reviving' state, check the status of the revive and report the status of the revive. In verbose mode, display the pid of the reviver.
* Change the name of the v flag variable from 'verbose' to 'vflag',grog1999-10-131-26/+41
| | | | | | | | | | | | | | | | indicating the multiple use (verbose or verify). vinum_ldi: Show active requests for the drive if -v is specified. White space cleanup. vinum_lsi: Show the progress of an init command if -v is specified. vinum_info: Print the number of active requests. Print out loginfo_sdio and loginfo_sdiodone log entries.
* Brucify comments.grog1999-09-281-23/+66
| | | | | | | | | | | | | | vinum_lpi: Add information about progress of rebuildparity and checkparity commands. listconfig: Print object counts in a different format, don't refer to the internal number of slots allocated: Caused-confusion-to: Norbert Meissner <norbert.meissner@daimlerchrysler.com> vinum_info: Change format of device numbers so that they fit in the column (ignore high-order minor number bits, which aren't really of much interest).
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* vinum_info(): Add support for logging subdisk I/O.grog1999-08-241-17/+21
|
* vinum_info: add code to print out lock events.grog1999-08-141-7/+32
| | | | modify format of other event printouts.
* Import RAID-5 code.grog1999-08-071-30/+120
| | | | | | | | | | | | | | | | | | | | | Add Cybernet copyright. OK'd-by: Chuck Jacobus <chuck@cybernet.com> vinum_ldi: Calculate the percentage used correctly. vinum_lsi: Flag detached subdisks. vinum_info: Request info: get the major and minor numbers and print them correctly. list_defective_objects: New function, for listing objects which aren't up after vinum_start. Requested-by: Steve Taylor <staylor@cybernet.com>
* Change the name of the s option to indicate that it wears more thangrog1999-07-021-12/+12
| | | | | | one hat. Change formats as the result of changes in drive structure.
* vinum_ldi:grog1999-06-221-3/+4
| | | | | | | | | | | | | Show the available sectors relative to the user-available part of the drive (don't include the config space at the beginning). This stops an empty drive reporting only 99% available. Requested-by: staylor printconfig: Show sizes in sectors with the suffix 's' instead of the now-deprecated 'b'.
* printconfig:grog1999-05-021-16/+41
| | | | | | split into vinum_printconfig (interactive) and printconfig (called from vinum_printconfig and from vinum_create when starting an interactive update.
* When looking at all objects, look at all objects.grog1999-04-171-19/+22
| | | | | | vinum_lsi: Print rough size of plex in parentheses. Print drive info with -v option (previously required -V).
* Change the meaning of the combination of -s and no -v option in thegrog1999-03-311-74/+133
| | | | | | list functions. Previously, it would produce a non-verbose listing of the objects followed individually by a statistics listing. Now it produces only a one-line-per-object statistics listing.
* info command: Remove opencount parameter, print value of open flag.grog1999-03-131-1/+1
|
* Change the format of the lists to reflect loss of pid field.grog1999-03-021-15/+21
| | | | | | Show open state as a flag. vinum_ldi: Show available space in short form listing.
* Update to reflect major changes in vinum kernel modulegrog1999-01-211-75/+36
|
* Fix problems compiling without -DVINUMDEBUGgrog1999-01-061-3/+7
| | | | Reported by: dg
* Tweaks as a result of having vinum statically buildable in a kernel.peter1998-12-281-3/+3
|
* Correct u_int_64 casting to remove warnings in printf()grog1998-11-031-2/+2
|
* Show revive pointer in percentage complete as well as absolute value.grog1998-11-021-4/+5
|
* list.c:grog1998-10-211-4/+106
| | | | | Add dump of last requests with 'info -V'. This requires the requests to be enabled with 'debug 8'.
* Don't assume that time_t is long.bde1998-10-171-3/+7
|
* Import base vinum userland sourcesgrog1998-09-161-0/+743
OpenPOWER on IntegriCloud