summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
AgeCommit message (Collapse)Author
2008-07-23Correct cases of mishandling of pending reads and writes to preventBob Beck
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@
2008-06-27More removal of clauses 3 and 4 from NetBSD licenses.Ray Lai
OK deraadt@ and millert@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-06-15Don't bypass partition bounds check for RAW_PART. We now guarantee thatKenneth R Westerback
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@
2008-05-19Change all remaining MD uses of MALLOC and FREE into proper malloc() andMiod Vallat
free() calls; prodded by chl@, ok krw@
2008-03-26Add DIOCRLDINFO support.Kenneth R Westerback
2008-03-24Change XXgetdisklabel() to the 'normal' four parameter model toKenneth R Westerback
prepare for adding missing DIOC* ioctl's. No functional change.
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2007-11-25spelling fixes, from Martynas Venckus;Jason McIntyre
2007-11-05Oops. Stray debug printf snuck in.Kenneth R Westerback
2007-11-05Fix some cpu_switchto fallout. Reading disklabels to find raidKenneth R Westerback
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@.
2007-09-09The obvious bzero/memset -> M_ZERO changes.Kenneth R Westerback
2007-06-23Remove raidmakedisklabel(). The only invocation was commented out inKenneth R Westerback
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.
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-12Bring raidgetdisklabel() into line with all other drivers by passingKenneth R Westerback
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@.
2007-06-08all drivers should spoof version 1 labelsTheo de Raadt
2007-06-07Type of raidsize is now daddr64_t, not int. Fixes compile.Kenneth R Westerback
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
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
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-04-28CCDLABELDEV/ect and RAIDLABELDEV/etc join other no-op defines in theKenneth R Westerback
trashbin of history, replaced by DISKLABELDEV/etc. No change to .o files except for __line__. ok jsg@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-02-15Don't print the error strings returned by readdisklabel(). If youKenneth R Westerback
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@
2006-10-13Get rid of another potentially unsafe pattern of foo[strlen(foo) - 1] = ...Chad Loder
OK krw, deraadt
2006-07-09I don't think we're talking about animals in here, soMichael Knudsen
s/wether/whether/g.
2006-03-05Use more queue macros rather than doing it by hand; ok otto@ krw@Miod Vallat
2006-01-21Remove now unused zeroref member in cfattach structures.Miod Vallat
2005-12-08and remove a bogus free spotted after previous commitTed Unangst
2005-12-08missing free, spotted by greg osterTed Unangst
2005-11-10Fix botch accidentally introduced by me in my last commit here.Pedro Martelletto
Report and testing by kurt@, thanks.
2005-09-18Correctly close RAID components. Fixes PR 4508, okay deraadt@Pedro Martelletto
2004-11-28don't hide the process context in rf_close_component(), since we mayPedro Martelletto
need it later on to do locking stuff. fixes the problem with raid reconstruction, as described in pr 3968. ok mickey@ tedu@ tdeval@
2004-09-20addres -> addressMiod Vallat
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
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@
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-02-08Remove unused files.Alexander Yurchenko
ok tdeval@ millert@ drahn@
2004-01-14Do not fill more than the first three fields of cfdriver structures unlessMiod Vallat
necessary. No functional change.
2003-11-27on behalf of tdeval@:Henning Brauer
fix several errnous error messages (hah) partitially from PR3566
2003-10-26typos from Jared Yanovich;Jason McIntyre
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-27strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.Hakan Olsson
2003-01-19Temporary fix for PR#3069 (thanks for the report, Alex Cichowski), untilThierry Deval
I find time to really follow all cases. At least it works here, and doesn't add new problems, it seems.
2003-01-19Wording.Thierry Deval
2002-12-16Major KNF. Incentive from TeduThierry Deval
2002-12-03Missing initialization.Thierry Deval
thanks Greg Oster
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Last bits of diff generated by Chris Kuethe.
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-08-09Remove those noisy informational messages from dmesg.Thierry Deval
Use the option RAIDDEBUG to get these. Theo, thanks for suggesting.
2002-08-05Clean up hook cookies from shutdown hook.Thierry Deval
2002-07-15No need to disestablish the startuphook.Artur Grabowski
It's done automatically now.
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries