summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Clements <paul.clements@steeleye.com>2006-10-09 11:17:22 +1000
committerNeil Brown <neilb@suse.de>2006-10-09 11:17:22 +1000
commit10ae45c12c1ce17b15f25dcc619a292184add08b (patch)
tree841dbe1e6ab2a7c6b324cb8d851d2f2079b54910
parent83205b64199df1ec6b59065b41d9a07d1df5dd2d (diff)
downloadmdadm-10ae45c12c1ce17b15f25dcc619a292184add08b.tar.gz
mdadm-10ae45c12c1ce17b15f25dcc619a292184add08b.tar.xz
mdadm-10ae45c12c1ce17b15f25dcc619a292184add08b.zip
Fixed endian problem with bitmap metdata
From: Paul Clements <paul.clements@steeleye.com>
-rw-r--r--ChangeLog1
-rw-r--r--bitmap.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ac11d1a..ea4a3e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ Changes Prior to this release
Allow this to be disabled in mdadm.conf or on command line.
- Fix some endian-ness issues with version-1 superblocks (affects
bigendian only).
+ - Fix endian problem with 'bitmap' metadata
Changes Prior to 2.5.3 release
- Document v0.91 superblocks in md.4
diff --git a/bitmap.c b/bitmap.c
index 59410d5..a96e444 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -33,6 +33,7 @@ inline void sb_le_to_cpu(bitmap_super_t *sb)
sb->chunksize = __le32_to_cpu(sb->chunksize);
sb->daemon_sleep = __le32_to_cpu(sb->daemon_sleep);
sb->sync_size = __le64_to_cpu(sb->sync_size);
+ sb->write_behind = __le32_to_cpu(sb->write_behind);
}
inline void sb_cpu_to_le(bitmap_super_t *sb)