Fixed endian problem with bitmap metdata
From: Paul Clements <paul.clements@steeleye.com>
This commit is contained in:
parent
83205b6419
commit
10ae45c12c
|
@ -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
|
||||
|
|
1
bitmap.c
1
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)
|
||||
|
|
Loading…
Reference in New Issue