[PATCH 4/4] md: Add prompt message about wantreplacement disk in /proc/mdstat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From file "/proc/mdstat",we only get the disk which replacing.But we
can't get the disk which want repalce.So add the info.

Signed-off-by: Jianpeng Ma <majianpeng@xxxxxxxxx>
---
 drivers/md/md.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index 3db3d1b..4935dbe 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -7017,6 +7017,8 @@ static int md_seq_show(struct seq_file *seq, void *v)
 				seq_printf(seq, "(S)"); /* spare */
 			if (test_bit(Replacement, &rdev->flags))
 				seq_printf(seq, "(R)");
+			if (test_bit(WantReplacement, &rdev->flags))
+				seq_printf(seq, "(WR)");
 			sectors += rdev->sectors;
 		}
 
-- 
1.7.9.5
?韬{.n?????%??檩??w?{.n???{炳盯w???塄}?财??j:+v??????2??璀??摺?囤??z夸z罐?+?????w棹f



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux