Let fsck.f2fs recognize STOP_CP_REASON_CORRUPTED_FREE_BITMAP.
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 4fd26a6..08b2687 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -729,6 +729,7 @@ static char *stop_reason_str[] = {
[STOP_CP_REASON_UPDATE_INODE] = "update_inode",
[STOP_CP_REASON_FLUSH_FAIL] = "flush_fail",
[STOP_CP_REASON_NO_SEGMENT] = "no_segment",
+ [STOP_CP_REASON_CORRUPTED_FREE_BITMAP] = "corrupted_free_bitmap",
};
void print_sb_stop_reason(struct f2fs_super_block *sb)
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index 12b08fb..0537dcb 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -739,6 +739,7 @@ enum stop_cp_reason {
STOP_CP_REASON_UPDATE_INODE,
STOP_CP_REASON_FLUSH_FAIL,
STOP_CP_REASON_NO_SEGMENT,
+ STOP_CP_REASON_CORRUPTED_FREE_BITMAP,
STOP_CP_REASON_MAX,
};
--
2.49.0
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel