summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-12-04 16:08:33 +1100
committerNeilBrown <neilb@suse.de>2008-12-04 16:08:33 +1100
commit8592f29d642655a2b337b010dfa435a10b362769 (patch)
treeb61030d5686072c0469c49bf273360d116050251 /super-intel.c
parente46273ebe4ce6dee3ecbb640027cd3c3eca9a921 (diff)
downloadmdadm-8592f29d642655a2b337b010dfa435a10b362769.tar.gz
mdadm-8592f29d642655a2b337b010dfa435a10b362769.tar.xz
mdadm-8592f29d642655a2b337b010dfa435a10b362769.zip
Create: support autolayout when creating in a DDF
If, when creating an array, a signal target device is given which is a container, then allow the metadata handler to choose which devices to use. This is currently only supported for DDF. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c
index f78957f..b908375 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -2387,6 +2387,14 @@ static int validate_geometry_imsm(struct supertype *st, int level, int layout,
verbose);
}
+ if (!dev) {
+ if (st->sb && freesize) {
+ /* Should do auto-layout here */
+ fprintf(stderr, Name ": IMSM does not support auto-layout yet\n");
+ return 0;
+ }
+ return 1;
+ }
if (st->sb) {
/* creating in a given container */
return validate_geometry_imsm_volume(st, level, layout,