summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-09-12 05:54:52 +0000
committerNeil Brown <neilb@suse.de>2005-09-12 05:54:52 +0000
commit6d3d5804682f828f7b26fb62ce1eb06187114a34 (patch)
treec6022020a0713edc21d001c7e178a2d0f594e117
parentf6d75de8e0106a3789ed1a3aada306d197531e47 (diff)
downloadmdadm-6d3d5804682f828f7b26fb62ce1eb06187114a34.tar.gz
mdadm-6d3d5804682f828f7b26fb62ce1eb06187114a34.tar.xz
mdadm-6d3d5804682f828f7b26fb62ce1eb06187114a34.zip
Fix byteordr covnerion ofr 'events' that was '32' instead of '64'
Signed-off-by: Neil Brown <neilb@suse.de>
-rw-r--r--super1.c2
-rw-r--r--tests/05r1-grow-external2
-rw-r--r--tests/05r1-grow-internal2
3 files changed, 3 insertions, 3 deletions
diff --git a/super1.c b/super1.c
index 43607ba..ccbddec 100644
--- a/super1.c
+++ b/super1.c
@@ -342,7 +342,7 @@ static int update_super1(struct mdinfo *info, void *sbv, char *update, char *dev
struct mdp_superblock_1 *sb = sbv;
if (strcmp(update, "force")==0) {
- sb->events = __cpu_to_le32(info->events);
+ sb->events = __cpu_to_le64(info->events);
switch(__le32_to_cpu(sb->level)) {
case 5: case 4: case 6:
/* need to force clean */
diff --git a/tests/05r1-grow-external b/tests/05r1-grow-external
index 73fccd9..aa49109 100644
--- a/tests/05r1-grow-external
+++ b/tests/05r1-grow-external
@@ -9,7 +9,7 @@ testdev $md0 1 $mdsize0 1
bmf=$targetdir/bm
rm -f $bmf
#mdadm -E $dev1
-mdadm --grow $md0 --bitmap=$bmf --delay=1 || { $mdadm -X $bmf ; exit 1; }
+mdadm --grow $md0 --bitmap=$bmf --delay=1 || { mdadm -X $bmf ; exit 1; }
dirty1=`mdadm -X $bmf | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
sleep 4
dirty2=`mdadm -X $bmf | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
diff --git a/tests/05r1-grow-internal b/tests/05r1-grow-internal
index addae35..1da28a9 100644
--- a/tests/05r1-grow-internal
+++ b/tests/05r1-grow-internal
@@ -7,7 +7,7 @@ check wait
testdev $md0 1 $mdsize0 1
#mdadm -E $dev1
-mdadm --grow $md0 --bitmap=internal --delay=1 || $mdadm -X $dev2
+mdadm --grow $md0 --bitmap=internal --delay=1 || { mdadm -X $dev2 ; exit 1; }
dirty1=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
sleep 4
dirty2=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`