Commit Graph

127 Commits

Author SHA1 Message Date
jld 9abd7e4959 Give a more polite message for `raidctl -m` on a non-parity RAID set. 2010-03-16 03:23:47 +00:00
plunky 858911baa2 fix sign-compare issue 2010-03-13 13:45:05 +00:00
jld 8ccd0f67a6 Exclude parity map regions that don't actually exist from the dirty region count
in `raidctl -m`.  Makes for less confusing output during `raidctl -i`.
2010-03-13 07:21:37 +00:00
christos 13a5940614 use warn/err appropriately. 2010-01-27 18:34:02 +00:00
pooka 03fdf6b025 error message: \n\n -> \n 2010-01-27 17:02:06 +00:00
wiz e08d841a54 + Fatal errors due to uninitialized components are ignored.
for -C. For dillo@
2010-01-27 09:26:16 +00:00
wiz 4421a69224 Consistently use "START disks" in examples. Bump date. 2010-01-27 08:56:08 +00:00
jld 9bd6e2661a Slight change to the wording of the parity map info: the parity is
"marked clean" after however much inactivity; it is *actually* clean
as soon as the component disks all do their thing (on the order of ms,
usually), just the same as before.

The bikeshed is now less of a taupe and more of an ecru.
2009-12-10 20:20:59 +00:00
wiz feb9cdd5a3 Remove trailing whitespace. 2009-11-17 19:35:48 +00:00
jld 9e2ba7b416 Bump date; also fix typo pointed out by snj@. 2009-11-17 19:09:38 +00:00
jld f1a1ad338d Finally commit the RAIDframe parity map Summer Of Code project.
Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Discussed on tech-kern@ to a general air of approval; exhortations to
commit from mrg@, christos@, and others.

Thanks to Google for their sponsorship, oster@ for mentoring the
project, assorted developers for trying very hard to break it, and
probably more I'm forgetting.
2009-11-17 18:54:26 +00:00
pooka 2ff8677b99 close rump kernel file descriptors properly 2009-10-11 12:51:58 +00:00
pooka 4f5a394d32 Support RUMP_ACTION, i.e. compile-time switch to make this execute
rump syscalls to configure raidframe in a rump kernel.
2009-10-11 12:14:05 +00:00
lukem d4ab6626c0 fix sign-compare issue 2009-04-06 12:47:20 +00:00
tron 0c5d87d569 Use correct format to print the "numBlocks" element in a RAIDframe
component label. raidctl(8) should now print the correct number of
blocks for RAID sets larger than 1TB.

Patch supplied by Bernhard Moellemann in PR bin/40479.
2009-01-26 11:34:12 +00:00
wiz 133e2f4217 Drop trailing whitespace. 2008-08-28 21:24:30 +00:00
oster 6fe654d47f Bump date (before wizd). 2008-08-26 21:08:08 +00:00
oster a252344f99 Add description of some of the things 'raidctl -u' doesn't do. 2008-08-26 21:06:55 +00:00
oster 7cb3f2efd3 We have the notion of an 'absent' disk, so use that in another example. 2008-08-19 17:38:46 +00:00
martin cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
explorer 62c5ab302e Fix a minor typo: wd0h was repeated, change second instance to wd1h as is likely intended. 2007-12-14 07:24:01 +00:00
oster 761dfd3017 Talk a bit more about how the size of a RAID set is determined, and
of RF_PROTECTED_SECTORS.  Requested by (and with comments from and
thanks to) Christoph (bad@).
2007-08-06 19:44:16 +00:00
dan 1fcee3db59 close fp in several error paths, closing Coverity CIDs 1690, 1692.
"go" by go.
2006-03-19 01:57:11 +00:00
christos 2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
lukem 9a1b8a3b7b appease gcc -Wuninitialized 2005-06-02 00:01:47 +00:00
oster c10404e844 Cleanup the meter code a bit -- a bunch of stuff wasn't even being used.
Fix a few overflow issues.  (Thanks to beefy and pooka, among others)
2005-05-01 22:37:34 +00:00
wiz 0a22669b85 Bump date for previous. 2005-02-28 22:03:05 +00:00
oster 3202ca277a Add a few more lines about the 'Parity status:' output of 'raidctl -s'.
This should address PR#29540.
2005-02-28 20:37:14 +00:00
xtraeme f0121f1f1b Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-09 14:21:37 +00:00
wiz 0c1ed68c30 Give Dd the full month names as argument. 2005-02-01 13:38:53 +00:00
fredb 4627df7dfc Greg Oster just reminded me, I left out "vax". 2005-01-31 17:11:33 +00:00
fredb 680ae8dc03 Sync with raid(4) regarding the architectures that support booting directly
from RAID 1, using language supplied by Anders Dinson in PR bin/29158, with
some additions by myself.
2005-01-31 16:42:15 +00:00
xtraeme 76500fc2f9 WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz) 2005-01-20 16:39:22 +00:00
oster 42abd8f7a0 Cleanup a bit by nuking RF_Malloc macro, and add in some error
checking for the case where we can't allocate memory.  (Not like
anyone uses this part of the code anyway.)
2004-10-26 22:46:27 +00:00
oster fa730392bc Strip off trailing \n's and spaces from configuration file lines.
Makes RAIDframe more forgiving if you accidentally add a space after
things like device names.  Fixed at long last after a reminder over
the weekend.
2004-10-26 19:52:21 +00:00
oster 2b7fd0220d How about we use the 'len' parameter to rf_get_next_nonblank_line()
instead of assuming all buffers are 256 bytes.
2004-10-26 19:23:19 +00:00
wiz 894fc3b8de Use Dq instead of quotes; bump date for previous. 2004-05-24 00:08:04 +00:00
oster 1c6a30a0b2 Update docs to reflect the support for the word "absent" in the "disks"
section of RAID config files.
2004-05-22 20:58:04 +00:00
wiz 9b2142b96c Add commas in enumeration; bump date for previous. 2004-05-16 10:27:16 +00:00
dsl 9debb4b795 Add i386 to the list of systems that support booting from raid1.
RAID(4) also needs changing - if someone knows where the source is....
2004-05-15 21:46:54 +00:00
snj 853c328fb4 Bump date for last. 2004-04-11 04:15:53 +00:00
oster e3d079e02e Swapping to RAID 5 is happy now. Remove indications to the contrary. 2004-04-11 02:46:27 +00:00
oster 0084f2a5e2 Note in the description of hot-adding components that a component label is
not required for the component.  Thanks to David Maxwell for the
documentation suggestion.
2004-02-29 22:22:35 +00:00
oster eac5920af1 As suggested by Paul Ripke, have raidctl use raw devices by default. 2004-02-29 20:40:29 +00:00
wiz 8920f41e3e Bump date for previous. 2003-11-02 09:01:47 +00:00
oster f80b4d6ea1 Add a couple little warnings about swapping to RAID 5 sets.
(it currently doesn't work.)
2003-11-02 02:20:26 +00:00
fvdl efbda96887 Don't compare argc to NULL. 2003-10-21 02:31:43 +00:00
itojun 0b04aee3ea use bouded string ops 2003-07-13 07:37:02 +00:00
agc c2a3b5ec84 Add NetBSD RCS Ids. 2003-06-23 11:53:35 +00:00