Home | History | Annotate | Download | only in raidframe
History log of /src/sys/dev/raidframe/rf_decluster.c
RevisionDateAuthorComments
 1.27  25-Sep-2023  oster We no longer need the deprecated copyback functionality now that
incorporating a used spare is automatic.

Copyback has always been an issue, as to do a copyback all IO to
the array had to be suspended, and so was very, very unlikely to
have been used in anything resembling a production system.
 1.26  09-Feb-2019  christos - Change the allocation macros to be more like function calls
- Change sizeof(type) -> sizeof(*variable)
- Use macros for the long buffer length allocations
- Remove "bit polishing" memsets() -- do them only once
- Remove unnecessary casts

Thanks to oster@ for finding bugs and testing.
 1.25  18-Jan-2018  mrg branches: 1.25.4;
implement 32-bit compat support for raidframe.

convert several raidframe ioctls to be bitsize idempotent so that
they work the same in 32 and 64 bit worlds, allowing netbsd32 to
configure and query raid properly. remove useless 'row' in a few
places. add COMPAT_80 and put the old ioctls there.

raidframeio.h:
RAIDFRAME_TEST_ACC
- remove, unused
RAIDFRAME_GET_COMPONENT_LABEL
- convert to label not pointer to label
RAIDFRAME_CHECK_RECON_STATUS_EXT
RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT
RAIDFRAME_CHECK_COPYBACK_STATUS_EXT
- convert to progress info not pointer to info
RAIDFRAME_GET_INFO
- version entirely.
raidframevar.h:
- rf_recon_req{} has row, flags and raidPtr removed (they're
not a useful part of this interface.)
- RF_Config_s{} and RF_DeviceConfig_s{} have numRow/rows removed.
- RF_RaidDisk_s{} is re-ordered slightly to fix alignment
padding - the actual data was already OK.
- InstallSpareTable() loses row argument

rf_compat32.c has code for RF_Config_s{} in 32 bit mode, used
by RAIDFRAME_CONFIGURE and RAIDFRAME_GET_INFO32.

rf_compat80.c has code for rf_recon_req{}, RF_RaidDisk_s{} and
RF_DeviceConfig_s{} to handle RAIDFRAME_FAIL_DISK,
RAIDFRAME_GET_COMPONENT_LABEL, RAIDFRAME_CHECK_RECON_STATUS_EXT,
RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT,
RAIDFRAME_CHECK_COPYBACK_STATUS_EXT, RAIDFRAME_GET_INFO.

move several of the per-ioctl code blocks into separate functions.

add rf_recon_req_internal{} to replace old usage of global
rf_recon_req{} that had unused void * in the structure, ruining
it's 32/64 bit ABI.

add missing case for RAIDFRAME_GET_INFO50.

adjust raid tests to use the new .conf format, and add a case to
test the old method as well.

raidctl:
deal with lack of 'row' members in a couple of places.
fail request no longer takes row.
handle "START array" sections with just "numCol numSpare", ie
no "numRow" specified. for now, generate old-style configuration
but update raidctl.8 to specify the new style (keeping reference
to the old style.)

note that: RF_ComponentLabel_s::{row,num_rows} and
RF_SingleComponent_s::row are obsolete but not removed yet.
 1.24  23-Mar-2014  christos fix unused
 1.23  31-Aug-2011  plunky branches: 1.23.2; 1.23.12; 1.23.16;
NULL does not need a cast
 1.22  04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.21  16-Nov-2006  christos branches: 1.21.4;
__unused removal on arguments; approved by core.
 1.20  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.19  26-Apr-2006  oster branches: 1.19.8; 1.19.10;
un-bitrot some of this code (which is not included by default in kernels),
and make it build again. XXX: Paritylogging bits still won't build.
 1.18  11-Dec-2005  christos branches: 1.18.4; 1.18.6; 1.18.8; 1.18.10; 1.18.12;
merge ktrace-lwp.
 1.17  27-Feb-2005  perry branches: 1.17.4;
nuke trailing whitespace
 1.16  29-Feb-2004  oster branches: 1.16.8; 1.16.10;
Adjust _rf_ShutdownCreate() so that it is willing to wait for more
memory. Since we only now ever "return(0)", just return (void)
instead.

Cleanup all uses of rf_ShutdownCreate() to not worry about
it ever failing. Shaves another 600 bytes off of an i386 GENERIC kernel.
 1.15  30-Dec-2003  oster Some days you wonder if some of the function declaration consistency
was just an accident in the first place. Cleanup function decls and
a few comments. [ok.. so I wasn't going to fix this many.. but once
you're on a roll....]
 1.14  19-Nov-2002  oster branches: 1.14.6;
#if out some stuff that's only used for some distributed sparing stuff.
Shaves another 500 bytes from an i386 kernel.
 1.13  23-Sep-2002  oster The declaration for rf_GetSpareTableFromDaemon might be supplied in
a header file, but that doesn't help here if said header is not pulled in!
(Hi Simon :) )
 1.12  23-Sep-2002  simonb Don't need declarations for rf_copyback_in_progress and
rf_GetSpareTableFromDaemon() - these are already supplied
in various header files.
 1.11  23-Sep-2002  oster bytesPerStripeUnit is set, but never used. Thanks to Simon B. for pointing
this out.
 1.10  21-Sep-2002  oster Protect more stuff that's only used by the declustering code.
Thanks Krister!
 1.9  22-May-2002  wiz bcopy -> memcpy. Reviewed by Greg Oster.
 1.8  13-Nov-2001  lukem branches: 1.8.8;
add RCSIDs
 1.7  04-Oct-2001  oster Step 2 of the disentanglement. We now look to <dev/raidframe/*> for
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.
 1.6  26-Jan-2001  oster branches: 1.6.2; 1.6.4; 1.6.6;
Give the parity declustering code their own 'RAID arch' types, and
allow us to turn them off if desired.
 1.5  07-Mar-2000  oster Nuke unused code.
 1.4  13-Aug-1999  oster branches: 1.4.2;
rf_sys.h does not need to be #included in any of these files, and, actually,
is no longer needed at all.
 1.3  05-Feb-1999  oster Phase 2 of the RAIDframe cleanup. The source is now closer to KNF
and is much easier to read. No functionality changes.
 1.2  26-Jan-1999  oster RAIDframe cleanup, phase 1. Nuke simulator support, user-land driver,
out-dated comments, and other unneeded stuff. This helps prepare
for cleaning up the rest of the code, and adding new functionality.

No functional changes to the kernel code in this commit.
 1.1  13-Nov-1998  oster 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.
 1.4.2.2  11-Feb-2001  bouyer Sync with HEAD.
 1.4.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.6.1  11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.6.4.3  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.6.4.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.5  11-Dec-2002  thorpej Sync with HEAD.
 1.6.2.4  18-Oct-2002  nathanw Catch up to -current.
 1.6.2.3  20-Jun-2002  nathanw Catch up to -current.
 1.6.2.2  14-Nov-2001  nathanw Catch up to -current.
 1.6.2.1  22-Oct-2001  nathanw Catch up to -current.
 1.8.8.1  30-May-2002  gehenna Catch up with -current.
 1.14.6.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.14.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.14.6.1  03-Aug-2004  skrll Sync with HEAD
 1.16.10.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.16.8.1  29-Apr-2005  kent sync with -current
 1.17.4.3  03-Sep-2007  yamt sync with head.
 1.17.4.2  30-Dec-2006  yamt sync with head.
 1.17.4.1  21-Jun-2006  yamt sync with head.
 1.18.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.18.10.1  11-May-2006  elad sync with head
 1.18.8.1  24-May-2006  yamt sync with head.
 1.18.6.1  01-Jun-2006  kardel Sync with head.
 1.18.4.1  09-Sep-2006  rpaulo sync with head
 1.19.10.2  10-Dec-2006  yamt sync with head.
 1.19.10.1  22-Oct-2006  yamt sync with head
 1.19.8.1  18-Nov-2006  ad Sync with head.
 1.21.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.23.16.1  18-May-2014  rmind sync with head
 1.23.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.23.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.25.4.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed