Home | History | Annotate | Download | only in raidframe
History log of /src/tests/dev/raidframe/t_raid.sh
RevisionDateAuthorComments
 1.16  30-Nov-2022  martin Unfortunately rump does not provide the same magic as MAKEDEV does
for native /dev and create an alias for disk devices w/o partition
latter pointing at the raw partition, so for rump based tests we
actually have to calculate the concrete device name.

Use an idiom suggested by kre for this which also works for ports that
have kern.rawpartition > 4.
 1.15  30-Nov-2020  msaitoh s/ we we / we /
 1.14  10-Jul-2019  martin Reduce disk image size for tests (PR 44239 has been fixed)
 1.13  18-Jan-2018  mrg branches: 1.13.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.12  19-Feb-2013  joerg Check for RUMP programs before using them.
 1.11  15-Oct-2011  gson branches: 1.11.2; 1.11.8;
Fix cut-and-paste-o that casused the raid1_normal test case to have no
cleanup function defined, resulting in a rump_server process hanging
around after the tests completed.
 1.10  09-Aug-2011  martin Add missing RUMP_SERVER export, so the "normal" test does not fail with
a stupid error.
 1.9  29-Jul-2011  oster Note that PR kern/44251 is fixed.
Add tests for normal configuration of RAID 1 and RAID 5 sets.
 1.8  14-May-2011  jmmv Instead of doing 'atf_check ... sh -c foo', just do 'atf_check ... -x foo'.
 1.7  01-Mar-2011  riz PR#44239 is now fixed, remove the xfail from the test.
 1.6  04-Feb-2011  pooka convert tests from oldstyle dd rif/rof to newstyle dd | rump.dd
 1.5  30-Dec-2010  pooka branches: 1.5.2;
Substitute a surgical rump_server configuration for rump_allserver
now that it's possible. With warm fs cache, the startup time of
the former is 0.01s and the latter 0.1s. With cold caches it's
0.2s vs 2s.
 1.4  18-Dec-2010  pooka test case for PR kern/44251
 1.3  18-Dec-2010  pooka Check that raid1 and raid5 can serve data after a component has
been nuked.
 1.2  17-Dec-2010  pooka fix editing artifact
 1.1  15-Dec-2010  pooka "A few seconds later" I realized the kernel directory is dev/raidframe,
not dev/raid, so reflect this in the test dir. Affects location
for test of PR kern/44239.
 1.5.2.2  05-Mar-2011  bouyer Sync with HEAD
 1.5.2.1  08-Feb-2011  bouyer Sync with HEAD
 1.11.8.1  25-Feb-2013  tls resync with head
 1.11.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.13.4.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed