File display-timeout-status of Package mdadm
---
Detail.c | 1 +
md_p.h | 1 +
2 files changed, 2 insertions(+)
--- mdadm-3.3.orig/Detail.c
+++ mdadm-3.3/Detail.c
@@ -634,6 +634,7 @@ This is pretty boring
disk.raid_disk >= 0)
failed++;
}
+ if (disk.state & (1<<MD_DISK_TIMEOUT)) printf(" timeout");
if (disk.state & (1<<MD_DISK_ACTIVE)) printf(" active");
if (disk.state & (1<<MD_DISK_SYNC)) {
printf(" sync");
--- mdadm-3.3.orig/md_p.h
+++ mdadm-3.3/md_p.h
@@ -84,6 +84,7 @@
* dire need
*/
#define MD_DISK_FAILFAST 10 /* Fewer retries, more failures */
+#define MD_DISK_TIMEOUT 11 /* disk is faulty due to timeout */
#define MD_DISK_REPLACEMENT 17