summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
AgeCommit message (Collapse)Author
2001-12-16Fix an off-by-one error when autoconfig is hunting for a free RAIDoster
device in the rare event that the one it wants is already in use. Thanks to Wolfgang Stukenbrock for noticing the bug and filing the PR. This fix addresses PR#14862.
2001-11-28use #ifdef RAID_AUTOCONFIG (for consistency with the rest of the kernel)lukem
2001-11-20Cleanup some whitespace that indent got wrong a long time ago.oster
2001-11-15don't need <sys/types.h> when including <sys/param.h>lukem
2001-11-13add RCSIDslukem
2001-10-06Backout a line that accidentally got included when the .h reorg went in.oster
2001-10-05More #if 0's bite the dust.oster
2001-10-05Nuke some #if 0 stuff.oster
2001-10-04Tidy up the #includes a bit. (coulda/shoulda done that with last commit.)oster
2001-10-04rf_options.h isn't needed here.oster
2001-10-04If rf_options.h needs to be include it, then include it. Don't rely onoster
another .h file to pull it in.
2001-10-04Nuke a couple of unused extern variable declarations.oster
2001-10-04These have been completely replaced by raidframevar.h and raidframeio.h.oster
2001-10-04Setup installation mechanism for <dev/raidframe/raidframevar.h> andoster
<dev/raidframe/raidframeio.h>
2001-10-04Step 2 of the disentanglement. We now look to <dev/raidframe/*> foroster
the stuff that used to live in rf_types.h, rf_raidframe.h, rf_layout.h, rf_netbsd.h, rf_raid.h, rf_decluster,h, and a few other places. Believe it or not, when this is all done, things will be cleaner. No functional changes to RAIDframe.
2001-10-04Step 1 of the disentangling of RAIDframe's .h files:oster
raidframevar.h - contains bits of rf_types.h, rf_layout.h, rf_netbsd.h, rf_raid.h, and rf_decluster.h. raidframeio.h - contains the bits needed for doing IOCTL's w/ RAIDframe. These bits will be visible to userland.
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.