summaryrefslogtreecommitdiff
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2015-10-04 19:20:11 +0300
committerNeilBrown <neilb@suse.com>2015-11-01 05:48:27 +0300
commitac6096e9d5cb88a31f3af2d140df7d680b42745e (patch)
tree9adf44d0e7cd96e27ff22ed3d75a87d8f333d53a /drivers/md/md.c
parent0b020e85bdd5765aac2440848e7a927069f5f83c (diff)
downloadlinux-ac6096e9d5cb88a31f3af2d140df7d680b42745e.tar.xz
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 <shli@fb.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c4
1 files changed, 4 insertions, 0 deletions
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 = ",";