summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up some indentation and comments.grog1999-08-241-15/+109
| | | | | | | | | | | | | | | | | vinum_init(): Change name of variable plexindex to objindex, which better describes its purpose. initsd(): Add a second parameter to determine whether it should wait for completion or not. This allows it to DTRT when called with the -w flag either directly or via initplex(). Add 'setstate' command (function vinum_setstate ()) to implement the VINUM_SETSTATE_FORCE ioctl for diddling individual object states. This is a repair tool which can also be used for panicing the system. Use with utmost care if at all. Add unimplemented commands 'checkparity' and 'rebuildparity'. Watch this space.
* set_sd_state: Correct the conditions for bringing up empty orgrog1999-08-241-44/+73
| | | | | | | | | | | | | | initialized subdisks. Tidy up some comments. Eliminate sddownstate(); it wasn't being used any more. Return REQUEST_DOWN instead. Add setstate_by_force() to implement the VINUM_SETSTATE_FORCE ioctl for diddling individual object states. This is a repair tool which can also be used for panicing the system. Use with utmost care if at all.
* Lock stripes of striped and RAID-5 plexes before writing them. Thisgrog1999-08-241-25/+36
| | | | | | | | | avoids a race condition where multiple RAID-5 subdisks are being revived at the same time. The locks should also prevent conflicts with user requests on concatenated and striped plexes, but this needs more work. Tidy up some comments.
* Add keywords setstate, checkparity, rebuildparity.grog1999-08-242-8/+14
|
* Add VINUM_SETSTATE_FORCE ioctl for diddling individual object states.grog1999-08-242-7/+15
| | | | | This is a repair tool which can also be used for panicing the system. Use with utmost care if at all.
* format_config: print preferred plex correctly.grog1999-08-241-0/+1
|
* Change parameters of unlockrange to allow calling from revive_block,grog1999-08-242-26/+26
| | | | which doesn't use request groups.
* Add declaration for vinum_setstate_by_force.grog1999-08-241-1/+2
|
* give_sd_to_drive: If we don't have space, deallocate the subdisk.grog1999-08-241-26/+56
| | | | | Previously we could end up with a valid subdisk entry pointing to offset -1 on the drive.
* vinumclose: close raw plexes and subdisks.grog1999-08-241-10/+16
|
* Add support for logging subdisk I/O.grog1999-08-242-18/+32
| | | | | Change parameters of unlockrange to allow calling from revive_block, which doesn't use request groups.
* This commit was generated by cvs2svn to compensate for changes in r50276,peter1999-08-24532-0/+150840
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import unmodified (but trimmed) ncurses 5.0 prerelease 990821.peter1999-08-24532-0/+150840
| | | | | | | This contains the full eti (panel, form, menu) extensions. bmake glue to follow. Obtained from: ftp://ftp.clark.net/pub/dickey/ncurses
* Cast pointers to uintptr_t instead of casting them to u_long, and/or vicebde1999-08-248-21/+22
| | | | versa. Cosmetic.
* Cast pointers to [u]intptr_t instead of casting them to [u_]long. Don'tbde1999-08-241-4/+4
| | | | | depend on gcc's feature of casting lvalues, especially for direct assignment where it doesn't even simplify the syntax. Cosmetic.
* Cast pointers to uintptr_t instead of casting them to u_long. Theybde1999-08-241-5/+5
| | | | | | | | | | | are still converted to u_long by assignment of the uintptr_t, and address calculations are still done using u_long. This is OK for currently supported machines, but addresses should be represented by vm_offset_t or uintptr_t in case pointers are longer than longs. "Fixed" size of linker_path[]. MAXPATHLEN + 1 was 1 too large for search paths with only one file path in them, but much too small for search paths with several long file paths in them.
* Fixed a misplaced cast to uintptr_t. Cosmetic.bde1999-08-244-28/+16
| | | | Use device_get_nameunit() instead of rolling our own.
* Cast pointers to uintptr_t instead of casting them to u_long. Don'tbde1999-08-241-4/+5
| | | | depend on gcc's feature of casting lvalues. Cosmetic.
* Use devtoname to print dev_t's instead of casting them to u_long forbde1999-08-231-6/+7
| | | | | | misprinting with %lx. Cast pointers to intptr_t instead of casting them to long. Cosmetic.
* `bootdev' is an ordinary u_long, so don't cast it to a pointer to print it.bde1999-08-232-8/+6
| | | | | | gcc warns about the cast on i386's with 64-bit longs. Print `bootdev' in all cases when we bail out because it is unreasonable.
* Cosmetic: bring closer to RELENG_3brian1999-08-231-3/+3
|
* Implement a version of s_lock_try that doesn't cause the next s_lockalc1999-08-231-20/+20
| | | | | call to panic when SL_DEBUG is set. (SL_DEBUG is currently set by default.)
* Oops, the previous commit was missing a new include.bde1999-08-232-0/+2
|
* Complain if this file is included.phk1999-08-231-1/+9
|
* Now that we can bind cdevsw to the individual dev_t, divorce the PERFMONphk1999-08-233-51/+36
| | | | | | | stuff from mem.c. If PERFMON is there, it will "steal" a minor from mem.c, but mem.c doesn't need to know about this. Fixed type of cmd argument in perfmon_ioctl().
* Initialise fsids with (user) device numbers again. Bitrot when dev_t'sbde1999-08-236-10/+10
| | | | | were changed to pointers was obscured by casting dev_t's to longs. fsids haven't even been comprised of longs since the Lite2 merge.
* Reset the UHCI controller when the device comes back from suspend.n_hibma1999-08-234-28/+79
| | | | | | | This should be replaced by proper support for suspend one day (global suspend). Submitted-by: Christopher Masto <chris@netmonger.net>
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-23102-2158/+479
| | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
* Use devtoname() to print dev_t's instead of casting them to long or u_longbde1999-08-2311-58/+61
| | | | for misprinting in %lx format.
* The nexus_attach() code works a lot better if it's actually connected topeter1999-08-234-48/+24
| | | | | the device methods... Also, don't fail to add eisa/isa because a previous device failed to attach.
* Modify the macros IMASK_UNLOCK, CPL_UNLOCK, and REL_FAST_INTR_LOCKalc1999-08-234-19/+9
| | | | to perform the s_unlock inline.
* Add 'options MFS_ROOT' back in to kernel configs -- not going to get fardwhite1999-08-234-4/+8
| | | | without that!
* Correct the inconsistent formatting in struct vm_map.alc1999-08-231-2/+2
| | | | Addendum to rev 1.47: submitted by dillon.
* struct vm_map:alc1999-08-231-2/+9
| | | | | | The lock structure cannot be the first element of the vm_map because this can result in livelock between two or more system processes trying to kmem_alloc_wait.
* Recognise the GPS receiver from Trimblen_hibma1999-08-231-0/+15
| | | | | | | | | | | | | in NMEA mode (without date). Trimble OEM Ace-II receiver. Low cost PCB with single voltage input, external active antenna and two serial ports with either NMEA and ITAPs output. Programmable to be tuned for 'time' accuracy in fixed station config. Author of tool notified. Submitted by: Dirk van Gulik <dirk.vangulik@jrc.it>
* - Make binary size smaller.kato1999-08-232-12/+12
| | | | | | - Fix typo in TDK/LANX stuff. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* Fix a mistake in my last SA_SIGINFO commit. Processes could blockcracauer1999-08-231-2/+2
| | | | | | | | SIGKILL and SIGSTOP. PR: kern/13293 Submitted by: dwmalone@maths.tcd.ie Obtained from: PR had correct fix
* Updated to new keyboard driver.kato1999-08-232-256/+28
| | | | Submitted by: yokota & nyan
* Merge from sys/dev/syscons/syscons.c revision 1.319.kato1999-08-231-4/+6
| | | | Submitted by: Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
* Merge from sys/i386/isa/npx.c revision 1.76.kato1999-08-231-1/+18
|
* Merge from sys/i386/i386/userconfig.c revision 1.153.kato1999-08-231-2/+3
|
* Merge from sys/i386/conf/options.i386 revision .1.20.kato1999-08-232-4/+2
|
* Fix a few problems on the Alpha, and fix -Wall while here.peter1999-08-231-5/+5
| | | | | | | Before: isab0@pci0:8:0: class=0x060100 card=0x00000000 chip=0xffffffffc6931080 ... After: isab0@pci0:8:0: class=0x060100 card=0x00000000 chip=0xc6931080 ...
* Correct xref: setlocal -> setlocale(3).sheldonh1999-08-231-2/+2
| | | | | PR: 13321 Submitted by: Alexey Zelkin <phantom@cris.net>
* Disable some apparently stray debug printfs:peter1999-08-231-1/+3
| | | | | | | | | | | ahc0: <Adaptec 274X SCSI host adapter> at 0x1c00-0x1cff, irq 11 (edge) ahc0: on eisa0 slot 1 ahc0: aic7770 >= Rev E, SBLKCTL = 0x8 SSTAT0 = 0x0 SFUNCT = 0x0 Twin Channel, A SCSI Id=7, B SCSI Id=7, primary A, 4/255 SCBs Not objected to by: gibbs
* Document ENOSYS error.chris1999-08-231-1/+5
| | | | PR: docs/13290
* Add new option to fdisk: -ephk1999-08-234-26/+80
| | | | | | | This wipes the MBR and creates slice 1 as a FreeBSD slice covering the disk starting from the second track to the cylinder aligned end of the disk. This is the most compatibly layout we have as far as I know.
* Add missing files from previous commits.luigi1999-08-232-0/+82
|
* Add missing file from previous commitluigi1999-08-231-0/+25
|
* Remove some files probably forgotten from previous commit.luigi1999-08-236-92/+0
|
OpenPOWER on IntegriCloud