From: NeilBrown <neilb@suse.de>
To: majianpeng <majianpeng@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: [PATCH 4/4] md: Add prompt message about wantreplacement disk in /proc/mdstat
Date: Mon, 4 Mar 2013 13:05:31 +1100 [thread overview]
Message-ID: <20130304130531.047b4879@notabene.brown> (raw)
In-Reply-To: <201302281550256355711@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 890 bytes --]
On Thu, 28 Feb 2013 15:50:28 +0800 majianpeng <majianpeng@gmail.com> wrote:
> 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;
> }
>
If you really need it you can get it from /sys.
not applied.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2013-03-04 2:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-28 7:50 [PATCH 4/4] md: Add prompt message about wantreplacement disk in /proc/mdstat majianpeng
2013-03-04 2:05 ` NeilBrown [this message]
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=20130304130531.047b4879@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=majianpeng@gmail.com \
/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).