diff options
author | NeilBrown <neilb@suse.de> | 2008-12-04 06:08:33 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-12-04 06:08:33 +0100 |
commit | 8592f29d642655a2b337b010dfa435a10b362769 (patch) | |
tree | b61030d5686072c0469c49bf273360d116050251 /super-intel.c | |
parent | Change 'size' argument to validate_geometry to be sectors, not K (diff) | |
download | 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.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c index f78957f1..b908375d 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, |