summaryrefslogtreecommitdiff
path: root/super-intel.c
diff options
context:
space:
mode:
authorLukasz Orlowski <lukasz.orlowski@intel.com>2011-09-19 18:52:31 +0200
committerNeilBrown <neilb@suse.de>2011-09-21 13:24:34 +1000
commite7cb06c84548c9924a41c48f7d0e0c8a29b0996d (patch)
treede4522bde490acaf39db209f85987d0f0e2b7edb /super-intel.c
parent3f54bd62dc26c9d9dd3398ad07ab8fbd5a55474d (diff)
Create: Allow to create two volumes of different sizes within one container
Allows to create RAID 5 volume on 3 disks and then RAID 1 volume on 2 disks withing the same container. Signed-off-by: Lukasz Orlowski <lukasz.orlowski@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c
index f1c924f0..e57d18fe 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -5070,6 +5070,12 @@ static int validate_geometry_imsm_volume(struct supertype *st, int level,
if (!super)
return 0;
+ if (mpb->num_raid_devs > 0 && mpb->num_disks != raiddisks) {
+ fprintf(stderr, Name ": the option-rom requires all "
+ "member disks to be a member of all volumes.\n");
+ return 0;
+ }
+
if (!validate_geometry_imsm_orom(super, level, layout, raiddisks, chunk, verbose)) {
fprintf(stderr, Name ": RAID gemetry validation failed. "
"Cannot proceed with the action(s).\n");