X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Create.c;h=1099dcbafab33199dfbc9c49f0864003e58105b8;hp=6e58b53526ab3a5d768d445d527348d47b403776;hb=a322f70c41a1c381e19b1913b8ad2a8b77078800;hpb=d03373f1deea242eaacfab6b2b0c4afc6d7702d2 diff --git a/Create.c b/Create.c index 6e58b535..1099dcba 100644 --- a/Create.c +++ b/Create.c @@ -92,6 +92,14 @@ int Create(struct supertype *st, char *mddev, int mdfd, return 1; } } + if (level == UnSet) { + /* "ddf" metadata only supports one level - should possibly + * push this into metadata handler?? + */ + if (st && st->ss == &super_ddf) + level = LEVEL_CONTAINER; + } + if (level == UnSet) { fprintf(stderr, Name ": a RAID level is needed to create an array.\n");