From 78757ce8a57059a09f7ea57fd9a5d47984d98fe9 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 2 Feb 2009 10:54:58 -0700 Subject: imsm: don't check raid1 chunk size mdadm -C /dev/md/r1d2n1s0-5 -amd -l1 --size 5242880 -n 2 /dev/sdb /dev/sdc -R -f -v -c 64 mdadm: chunk size ignored for this level mdadm: super0.90 cannot open /dev/sdb: Device or resource busy mdadm: super1.x cannot open /dev/sdb: Device or resource busy mdadm: platform does not support a chunk size of: 0 mdadm: device /dev/sdb not suitable for any style of array Reported-by: Krzysztof Wojcik Tested-by: Jacek Danecki Signed-off-by: Dan Williams --- super-intel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'super-intel.c') diff --git a/super-intel.c b/super-intel.c index 5c9f413..caf9a99 100644 --- a/super-intel.c +++ b/super-intel.c @@ -2818,7 +2818,8 @@ static int validate_geometry_imsm_volume(struct supertype *st, int level, level, raiddisks, raiddisks > 1 ? "s" : ""); return 0; } - if (super->orom && !imsm_orom_has_chunk(super->orom, chunk)) { + if (super->orom && level != 1 && + !imsm_orom_has_chunk(super->orom, chunk)) { pr_vrb(": platform does not support a chunk size of: %d\n", chunk); return 0; } -- cgit