imsm: create support

From: Dan Williams <dan.j.williams@intel.com>

This should probably be made into a generic 'external' capability rather
than hardcoding 'ddf' and 'imsm'.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2008-05-15 16:48:32 +10:00 committed by Neil Brown
parent 4f5bc4542c
commit 3cfe624740
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}