aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-08-12 00:15:55 +0200
committerAdrian Bunk <bunk@stusta.de>2007-08-12 00:15:55 +0200
commitb331e968763e6509255a26dcf8b40aaa17c9d02a (patch)
tree3eab0ccd939c2243678309e346108505cbb9d737
parentb53bff31b95ef18d7568b805d459eb28b32767ee (diff)
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: Adrian Bunk <bunk@kernel.org>
-rw-r--r--drivers/md/md.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 1b1fae8b58b..489eaf31a96 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -761,7 +761,8 @@ static int super_90_validate(mddev_t *mddev, mdk_rdev_t *rdev)
if (sb->state & (1<<MD_SB_BITMAP_PRESENT) &&
mddev->bitmap_file == NULL) {
- if (mddev->level != 1 && mddev->level != 5 && mddev->level != 6
+ if (mddev->level != 1 && mddev->level != 4
+ && mddev->level != 5 && mddev->level != 6
&& mddev->level != 10) {
/* FIXME use a better test */
printk(KERN_WARNING "md: bitmaps not supported for this level.\n");
@@ -1093,6 +1094,7 @@ static int super_1_validate(mddev_t *mddev, mdk_rdev_t *rdev)
if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_BITMAP_OFFSET) &&
mddev->bitmap_file == NULL ) {
if (mddev->level != 1 && mddev->level != 5 && mddev->level != 6
+ && mddev->level != 4
&& mddev->level != 10) {
printk(KERN_WARNING "md: bitmaps not supported for this level.\n");
return -EINVAL;