raid10 vs raid01 type in dmraid
"Gaston, Jason D" <[email protected]>
| Newsgroups | gmane.linux.ataraid |
|---|---|
| Message-ID | <39B20DF628532344BC7A2692CB6AEE07016FEEC9@orsmsx420.amr.corp.intel.com> |
I think that the array for nested raid levels, in metadata.c, may be
upside down. When I build a raid0+1 with Intel or Nvidia (one mirror
array of two stripe arrays), it is reported as a "raid10" with [dmraid
-s], this should be "raid01". If I reverse the nesting to raid10, in
Intel (one stripe array of two mirror arrays), it is reported as a
"raid01" with [dmraid -s], this should be "raid10".
Can we just reverse the array in metadata.c?
From:
static const char *stacked_ascii_type[][5] = {
{ "raid10", "raid30", "raid40", "raid50", "raid60" },
{ "raid01", "raid03", "raid04", "raid05", "raid06" },
};
To:
static const char *stacked_ascii_type[][5] = {
{ "raid01", "raid03", "raid04", "raid05", "raid06" },
{ "raid10", "raid30", "raid40", "raid50", "raid60" },
};
Thanks,
Jason