From: Dan Williams Date: Mon, 2 Feb 2009 17:54:58 +0000 (-0700) Subject: imsm: don't check raid1 chunk size X-Git-Tag: mdadm-3.0-devel3~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78757ce8a57059a09f7ea57fd9a5d47984d98fe9;p=thirdparty%2Fmdadm.git 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 --- diff --git a/super-intel.c b/super-intel.c index 5c9f4136..caf9a996 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; }