[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>
This commit is contained in:
committed by
Linus Torvalds
parent
b2d444d7ad
commit
bd926c63b7
@ -4281,7 +4281,7 @@ static int __init md_init(void)
|
||||
" MD_SB_DISKS=%d\n",
|
||||
MD_MAJOR_VERSION, MD_MINOR_VERSION,
|
||||
MD_PATCHLEVEL_VERSION, MAX_MD_DEVS, MD_SB_DISKS);
|
||||
printk(KERN_INFO "md: bitmap version %d.%d\n", BITMAP_MAJOR,
|
||||
printk(KERN_INFO "md: bitmap version %d.%d\n", BITMAP_MAJOR_HI,
|
||||
BITMAP_MINOR);
|
||||
|
||||
if (register_blkdev(MAJOR_NR, "md"))
|
||||
|
Reference in New Issue
Block a user