Let fsck recognize STOP_CP_REASON_CORRUPTED_NID for repair.

Signed-off-by: Chao Yu <[email protected]>
---
 fsck/mount.c      | 1 +
 include/f2fs_fs.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/fsck/mount.c b/fsck/mount.c
index a1c4cbb..5399f16 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -730,6 +730,7 @@ static char *stop_reason_str[] = {
        [STOP_CP_REASON_FLUSH_FAIL]             = "flush_fail",
        [STOP_CP_REASON_NO_SEGMENT]             = "no_segment",
        [STOP_CP_REASON_CORRUPTED_FREE_BITMAP]  = "corrupted_free_bitmap",
+       [STOP_CP_REASON_CORRUPTED_NID]          = "corrupted nid",
 };
 
 void print_sb_stop_reason(struct f2fs_super_block *sb)
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index e7b2971..1686b9a 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -741,6 +741,7 @@ enum stop_cp_reason {
        STOP_CP_REASON_FLUSH_FAIL,
        STOP_CP_REASON_NO_SEGMENT,
        STOP_CP_REASON_CORRUPTED_FREE_BITMAP,
+       STOP_CP_REASON_CORRUPTED_NID,
        STOP_CP_REASON_MAX,
 };
 
-- 
2.49.0



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to