summaryrefslogtreecommitdiff
path: root/Detail.c
diff options
context:
space:
mode:
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/Detail.c b/Detail.c
index ae15846d..abe8e2f1 100644
--- a/Detail.c
+++ b/Detail.c
@@ -533,7 +533,19 @@ This is pretty boring
failed++;
}
if (disk.state & (1<<MD_DISK_ACTIVE)) printf(" active");
- if (disk.state & (1<<MD_DISK_SYNC)) printf(" sync");
+ if (disk.state & (1<<MD_DISK_SYNC)) {
+ printf(" sync");
+ if (array.level == 10 && (array.layout & ~0x1FFFF) == 0) {
+ int nc = array.layout & 0xff;
+ int fc = (array.layout >> 8) & 0xff;
+ int copies = nc*fc;
+ if (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');
+ }
+ }
+ }
if (disk.state & (1<<MD_DISK_REMOVED)) printf(" removed");
if (disk.state & (1<<MD_DISK_WRITEMOSTLY)) printf(" writemostly");
if ((disk.state &