mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
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>
This commit is contained in:
parent
0b020e85bd
commit
ac6096e9d5
1 changed files with 4 additions and 0 deletions
|
@ -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 = ",";
|
||||
|
|
Loading…
Reference in a new issue