aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-03-27 04:18:03 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 11:45:00 -0500
commitc5a10f62c5c496c49db749af103b991873b7e2dc (patch)
tree63d02eaa6b75a8ff05b2b81afe4555970799ec39
parent89e5c8b5b85d6d46e8a28cdfa076313ae691d35c (diff)
[PATCH] md: Add '4' to the list of levels for which bitmaps are supported
I really should make this a function of the personality.... Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/md/md.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 3254ff1a5cc9..875bced88e36 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -765,7 +765,8 @@ static int super_90_validate(mddev_t *mddev, mdk_rdev_t *rdev)
765 765
766 if (sb->state & (1<<MD_SB_BITMAP_PRESENT) && 766 if (sb->state & (1<<MD_SB_BITMAP_PRESENT) &&
767 mddev->bitmap_file == NULL) { 767 mddev->bitmap_file == NULL) {
768 if (mddev->level != 1 && mddev->level != 5 && mddev->level != 6 768 if (mddev->level != 1 && mddev->level != 4
769 && mddev->level != 5 && mddev->level != 6
769 && mddev->level != 10) { 770 && mddev->level != 10) {
770 /* FIXME use a better test */ 771 /* FIXME use a better test */
771 printk(KERN_WARNING "md: bitmaps not supported for this level.\n"); 772 printk(KERN_WARNING "md: bitmaps not supported for this level.\n");