Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac6096e9 authored by Shaohua Li's avatar Shaohua Li Committed by NeilBrown
Browse files

md: show journal for journal disk in disk state sysfs



Journal disk state sysfs entry should indicate it's journal

Signed-off-by: default avatarShaohua Li <shli@fb.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
parent 0b020e85
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 = ",";