From: Jaegeuk Kim <jaegeuk@kernel.org>
To: linux-f2fs-devel@lists.sourceforge.net
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Subject: [PATCH 2/2] fsck.f2fs: show missing checkpoint flags
Date: Sat, 20 Jan 2018 14:06:57 -0800 [thread overview]
Message-ID: <20180120220657.28292-2-jaegeuk@kernel.org> (raw)
In-Reply-To: <20180120220657.28292-1-jaegeuk@kernel.org>
This patch shows some missing checkpoint flags.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
fsck/mount.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/fsck/mount.c b/fsck/mount.c
index 124593d..0a5b986 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -401,6 +401,16 @@ void print_ckpt_info(struct f2fs_sb_info *sbi)
void print_cp_state(u32 flag)
{
MSG(0, "Info: checkpoint state = %x : ", flag);
+ if (flag & CP_NOCRC_RECOVERY_FLAG)
+ MSG(0, "%s", " allow_nocrc");
+ if (flag & CP_TRIMMED_FLAG)
+ MSG(0, "%s", " trimmed");
+ if (flag & CP_NAT_BITS_FLAG)
+ MSG(0, "%s", " nat_bits");
+ if (flag & CP_CRC_RECOVERY_FLAG)
+ MSG(0, "%s", " crc");
+ if (flag & CP_FASTBOOT_FLAG)
+ MSG(0, "%s", " fastboot");
if (flag & CP_FSCK_FLAG)
MSG(0, "%s", " fsck");
if (flag & CP_ERROR_FLAG)
@@ -409,12 +419,6 @@ void print_cp_state(u32 flag)
MSG(0, "%s", " compacted_summary");
if (flag & CP_ORPHAN_PRESENT_FLAG)
MSG(0, "%s", " orphan_inodes");
- if (flag & CP_FASTBOOT_FLAG)
- MSG(0, "%s", " fastboot");
- if (flag & CP_NAT_BITS_FLAG)
- MSG(0, "%s", " nat_bits");
- if (flag & CP_TRIMMED_FLAG)
- MSG(0, "%s", " trimmed");
if (flag & CP_UMOUNT_FLAG)
MSG(0, "%s", " unmount");
else
--
2.15.0.531.g2ccb3012c9-goog
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
next prev parent reply other threads:[~2018-01-20 22:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-20 22:06 [PATCH 1/2] fsck.f2fs: allow roll-forward for small checkpoint fix Jaegeuk Kim
2018-01-20 22:06 ` Jaegeuk Kim [this message]
2018-01-21 2:43 ` [PATCH 2/2] fsck.f2fs: show missing checkpoint flags Chao Yu
2018-01-21 2:42 ` [PATCH 1/2] fsck.f2fs: allow roll-forward for small checkpoint fix Chao Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180120220657.28292-2-jaegeuk@kernel.org \
--to=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).