Detail/raid10: don't report 'set' names for 'far' and 'offset' raid10.
The 'set' concept is only meaningful for 'near' arrays, so only use it there. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
b3ec716d00
commit
787e234ddc
2
Detail.c
2
Detail.c
|
@ -547,7 +547,7 @@ This is pretty boring
|
|||
int nc = array.layout & 0xff;
|
||||
int fc = (array.layout >> 8) & 0xff;
|
||||
int copies = nc*fc;
|
||||
if (array.raid_disks % copies == 0 && copies <= 26) {
|
||||
if (fc == 1 && array.raid_disks % copies == 0 && copies <= 26) {
|
||||
/* We can divide the devices into 'sets' */
|
||||
int set = disk.raid_disk % copies;
|
||||
printf(" set-%c", set + 'A');
|
||||
|
|
Loading…
Reference in New Issue