From: Andy Grover <agrover@redhat.com>
To: dm-devel@redhat.com
Subject: [PATCH 2/2] dm-raid: Fix minimal_devs for raid6
Date: Wed, 28 Oct 2015 11:50:01 -0700 [thread overview]
Message-ID: <1446058201-12628-2-git-send-email-agrover@redhat.com> (raw)
In-Reply-To: <1446058201-12628-1-git-send-email-agrover@redhat.com>
A raid6 device can be created from 3 devs. This previously didn't cause
an error because minimal_devs was not being checked.
Signed-off-by: Andy Grover <agrover@redhat.com>
---
drivers/md/dm-raid.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 5941cfd..1ded052 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -90,9 +90,9 @@ static struct raid_type {
{"raid5_ra", "RAID5 (right asymmetric)", 1, 2, 5, ALGORITHM_RIGHT_ASYMMETRIC},
{"raid5_ls", "RAID5 (left symmetric)", 1, 2, 5, ALGORITHM_LEFT_SYMMETRIC},
{"raid5_rs", "RAID5 (right symmetric)", 1, 2, 5, ALGORITHM_RIGHT_SYMMETRIC},
- {"raid6_zr", "RAID6 (zero restart)", 2, 4, 6, ALGORITHM_ROTATING_ZERO_RESTART},
- {"raid6_nr", "RAID6 (N restart)", 2, 4, 6, ALGORITHM_ROTATING_N_RESTART},
- {"raid6_nc", "RAID6 (N continue)", 2, 4, 6, ALGORITHM_ROTATING_N_CONTINUE}
+ {"raid6_zr", "RAID6 (zero restart)", 2, 3, 6, ALGORITHM_ROTATING_ZERO_RESTART},
+ {"raid6_nr", "RAID6 (N restart)", 2, 3, 6, ALGORITHM_ROTATING_N_RESTART},
+ {"raid6_nc", "RAID6 (N continue)", 2, 3, 6, ALGORITHM_ROTATING_N_CONTINUE}
};
static char *raid10_md_layout_to_format(int layout)
--
2.4.3
next prev parent reply other threads:[~2015-10-28 18:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-28 18:50 [PATCH 1/2] dm-raid: Fix minimal device check Andy Grover
2015-10-28 18:50 ` Andy Grover [this message]
2015-10-28 19:17 ` [PATCH 2/2] dm-raid: Fix minimal_devs for raid6 Heinz Mauelshagen
2015-10-28 19:39 ` [PATCH 1/2] dm-raid: Fix minimal device check Heinz Mauelshagen
2015-10-28 22:16 ` Andy Grover
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1446058201-12628-2-git-send-email-agrover@redhat.com \
--to=agrover@redhat.com \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox