]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fixed endian problem with bitmap metdata
authorPaul Clements <paul.clements@steeleye.com>
Mon, 9 Oct 2006 01:17:22 +0000 (11:17 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 9 Oct 2006 01:17:22 +0000 (11:17 +1000)
From: Paul Clements <paul.clements@steeleye.com>

ChangeLog
bitmap.c

index ac11d1ad34c500bec439e788f9bcc009cfcb4563..ea4a3e04441de0fc26564992be56872d5090b991 100644 (file)
--- 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
index 59410d543e67c41285391a568e679711d88a5a22..a96e444f5d0383bb0e161dc847b12d7b54f098be 100644 (file)
--- 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)