From: majianpeng <majianpeng@gmail.com>
To: NeilBrown <neilb@suse.de>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: [PATCH 4/4] md: Add prompt message about wantreplacement disk in /proc/mdstat
Date: Thu, 28 Feb 2013 15:50:28 +0800 [thread overview]
Message-ID: <201302281550256355711@gmail.com> (raw)
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@gmail.com>
---
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
next reply other threads:[~2013-02-28 7:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-28 7:50 majianpeng [this message]
2013-03-04 2:05 ` [PATCH 4/4] md: Add prompt message about wantreplacement disk in /proc/mdstat NeilBrown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201302281550256355711@gmail.com \
--to=majianpeng@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).