summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
AgeCommit message (Collapse)Author
2003-08-12Let boot code include raidframe.h to get RF_PROTECTED_SECTORS.dsl
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-07-01Actually toss the comment I said I was tossing in the last commit.oster
2003-07-01- toss a comment that is no longer relevant.oster
- 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-01Minor cleanup. No functional changes.oster
2003-07-01Toss experimental versions of some functions that were already #if 0'ed.oster
2003-07-01UpdateNodeHdrPtr() isn't used anywhere. Turf.oster
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr
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-23Make sure to include opt_foo.h if a defflag option FOO is used.martin
2003-05-10Change bounds_check_with_label() to take a pointer to the disk structure,thorpej
rather than the label itself. This paves the way for some future changes.
2003-05-02Change return type of readdisklabel() to const char *dsl
I hope I've found all the correct places!
2003-04-13Remember to close the component if we decide it's not suitable for useoster
as a hot spare. Closes PR#20989 by David Brownlee.
2003-04-10Remove an assigned-to but unused variable.simonb
2003-04-10rf_MakeLockTable() and rf_ShutdownStripeLocks() are used only insimonb
rf_stripelocks.c - make them static functions.
2003-04-10Remove an assigned-to but unused variable.simonb
2003-04-09Use PAGE_SIZE rather than NBPG.thorpej
2003-03-21Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTLdsl
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
2003-02-25Add a new BUF_INIT() macro which initializes b_dep and b_interlock, andthorpej
use it. This fixes a few places where either b_dep or b_interlock were not properly initialized.
2003-02-09constify somejdolecek
2003-02-05Make the buffer cache code MP-safe.pk
2003-02-05"Utilize" has exactly the same meaning as "use," but it is moreperry
difficult to read and understand. Most manuals of English style therefore say that you should use "use".
2003-02-01Only use MALLOC_DECLARE() in kernel namespace.tron
2003-02-01Add extensible malloc types, adapted from FreeBSD. This turnsthorpej
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-01-20The Double-Semi-Colon Police.simonb
2003-01-19Merge the nathanw_sa branch.thorpej
2003-01-03Fix typo. PR#19619.junyoung
2002-11-23Nuke all (but one) of the remaining RF_UTILITY's.oster
2002-11-23Nuke some #if 0'ed code.oster
2002-11-23One less goto.oster
2002-11-23Bye-bye to the completely unused reconCtrlPtr->priorityList.oster
2002-11-22rf_SelectMirrorDiskPartition() is only needed in a few cases. #if itoster
out in the rest. Thanks to Krister!
2002-11-21Fix up locking on a call to rf_update_component_labels().oster
Noticed by Manuel. Thanks Manuel!
2002-11-19#if out some stuff that's only used for some distributed sparing stuff.oster
Shaves another 500 bytes from an i386 kernel.
2002-11-19For reconstructs, move checks for failed components to before theoster
kernel threads are created.
2002-11-18#if 0 an unused function. Noted by Krister. Thanks!oster
2002-11-18rf_DiskReadMirrorPartitionFunc() is only needed for some of the clusteringoster
stuff, or if we're doing DAG validation. Thanks to Krister!
2002-11-17When setting root or autoconfig status, be sure to update used_spares too!oster
2002-11-16Cleanup more printfs.oster
2002-11-16Clean up error reporting, and nuke some printf verbosity.oster
2002-11-15After a rebuild-in-place, a reconstruct, or a copyback, we shouldoster
really be updating the component labels.
2002-11-15These printf's have outlived their usefulness. *poof*oster
2002-11-14rf_markalldirty() needs to update the mod_counter for used_spares too!oster
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-14Don't allow failing more than one component of a set, oroster
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-12xorBufCount needs to be initialized too!oster
2002-11-09Nuke a printf() from rf_FailDisk().oster
2002-11-01implement separate read/write disk statistics:mrg
- 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-10-25Poolify callback descriptor allocation. While some of the underlyingoster
problems just get shuffled around a bit, we do play more nicely with LOCKDEBUG now.
2002-10-23merge kqueue branch into -currentjdolecek
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2) based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-22Better protect hot-spare adding, and make it LOCKDEBUG friendly.oster