summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
AgeCommit message (Collapse)Author
2001-09-26RF_DEV2RAIDID isn't used anywhere anymore. Bye bye.oster
2001-09-26- rf_types.h doesn't really need to pull in rf_archs.hoster
- for *.c, don't rely on rf_types.h to pull in rf_archs.h
2001-09-25Nuke an unused typedef.oster
2001-09-16Spell 'occurred' with two 'r's.wiz
2001-09-01Disable all of the RF_ASSERT()s by default, enabling them if thethorpej
RAID_DIAGNOSTIC option is specified in the kernel configuration file.
2001-07-27Nuke the 5 NULL parameters from rf_DoAccess(). Observe that 4 ofoster
the variables are passed directly to rf_AllocRaidAccDesc(), and the 5th isn't even used. Hunt them down and nuke them too.
2001-07-18bcmp -> memcmpthorpej
2001-07-18bzero -> memsetthorpej
2001-07-16If we're closing the last partition on a RAID set and the system isoster
being shutdown, then unconfigure the RAID set too. This fixes a number of issues with doing proper unconfigures/shutdowns of multi-level RAID sets. Thanks to Jason Thorpe and Bill Squier for the ideas/suggestions on how/where to do this, and to Bill Squier for testing.
2001-06-21We don't need to check for raidautoconfig here, so nuke it andoster
clean up a little.
2001-06-20#if out a few more bits that arn't required if we are not doingoster
PQ or RAID6.
2001-06-19A bunch of these bits are only needed for the EVENODD stuff.oster
Shaves a little better than 1K off the size of an i386 kernel.
2001-06-14It's silly to need a parity rebuild after a reconstruction has completed.oster
If we've just reconstructed a disk, then the parity is known to be correct. (XXX doesn't hold for RAID 6!)
2001-06-08#endif /* takes no argument */mrg
2001-04-05A value of 1 for tracks/cylinder in the disklabel is apparently sub-optimal.oster
Thus we choose "4 * number_of_columns" as a more reasonable value (until someone comes up with something better). This pretends to properly address PR#11989.
2001-02-03include <sys/param.h> before <sys/ioctl.h>mrg
2001-01-27Un-'__P'ify.oster
2001-01-27Nuke some bogus debug code that was already '#if 0'ed out.oster
2001-01-27Cosmetic cleanup of some comments, and nuke an unused #define.oster
2001-01-27Having moved some of the bits needed by raidctl into rf_configure.c, weoster
no longer need those bits here. In particular, this file is now only used in the kernel, and that allows us to clean up a lot of cruft.
2001-01-27More #if's. This needs some serious rototillage, but a few #if's willoster
suffice for now.
2001-01-26My.. what a twisty little maze of #defines and dependencies. Some of thisoster
code is used for more than anticipated, and I missed a few checks last night. Thanks to Bernd Ernesti for poking me about this.
2001-01-26Nobody calls these bits if we arn't doing RAID5 with rotated spare stuff.oster
Add an #if.
2001-01-26These bits are only needed for the interdecluster stuff.. wrap themoster
with an #if.
2001-01-26Whoops.. Leave them on.. (for now.)oster
2001-01-26Give the parity declustering code their own 'RAID arch' types, andoster
allow us to turn them off if desired.
2001-01-26Lots of stuff here that is only used for some of the 'fancier' RAID types.oster
Don't compile it if we arn't going to use it.
2001-01-26Clean up some INDENT warnings. (yes, these have been there for a while!)oster
2001-01-26Various parts of this file are only needed by the even/odd and PQoster
RAID types. Don't include those bits if we arn't doing even/odd or PQ stuff.
2001-01-26Don't build the stuff in this file if RF_INCLUDE_EVENODD is not defined.oster
2001-01-26Ensure we update the 'partitionSize' field of the component labelsoster
when doing a reconstruct or a copyback. If we don't, junk might be there, and that could cause the component to be not correctly autoconfigured on reboot. Thanks to Simon Burge for helping track this down.
2001-01-08Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL whenfvdl
the number of partitions is > OLDMAXPARTITIONS. This is better than silently truncating the label (don't want to silently throw away partitions when using an old disklabel binary on a label with > 8 partitions). From Enami Tsugutomo.
2001-01-07Adapt all disk devices in MI directories to handle ODIOC* callsfvdl
for ports that have bumped MAXPARTITIONS (and thus define __HAVE_OLD_DISKLABEL).
2000-12-15For the RF_ASSERT() and RF_PANIC() macros, call a function to do theoster
sprintf, instead of doing the sprintf in the macros. This means just 1 copy of each of the error messages, chopping about about 16K off the size of an i386 kernel. Thanks to Simon Burge and Enami Tsugutomo for providing the inspiration to do this.
2000-12-05Fix a couple of warnings about uninitialized variables. Thanks go tooster
Frank van der Linden for pointing these out.
2000-12-04Comment out 2 cases of unitialized variable use (only used whenfvdl
debugging is switched on, though).
2000-11-20rationalize the use of b_flags for geteblk() buffers.chs
rather than assigning to the whole field, set or clear individual flags, which implies that the B_BUSY and B_INVAL flags will remain set. this allows us to make the assertion in brelse() that B_BUSY is set, which is the purpose of all this.
2000-10-20Move disk_busy() and disk_unbusy() to more sane locations. Valuesoster
reported by 'systat iostat' and friends are now much more correct for RAIDframe devices. Thanks to Andrew Doran for poking me about this, and for suggestions on and review of the changes.
2000-10-17Don't touch a failed component at all. Thanks to Robert Elz (kre) foroster
noting the problem and providing additional comments.
2000-10-12Minor fixup for a printf(). Noted by Robert Elz.oster
2000-09-21convert tsleep()->ltsleep(), which makes the kernel complain lessoster
when compiled with LOCKDEBUG.
2000-09-21Correct a few calls to VOP_CLOSE().oster
2000-09-11Be consistent: use mcpair->cond instead of mcpair->flag.oster
This also lets us clean up a bunch of cruft.
2000-09-11Only reset the timer value if it actually accumlated time.oster
Otherwise it may never accumulate any time, and the recon delay will never happen.
2000-09-08Make sure we are passing a locked vp to VOP_CLOSE.oster
2000-08-20Use RF_WAIT_COND() to avoid locking errors.thorpej
2000-08-20RF_COND_WAIT(): use ltsleep().thorpej
RF_SIGNAL_COND(): use wakeup_one().
2000-08-19Remove a bogus VOP_UNLOCK.oster
2000-08-19Don't try to initialize a component label on a failed component.oster
2000-07-14Fix the status reporting for copybacks. Thanks to Hubert Feyrer foroster
reporting the problem.