summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@cse.unsw.edu.au>2005-09-09 16:23:55 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 16:39:12 -0700
commit934ce7c840992a771ffc478b132092db9c935c42 (patch)
tree7eeacbe7d20ec9eaf80eca793dbb45a0670b18ef /drivers/md/md.c
parent72626685dc66d455742a7f215a0535c551628b9e (diff)
downloadop-kernel-dev-934ce7c840992a771ffc478b132092db9c935c42.zip
op-kernel-dev-934ce7c840992a771ffc478b132092db9c935c42.tar.gz
[PATCH] md: write-intent bitmap support for raid6
This is a direct port of the raid5 patch. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index dbf540a..008149e 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -645,7 +645,7 @@ 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) {
+ if (mddev->level != 1 && mddev->level != 5 && mddev->level != 6) {
/* FIXME use a better test */
printk(KERN_WARNING "md: bitmaps only support for raid1\n");
return -EINVAL;
OpenPOWER on IntegriCloud