From: Dan Williams Date: Thu, 15 May 2008 06:48:32 +0000 (+1000) Subject: imsm: create support X-Git-Tag: devel~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cfe6247400e92f85282da89dfea7f1d3ba88634;p=thirdparty%2Fmdadm.git imsm: create support From: Dan Williams This should probably be made into a generic 'external' capability rather than hardcoding 'ddf' and 'imsm'. Signed-off-by: Dan Williams --- diff --git a/Create.c b/Create.c index c1d607fa..2b59d037 100644 --- a/Create.c +++ b/Create.c @@ -94,10 +94,10 @@ int Create(struct supertype *st, char *mddev, int mdfd, } } if (level == UnSet) { - /* "ddf" metadata only supports one level - should possibly + /* "ddf" and "imsm" metadata only supports one level - should possibly * push this into metadata handler?? */ - if (st && st->ss == &super_ddf) + if (st && (st->ss == &super_ddf || st->ss == &super_imsm)) level = LEVEL_CONTAINER; }