summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Put raidframe in the attic.jsing2012-04-06134-46235/+0
|
* Eliminate redundant buf validation checks in xxstrategy() methods nowmatthew2011-07-061-2/+2
| | | | | | | | | | | | that they're implemented consistently in bounds_check_with_label(). Also, per krw's request, change bounds_check_with_label() to return 0 if the checks succeed, and change the drivers to test == -1 instead of <= 0. (Man page update to follow; intentionally omitting arch/vax/mba/hp.c from this commit because it doesn't even build currently and miod@ promises to kill it soon.) ok krw@
* remove stupid casts, ok deraadttedu2011-06-2115-50/+50
|
* Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotmatthew2011-06-051-16/+1
| | | | | | | | | of silly flag twiddling code in various disk drivers. ok deraadt@, miod@ N.B., users will need a -current disklabel(8) to be able to write new disklabels to disk now.
* Get rid of the wlabel argument to bounds_check_with_label(). It'smatthew2011-06-031-6/+4
| | | | | | | | | never done anything in OpenBSD and just clutters disk drivers with silly flag handling. More cleanup to follow. ok deraadt@, millert@; no objections krw@
* Make RAIDFRAME compilepea2011-04-142-4/+4
| | | | ok miod@
* The only sensible argument for VOP_* calls that take a struct proc pointer isoga2010-09-232-9/+9
| | | | | | | | | | | | | | | | | | curproc. A bunch of callers were passing in 0 (not even NULL, 0) as this pointer, which was fine until the called vnode function tried to do something with it. Typically, this code was then copy/pasted to various parts of the tree. Accept the facts of life and switch all of these over to passing curproc for now until the argument can be removed. Discovered by stsp trying to create a softraid on top of a vnd, which crashed with a NULL deref in vndioctl. softraid bits tested by mikeb and jsing. raidframe bits tested by pea, matthieu and naddy. The rest tested by at least thib, jsing and myself. ok thib@, jsing@.
* All users of physio(9) now pass NULL as the buf pointer argument, somatthew2010-09-221-3/+3
| | | | | | | no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
* Store a struct device pointer within struct disk and populate this whenjsing2010-09-081-2/+2
| | | | | | | disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
* the only thing left on the raidframe TODO list is to go awaytedu2010-07-011-11/+0
|
* Don't #include <sys/user.h> into files that don't need the stuffguenther2010-06-261-2/+1
| | | | | | | | it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
* missing dkio.h includes; ok krw@naddy2010-05-234-4/+8
|
* Make raidframe compile after recent #include rectification. Noted bykrw2010-04-231-1/+2
| | | | | | oga@. ok deraadt@
* Recycle unused disklabel fields in order to create a disklabel uniquejsing2010-04-231-3/+1
| | | | | | | identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-3/+3
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* catch up to readdisklabel API change; tested by matthieuderaadt2009-08-251-10/+8
|
* The only value that d_npartitions should have is MAXPARTITIONS.krw2009-05-211-2/+2
|
* Correct cases of mishandling of pending reads and writes to preventbeck2008-07-231-3/+3
| | | | | | | | | | | | | them going negative - this consists of identifying a number of cases of IO not going through the buffer cache and marking those buffers with B_RAW - as well as fixing nfs_bio to show pending writes and reads through the buffer cache via NFS still has a problem with mishandling the counters I believe in the async/sync fallback case where counters stay positive which will be addressed seperately. ok tedu@ deraadt@
* More removal of clauses 3 and 4 from NetBSD licenses.ray2008-06-271-8/+1
| | | | OK deraadt@ and millert@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-264-32/+4
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Don't bypass partition bounds check for RAW_PART. We now guarantee thatkrw2008-06-151-8/+7
| | | | | | | | | | | RAW_PART will always be 0 -> disksize, so the bounds check will always pass for i/o's to valid addresses. Now the i/o will be properly truncated if it goes past the end of the device. This prevents various adverse impacts of issuing i/o's for data past the end of the device. Repeatedly requested by todd@. ok weingart@ deraadt@
* Change all remaining MD uses of MALLOC and FREE into proper malloc() andmiod2008-05-191-2/+2
| | | | free() calls; prodded by chl@, ok krw@
* Add DIOCRLDINFO support.krw2008-03-261-1/+10
|
* Change XXgetdisklabel() to the 'normal' four parameter model tokrw2008-03-241-6/+6
| | | | | | prepare for adding missing DIOC* ioctl's. No functional change.
* typos; ok jmc@martynas2007-11-262-6/+6
| | | | | sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
* spelling fixes, from Martynas Venckus;jmc2007-11-252-4/+4
|
* Oops. Stray debug printf snuck in.krw2007-11-051-2/+1
|
* Fix some cpu_switchto fallout. Reading disklabels to find raidkrw2007-11-051-37/+23
| | | | | | | | | | | components was causing some systems to hang. The hangs were due to tsleep() being called before it was prudent to do so. Create a startup hook to find the raid components when it is safe to encounter tsleep() but before root is mounted. Noticed and fix tested by Josh Grosse (who proved the cpu_switchto link), merdely@, fkr@.
* The obvious bzero/memset -> M_ZERO changes.krw2007-09-094-29/+14
|
* Remove raidmakedisklabel(). The only invocation was commented out inkrw2007-06-231-25/+1
| | | | | | 2000, presumably because we spoof a label when one is not found. This removes the last (?) code that assigned a file type other than FS_UNUSED to the RAW_PART partition.
* b_cylinder does not need to be set on the callpath down into drivers.deraadt2007-06-201-18/+10
| | | | cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
* Bring raidgetdisklabel() into line with all other drivers by passingkrw2007-06-121-14/+16
| | | | | | | | the same parameters and honouring the spoofonly flag. DIOCGPDINFO can thus get the default label using raidgetdisklabel() and spoofonly like everyone else. Tested by fkr@ naddy@ ho@.
* all drivers should spoof version 1 labelsderaadt2007-06-081-2/+3
|
* Type of raidsize is now daddr64_t, not int. Fixes compile.krw2007-06-071-3/+3
|
* now that all partition size/offsets are potentially 64-bit, change thederaadt2007-06-061-6/+6
| | | | | | | type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
* use six new macros to access & store the 48-bit disklabel fields relatedderaadt2007-06-054-18/+18
| | | | | to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
* CCDLABELDEV/ect and RAIDLABELDEV/etc join other no-op defines in thekrw2007-04-281-15/+11
| | | | | | | trashbin of history, replaced by DISKLABELDEV/etc. No change to .o files except for __line__. ok jsg@
* ``it's'' -> ``its'' when the grammar gods require this change.miod2007-04-102-4/+4
|
* Don't print the error strings returned by readdisklabel(). If youkrw2007-02-151-2/+2
| | | | | | | | | need the debug info uncomment the printf's you need. Crude but effective way to suppress 'no disklabel' errors that pop up at the most innconvenient times to frighten users. More elegant method, DPRINTF-like constructs or something, later. "Yay!" marco@ ok deraadt@
* Get rid of another potentially unsafe pattern of foo[strlen(foo) - 1] = ...cloder2006-10-131-2/+2
| | | | OK krw, deraadt
* I don't think we're talking about animals in here, somk2006-07-092-4/+4
| | | | s/wether/whether/g.
* Use more queue macros rather than doing it by hand; ok otto@ krw@miod2006-03-051-2/+2
|
* Remove now unused zeroref member in cfattach structures.miod2006-01-211-8/+2
|
* and remove a bogus free spotted after previous committedu2005-12-081-2/+1
|
* missing free, spotted by greg ostertedu2005-12-081-1/+2
|
* Fix botch accidentally introduced by me in my last commit here.pedro2005-11-101-2/+2
| | | | Report and testing by kurt@, thanks.
* Correctly close RAID components. Fixes PR 4508, okay deraadt@pedro2005-09-181-8/+5
|
* 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@