On Thu, 28 Feb 2013 15:50:28 +0800 majianpeng <majianpeng@xxxxxxxxx> 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@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; > } > If you really need it you can get it from /sys. not applied. NeilBrown
Attachment:
signature.asc
Description: PGP signature