From ac6096e9d5cb88a31f3af2d140df7d680b42745e Mon Sep 17 00:00:00 2001 From: Shaohua Li Date: Sun, 4 Oct 2015 09:20:11 -0700 Subject: md: show journal for journal disk in disk state sysfs Journal disk state sysfs entry should indicate it's journal Signed-off-by: Shaohua Li Signed-off-by: NeilBrown --- drivers/md/md.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/md/md.c') diff --git a/drivers/md/md.c b/drivers/md/md.c index fe67272d0b1b..5744829b7d05 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2520,6 +2520,10 @@ state_show(struct md_rdev *rdev, char *page) len += sprintf(page+len, "%sin_sync",sep); sep = ","; } + if (test_bit(Journal, &flags)) { + len += sprintf(page+len, "%sjournal",sep); + sep = ","; + } if (test_bit(WriteMostly, &flags)) { len += sprintf(page+len, "%swrite_mostly",sep); sep = ","; -- cgit v1.2.3