X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=maps.c;fp=maps.c;h=a4fd27977c3685db7e23795a7582c016fb038d70;hp=49b7f2c2d274bdd4143fc09193df61dbf202d2eb;hb=329dfc28debb58ffe7bd1967cea00fc583139aca;hpb=6da53c0e2aab200605722795798b1e4f2352cd64 diff --git a/maps.c b/maps.c index 49b7f2c2..a4fd2797 100644 --- a/maps.c +++ b/maps.c @@ -73,6 +73,18 @@ mapping_t r6layout[] = { { NULL, UnSet } }; +/* raid0 layout is only needed because of a bug in 3.14 which changed + * the effective layout of raid0 arrays with varying device sizes. + */ +mapping_t r0layout[] = { + { "original", RAID0_ORIG_LAYOUT}, + { "alternate", RAID0_ALT_MULTIZONE_LAYOUT}, + { "1", 1}, /* aka ORIG */ + { "2", 2}, /* aka ALT */ + { "dangerous", 0}, + { NULL, UnSet}, +}; + mapping_t pers[] = { { "linear", LEVEL_LINEAR}, { "raid0", 0},