christos
8bfd5e3292
Fix uninitialized variable warnings
2003-10-25 18:34:14 +00:00
fvdl
2a11316bc0
Correct NULL abuse.
2003-10-21 00:22:04 +00:00
simonb
59fb31d7cc
Remove unreachable break after return and goto statements.
2003-10-19 01:44:48 +00:00
dsl
85b06a40e5
Let boot code include raidframe.h to get RF_PROTECTED_SECTORS.
2003-08-12 10:01:08 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
oster
1121191d31
Actually toss the comment I said I was tossing in the last commit.
2003-07-01 23:53:48 +00:00
oster
556d051c14
- toss a comment that is no longer relevant.
...
- alist_mutex is a holdover from the simulator days, and it
wasn't even used back then. Toss the variable and init/destroy calls.
2003-07-01 23:50:54 +00:00
oster
111c14e12c
Minor cleanup. No functional changes.
2003-07-01 23:36:01 +00:00
oster
ead7b02a99
Toss experimental versions of some functions that were already #if 0'ed.
2003-07-01 22:43:59 +00:00
oster
971e957065
UpdateNodeHdrPtr() isn't used anywhere. Turf.
2003-07-01 22:05:39 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
martin
d505b18964
Make sure to include opt_foo.h if a defflag option FOO is used.
2003-06-23 11:00:59 +00:00
thorpej
e43fecb228
Change bounds_check_with_label() to take a pointer to the disk structure,
...
rather than the label itself. This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
dsl
d91455ce26
Change return type of readdisklabel() to const char *
...
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
oster
351bc1e187
Remember to close the component if we decide it's not suitable for use
...
as a hot spare. Closes PR#20989 by David Brownlee.
2003-04-13 22:07:11 +00:00
simonb
40149dc0bb
Remove an assigned-to but unused variable.
2003-04-10 04:11:50 +00:00
simonb
430903deae
rf_MakeLockTable() and rf_ShutdownStripeLocks() are used only in
...
rf_stripelocks.c - make them static functions.
2003-04-10 04:10:17 +00:00
simonb
d0f1ac2965
Remove an assigned-to but unused variable.
2003-04-10 03:36:02 +00:00
thorpej
24a4b8faa6
Use PAGE_SIZE rather than NBPG.
2003-04-09 00:28:28 +00:00
dsl
bd99e3429d
Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
...
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
2003-03-21 23:11:19 +00:00
thorpej
eb14e86676
Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and
...
use it. This fixes a few places where either b_dep or b_interlock were
not properly initialized.
2003-02-25 20:35:31 +00:00
jdolecek
e3c5d7b092
constify some
2003-02-09 10:04:32 +00:00
pk
338f31f581
Make the buffer cache code MP-safe.
2003-02-05 21:38:38 +00:00
perry
1f4ad37fe3
"Utilize" has exactly the same meaning as "use," but it is more
...
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-05 00:02:24 +00:00
tron
f1eeaa9020
Only use MALLOC_DECLARE() in kernel namespace.
2003-02-01 18:34:14 +00:00
thorpej
b193480908
Add extensible malloc types, adapted from FreeBSD. This turns
...
malloc types into a structure, a pointer to which is passed around,
instead of an int constant. Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.
2003-02-01 06:23:35 +00:00
simonb
276fd1665c
The Double-Semi-Colon Police.
2003-01-20 05:29:53 +00:00
thorpej
b97e4c2136
Merge the nathanw_sa branch.
2003-01-19 16:50:16 +00:00
junyoung
49f022f378
Fix typo. PR#19619.
2003-01-03 08:05:22 +00:00
oster
93e77ce121
Nuke all (but one) of the remaining RF_UTILITY's.
2002-11-23 02:44:14 +00:00
oster
ceb8b43d54
Nuke some #if 0'ed code.
2002-11-23 02:38:59 +00:00
oster
d8bae03774
One less goto.
2002-11-23 01:59:59 +00:00
oster
a14698a359
Bye-bye to the completely unused reconCtrlPtr->priorityList.
2002-11-23 01:58:18 +00:00
oster
540f566858
rf_SelectMirrorDiskPartition() is only needed in a few cases. #if it
...
out in the rest. Thanks to Krister!
2002-11-22 20:56:10 +00:00
oster
9768cda12b
Fix up locking on a call to rf_update_component_labels().
...
Noticed by Manuel. Thanks Manuel!
2002-11-21 15:37:55 +00:00
oster
58ac277dd0
#if out some stuff that's only used for some distributed sparing stuff.
...
Shaves another 500 bytes from an i386 kernel.
2002-11-19 01:49:41 +00:00
oster
6ac4a184c4
For reconstructs, move checks for failed components to before the
...
kernel threads are created.
2002-11-19 01:45:28 +00:00
oster
61c0bdf3d3
#if 0 an unused function. Noted by Krister. Thanks!
2002-11-18 23:50:47 +00:00
oster
b43d46d578
rf_DiskReadMirrorPartitionFunc() is only needed for some of the clustering
...
stuff, or if we're doing DAG validation. Thanks to Krister!
2002-11-18 23:46:28 +00:00
oster
7a58f70fb2
When setting root or autoconfig status, be sure to update used_spares too!
2002-11-17 22:41:36 +00:00
oster
0cfd5a5b13
Cleanup more printfs.
2002-11-16 16:59:58 +00:00
oster
c00752f98a
Clean up error reporting, and nuke some printf verbosity.
2002-11-16 16:49:46 +00:00
oster
ad8fd01bdf
After a rebuild-in-place, a reconstruct, or a copyback, we should
...
really be updating the component labels.
2002-11-15 03:57:48 +00:00
oster
35f6622aa7
These printf's have outlived their usefulness. *poof*
2002-11-15 03:00:12 +00:00
oster
56f6918fef
rf_markalldirty() needs to update the mod_counter for used_spares too!
...
This bug appears as "incorrect Mod Counters" in 'raidctl -s'. The
reason it was seen only in 'raidctl -s' is because of the conditions
needed to trigger the bug:
a) a raid set is configured
b) no partitions on that set are mounted or are otherwise in-use
c) a component is failed, and subsequently rebuilt to a hot spare
d) the machine is rebooted while something (e.g. 'raidctl -s') has
the device open (and, therefore, rf_markalldirty() has been called)
but before the final rf_update_component_labels() is done.
Needless to say, the window for this happening is *very* small, and it
was only because I was testing some obscure stuff that I even noticed it.
2002-11-14 17:11:54 +00:00
oster
f03dc09c94
Don't allow failing more than one component of a set, or
...
failing a component that has been spared, or "double-failing"
an already failed component. XXX This isn't the right place to fix
this, but better here than no-where (and I'm hoping to move it sometime
soon).
2002-11-14 03:04:20 +00:00
oster
bd2dd01d29
xorBufCount needs to be initialized too!
2002-11-12 00:01:32 +00:00
oster
1ac4be5d3e
Nuke a printf() from rf_FailDisk().
2002-11-09 19:50:03 +00:00
mrg
603098b9b5
implement separate read/write disk statistics:
...
- disk_unbusy() gets a new parameter to tell the IO direction.
- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
when processing hw.diskstats, add the read&write bytes/transfers for
the old combined stats to attempt to keep backwards compatibility.
unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail. however, the next time this is
change it will not fail again.
this is just the kernel portion.
2002-11-01 11:31:50 +00:00