diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-10-26 04:31:22 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-11-05 19:41:49 -0500 |
commit | b4b153f8c27bdf5cfcb92ab0380f3762d98723cc (patch) | |
tree | 11a06b504cca35ad9133ea845b1d08923f7012fd /fs/f2fs/debug.c | |
parent | d8d1389ea1902560b84649b7ef572b117d09d338 (diff) |
f2fs: show current cp state
This patch shows whether checkpoint met any error case.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r-- | fs/f2fs/debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index d441660c3ba6..f7eec506ceea 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c | |||
@@ -264,9 +264,10 @@ static int stat_show(struct seq_file *s, void *v) | |||
264 | list_for_each_entry(si, &f2fs_stat_list, stat_list) { | 264 | list_for_each_entry(si, &f2fs_stat_list, stat_list) { |
265 | update_general_status(si->sbi); | 265 | update_general_status(si->sbi); |
266 | 266 | ||
267 | seq_printf(s, "\n=====[ partition info(%pg). #%d, %s]=====\n", | 267 | seq_printf(s, "\n=====[ partition info(%pg). #%d, %s, CP: %s]=====\n", |
268 | si->sbi->sb->s_bdev, i++, | 268 | si->sbi->sb->s_bdev, i++, |
269 | f2fs_readonly(si->sbi->sb) ? "RO": "RW"); | 269 | f2fs_readonly(si->sbi->sb) ? "RO": "RW", |
270 | f2fs_cp_error(si->sbi) ? "Error": "Good"); | ||
270 | seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ", | 271 | seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ", |
271 | si->sit_area_segs, si->nat_area_segs); | 272 | si->sit_area_segs, si->nat_area_segs); |
272 | seq_printf(s, "[SSA: %d] [MAIN: %d", | 273 | seq_printf(s, "[SSA: %d] [MAIN: %d", |