summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe (follow)
Commit message (Collapse)AuthorAgeFilesLines
* don't hide the process context in rf_close_component(), since we maypedro2004-11-281-4/+2
| | | | | need it later on to do locking stuff. fixes the problem with raid reconstruction, as described in pr 3968. ok mickey@ tedu@ tdeval@
* addres -> addressmiod2004-09-201-2/+2
|
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-9/+3
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* new arg to disk_unbusy, to record separate read/write statistics.tedu2004-02-151-2/+3
| | | | | looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
* Remove unused files.grange2004-02-082-3453/+0
| | | | ok tdeval@ millert@ drahn@
* Do not fill more than the first three fields of cfdriver structures unlessmiod2004-01-141-2/+2
| | | | necessary. No functional change.
* on behalf of tdeval@:henning2003-11-271-13/+13
| | | | | fix several errnous error messages (hah) partitially from PR3566
* typos from Jared Yanovich;jmc2003-10-261-2/+2
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-022-12/+4
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.ho2003-04-274-24/+26
|
* Temporary fix for PR#3069 (thanks for the report, Alex Cichowski), untiltdeval2003-01-193-23/+17
| | | | | I find time to really follow all cases. At least it works here, and doesn't add new problems, it seems.
* Wording.tdeval2003-01-191-3/+3
|
* Major KNF. Incentive from Tedutdeval2002-12-16137-15494/+19383
|
* Missing initialization.tdeval2002-12-031-1/+2
| | | | thanks Greg Oster
* Remove more '\n's from panic() statements. Both trailing and leading.krw2002-10-121-8/+8
| | | | Last bits of diff generated by Chris Kuethe.
* Remove more '\n's from panic() statements. Both trailing and leading.krw2002-10-121-8/+8
| | | | Diff generated by Chris Kuethe.
* Remove those noisy informational messages from dmesg.tdeval2002-08-095-38/+54
| | | | | | Use the option RAIDDEBUG to get these. Theo, thanks for suggesting.
* Clean up hook cookies from shutdown hook.tdeval2002-08-052-2/+8
|
* No need to disestablish the startuphook.art2002-07-151-6/+1
| | | | It's done automatically now.
* spelling; from Brian Poole <raj@cerias.purdue.edu>todd2002-06-141-2/+2
|
* splbio protection for biodone()tdeval2002-05-282-14/+22
| | | | ok art@
* max length of debug variablestdeval2002-05-222-8/+10
|
* Introduce a new file, machine/internal_types.h, to hold that specific archespie2002-04-241-2/+2
| | | | | | | | | | | | | type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
* Final __P removal plus some cosmetic fixupsmillert2002-03-142-8/+8
|
* First round of __P removal in sysmillert2002-03-144-98/+97
|
* numraid is needed, always.tdeval2002-03-081-5/+5
|
* Implement a shutdown hook.tdeval2002-03-063-69/+84
| | | | We now can safely swap on raid.
* Cope with the new pid allocation semantic from nordin@tdeval2002-02-161-6/+3
| | | | ok nordin@, deraadt@
* Pool deals fairly well with physical memory shortage, but it doesn't dealart2002-01-231-3/+2
| | | | | | | | | | | | | | | | | | well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
* Enable the RAIDFrame auto-configuration feature.tdeval2001-12-294-112/+449
| | | | | | | | | | | This permits one to setup a kernel able to automatically retrieve, during boot, the raid configuration from disks previously used in a RAIDFrame set. Moreover, one can define a raid set to contain a bootable partition that will be mounted on / before the system has started. A new RAID_AUTOCONFIG kernel option is used, in conjunction with the raid pseudo-device, to activate the feature. ok drahn@, deraadt@
* Fix compilation error when building a raid enabled kernel.tdeval2001-12-081-3/+12
| | | | OK deraadt@
* occured->occurredmpech2001-09-201-2/+2
| | | | | idea from deraadt@ via NetBSD millert@ ok
* More lame OpenBSD tags.fgsch2001-07-092-0/+2
|
* Fix PR/1489 - apply patch supplied - thanks Michael Joosten <joost@c-lab.de>peter2001-01-021-2/+2
| | | | | | The whole issue of processes and threads need looking at, as NetBSD and OpenBSD do things slightly differently - think extra arg to VOP_XXX calls for one.
* sync RAIDframe with Gre Oster's work for NetBSD.peter2000-08-0834-1049/+3399
| | | | | | | | | | | | | | | | | | | This update incorporates changes since January 2000. RAID1 and RAID5 tested for functionality matching the 2.7 code. A number of bug fixes (including stopping a parity rebuild when unconfiguring) have been included. See Greg's RAIDframe info page: http://www.cs.usask.ca/staff/oster/raid.html The RAID_AUTOCONFIG feature set does *NOT* yet work. These features require more work throughout the boot system and as such are a big task. IMPORTANT: As with anything that is this near live data on your systems, please test carefully with existing configurations before deploying in a live system. Feedback via sendbug or mail direct to peter@wonderland.org is appreciated.
* sync with NetBSDpeter2000-01-1145-1319/+846
| | | | | | | | | | | - removed threadid stuff - removed unused files - general tidyup - you can no longer configure the same unit twice (without de-configuring first of course). Again, this has only been tested locally on IDE disks. Further testing and feedback would be appreciated.
* remove 'INTEGRATE' macro that did static __inline__ in advance of doingpeter2000-01-111-15/+9
| | | | more work on the whole code base
* sync with NetBSD - remove an unused prototype.peter2000-01-111-7/+3
|
* sync with NetBSDpeter2000-01-082-8/+7
| | | | | - remove unused are from IO_BUF_ERR in rf_driver.c - remove unused define in rf_stripelocks.c
* sync with work by Greg Oster on NetBSDpeter2000-01-0750-1536/+965
| | | | | | | | | | | | | | | | | | | | | | | | Please note: This update has *only* been tested on i386 with IDE disks. Could someone with a spare box please make sure all is OK with SCSI and maybe other arches ? sparc testing will follow locally. * remove rf_sys.h * many changes to make it more stable * some performance increases * All raid threads now get their own kernel process and the calling raidctl(8) program will show status progress through a meter. * In theory FFS_SOFTUPDATES and RAIDframe will now work together - NOT TESTED YET See http://www.cs.usask.ca/staff/oster/raid.html This updates include Greg's changes to Jan 4th 2000. TODO: * some odd behaviour when running raictl -c on an already config'ed raid set - problem founf, fix being done * progress meter is in raidctl(8) - seperate commit, but could do with sync'ing with OpenBSD ftp version
* Init b_dep so that soft updates work.art1999-12-031-1/+2
|
* writen->writtentodd1999-10-292-4/+4
|
* * remove redundant rf_ccmn.hpeter1999-08-0416-202/+38
| | | | | | | | | | * remove init call to rf_ConfigureEtimer() and rf_sys.c in which it is the only function. update conf/files to reflect this. * update sources to make sure _KERNEL is used not KERNEL * change rf_etimer.h to protect macros an include of sys/kernel.h with a check for _KERNEL - let raidctl compile again.
* * rf_reconstruct.c: adopt nilkas' suggestion regard statics andpeter1999-08-038-211/+163
| | | | | | | | | | | | | | | __inline__ - this is a proof of concept and will cover the raidframe source as a whole over coming updates. Update namespace of function to prefix with rf_ - comments again welcome. * overall: rework the macros in rf_etimer.h and the resultant changes to their use to count microseconds and not clock ticks. Restore the code in rf_revent.c to a similar strcuture to before the previous commit, and use the system timers to govern resource usage. Tested with local i386/IDE and the reconstruction of a disk in my array - performance has improved for reconstruction at no noticable CPU cost.
* revert from using static functions, as per niklas@openbsd.org advice.peter1999-08-021-14/+14
|
* fix reconstruction performance. the old code used home-grown timerspeter1999-08-021-27/+26
| | | | | | | | | | | | | | | | based upon hardcoded CPU speed values and an assumtion that the number of clock cycles was available. This is/was silly. redone rf_GetNextReconEvent so that is now runs for 1/10th second before sleeping for a short time (1/50th sec). Locally, this is using about 25% of the CPU while rebuilding a disk in a four disk IDE RAID5 array. It was 22% of the way through when I last looked... much much faster. An even better way is sought - suggestions welcome. Lots of code that the old routines relied on canm be harvested later. Patches also being sent to Greg Oster @ NetBSD group.
* minor style nitpeter1999-08-021-3/+4
|
* * make some function static, copied from rf_netbsdkintf.cpeter1999-08-021-16/+16
| | | | | * move composition og openmask in raidclose to before where it is tested.
* restore the NetBSD specific files to their -current state frompeter1999-08-022-43/+37
| | | | | NetBSD. There is no reason to mess with these; they are just being carried around as a reference at the moment.
* Update RAIDframe from NetBSD-current as of 1999/07/26.peter1999-07-3024-550/+2402
| | | | | | | | Please note that you *must* follow the upgrade instructions at http://www.cs.usask.ca/staff/oster/clabel_upgrade.html before installing the new raidctl and new kernel using this code.