Commit Graph

15 Commits

Author SHA1 Message Date
explorer edd259d12e Make it so raidframe will only perform synchronous writes, and async
reads.  This avoids a problem where many writes will cause the driver
to allocate way too much memory.

This needs to change to a queueing system later, which will provide a
way to limit the memory consumed by the driver.

Without these changes, raidframe would use 24M or more on my machine when
the buffer cache dumped all its dirty blocks.  Now it uses around 200k
or so.
1999-01-15 17:55:52 +00:00
thorpej d8f3aefec7 Use M_RAIDFRAME. 1999-01-14 22:49:05 +00:00
oster 4128f9df1e Duh... check that malloc() hasn't returned a NULL *before* we zero the buffer,
not after. Pointed out by Michael Graff.
1999-01-14 20:29:38 +00:00
oster e392d933c8 Clean up some debugging stuff, and make it compile without warnings
with -DDEBUG on alphas.
1998-12-22 20:03:14 +00:00
oster 1b04131eff Try a bit harder to detect the physical failure of a component, and to
mark that component as dead.  Physical failures are handled much better now.
1998-12-03 15:14:40 +00:00
oster 3f3d8e85e6 If a configuration fails due to a non-existant spare, remember to release
any previously allocated components before bailing.  Credit to Manuel Bouyer
for noticing this.
1998-12-03 15:06:25 +00:00
oster 679de7e878 Fix (potential) referencing of null pointer in (verbose) debugging mode. 1998-12-03 14:58:24 +00:00
oster b66ca92f4a Initialize (to NULL) a variable in rf_CvscanPromote(). 1998-11-18 15:13:51 +00:00
mycroft 7eac22153a Use types.h, endian.h and limits.h to configure the RAIDframe
types correctly for all hardware platforms.
1998-11-16 04:14:10 +00:00
hubertf 3f1c86b59e compile with DEBUG=1 1998-11-15 00:01:24 +00:00
drochner a0c0e7eff1 fix egcs warning 1998-11-13 13:47:56 +00:00
drochner acdd660ace fix callback type 1998-11-13 13:45:15 +00:00
simonb a9c167b273 prototype un-prototyped functions 1998-11-13 11:51:55 +00:00
simonb 8e893eff9e Add braces around 'if' to pacify egcs 1998-11-13 11:48:26 +00:00
oster 38a3987b69 RAIDframe, version 1.1, from the Parallel Data Laboratory at
Carnegie Mellon University.  Full RAID implementation, including
levels 0, 1, 4, 5, 6, parity logging, and a few other goodies.
Ported to NetBSD by Greg Oster.
1998-11-13 04:20:26 +00:00