diff options
author | NeilBrown <neilb@suse.de> | 2005-11-09 00:39:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:38 -0500 |
commit | bd926c63b7a6843d3ce2728396c0891e54fce5c4 (patch) | |
tree | 38f7083a733e9b31efe69616c5fa3448c74c1320 /drivers/md/md.c | |
parent | b2d444d7ad975d555bb919601bcdc0e58975a40e (diff) |
[PATCH] md: make md on-disk bitmaps not host-endian
Current bitmaps use set_bit et.al and so are host-endian, which means
not-portable. Oops.
Define a new version number (4) for which bitmaps are little-endian.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 9dfa063d1c6a..caa4add00c1b 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -4281,7 +4281,7 @@ static int __init md_init(void) | |||
4281 | " MD_SB_DISKS=%d\n", | 4281 | " MD_SB_DISKS=%d\n", |
4282 | MD_MAJOR_VERSION, MD_MINOR_VERSION, | 4282 | MD_MAJOR_VERSION, MD_MINOR_VERSION, |
4283 | MD_PATCHLEVEL_VERSION, MAX_MD_DEVS, MD_SB_DISKS); | 4283 | MD_PATCHLEVEL_VERSION, MAX_MD_DEVS, MD_SB_DISKS); |
4284 | printk(KERN_INFO "md: bitmap version %d.%d\n", BITMAP_MAJOR, | 4284 | printk(KERN_INFO "md: bitmap version %d.%d\n", BITMAP_MAJOR_HI, |
4285 | BITMAP_MINOR); | 4285 | BITMAP_MINOR); |
4286 | 4286 | ||
4287 | if (register_blkdev(MAJOR_NR, "md")) | 4287 | if (register_blkdev(MAJOR_NR, "md")) |