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:
parent
4f5bc4542c
commit
3cfe624740
4
Create.c
4
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue