diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-02-02 10:54:58 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-02-02 10:55:31 -0700 |
commit | 78757ce8a57059a09f7ea57fd9a5d47984d98fe9 (patch) | |
tree | 20ee86e66259a7ea62cbc6aadc68857098a8de64 | |
parent | 6c40598f598874d1d4c2c4d0da0c2a9b873d768d (diff) | |
download | mdadm-78757ce8a57059a09f7ea57fd9a5d47984d98fe9.tar.gz mdadm-78757ce8a57059a09f7ea57fd9a5d47984d98fe9.tar.xz mdadm-78757ce8a57059a09f7ea57fd9a5d47984d98fe9.zip |
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 <krzysztof.wojcik@intel.com>
Tested-by: Jacek Danecki <jacek.danecki@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | super-intel.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |