diff options
author | Neil Brown <neilb@suse.de> | 2005-08-25 04:31:44 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-08-25 04:31:44 +0000 |
commit | 34163fc7cfa4346ca7f2ca08039e0c5a3cf901ab (patch) | |
tree | d435caab2002739a704d35fe70ede2ab7afd1321 /test | |
parent | eb3b43aa2a44e590e3cb3129d1e29df45d18a22a (diff) | |
download | mdadm-34163fc7cfa4346ca7f2ca08039e0c5a3cf901ab.tar.gz mdadm-34163fc7cfa4346ca7f2ca08039e0c5a3cf901ab.tar.xz mdadm-34163fc7cfa4346ca7f2ca08039e0c5a3cf901ab.zip |
Support internal bitmaps with format-1 superblocks.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'test')
-rw-r--r-- | test | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -27,7 +27,9 @@ md0=/dev/md0 md1=/dev/md1 md2=/dev/md2 targetdir=/tmp size=20000 mdsize0=19904 -mdsize1=19992 +mdsize1=19928 +mdsize11=19935 +mdsize12=19931 cleanup() { $mdadm -Ss @@ -96,7 +98,7 @@ check() { bitmap ) grep -s bitmap > /dev/null /proc/mdstat || { - echo >&2 ERROR no bitmap ; cat /proc/mdstat ; exist 1; } + echo >&2 ERROR no bitmap ; cat /proc/mdstat ; exit 1; } ;; nobitmap ) if grep -s "bitmap" > /dev/null /proc/mdstat @@ -134,8 +136,10 @@ rotest() { -for script in tests/$prefix*[^~] +for script in tests/$prefix tests/$prefix*[^~] do + if [ -f "$script" ] + then # source script in a subshell, so it has access to our # namespace, but cannot change it. if ( set -ex ; . $script ) 2> $targetdir/log @@ -144,5 +148,6 @@ do echo "$script failed" exit 1 fi + fi done exit 0 |