-
-/* name/number mappings */
-
-mapping_t r5layout[] = {
- { "left-asymmetric", 0},
- { "right-asymmetric", 1},
- { "left-symmetric", 2},
- { "right-symmetric", 3},
-
- { "default", 2},
- { "la", 0},
- { "ra", 1},
- { "ls", 2},
- { "rs", 3},
- { NULL, 0}
-};
-
-mapping_t pers[] = {
- { "linear", LEVEL_LINEAR},
- { "raid0", 0},
- { "0", 0},
- { "stripe", 0},
- { "raid1", 1},
- { "1", 1},
- { "mirror", 1},
- { "raid4", 4},
- { "4", 4},
- { "raid5", 5},
- { "5", 5},
- { "multipath", LEVEL_MULTIPATH},
- { "mp", LEVEL_MULTIPATH},
- { "raid6", 6},
- { "6", 6},
- { "raid10", 10},
- { "10", 10},
- { "faulty", LEVEL_FAULTY},
- { "container", LEVEL_CONTAINER},
- { NULL, 0}
-};
-
-
-mapping_t modes[] = {
- { "assemble", ASSEMBLE},
- { "build", BUILD},
- { "create", CREATE},
- { "manage", MANAGE},
- { "misc", MISC},
- { "monitor", MONITOR},
- { "grow", GROW},
- { "incremental", INCREMENTAL},
- { "auto-detect", AUTODETECT},
-};
-
-mapping_t faultylayout[] = {
- { "write-transient", WriteTransient },
- { "wt", WriteTransient },
- { "read-transient", ReadTransient },
- { "rt", ReadTransient },
- { "write-persistent", WritePersistent },
- { "wp", WritePersistent },
- { "read-persistent", ReadPersistent },
- { "rp", ReadPersistent },
- { "write-all", WriteAll },
- { "wa", WriteAll },
- { "read-fixable", ReadFixable },
- { "rf", ReadFixable },
-
- { "clear", ClearErrors},
- { "flush", ClearFaults},
- { "none", ClearErrors},
- { "default", ClearErrors},
- { NULL, 0}
-};