* [f2fs-dev] [PATCH] fsck.f2fs: recognize STOP_CP_REASON_READ_{META, NODE, DATA}
@ 2026-03-13 7:25 Chao Yu via Linux-f2fs-devel
0 siblings, 0 replies; only message in thread
From: Chao Yu via Linux-f2fs-devel @ 2026-03-13 7:25 UTC (permalink / raw)
To: jaegeuk; +Cc: linux-f2fs-devel
Let fsck recognize STOP_CP_REASON_READ_{META,NODE,DATA} for repair.
Signed-off-by: Chao Yu <chao@kernel.org>
---
fsck/mount.c | 3 +++
include/f2fs_fs.h | 3 +++
2 files changed, 6 insertions(+)
diff --git a/fsck/mount.c b/fsck/mount.c
index d1eb3a9..9b353e3 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -733,6 +733,9 @@ static char *stop_reason_str[] = {
[STOP_CP_REASON_NO_SEGMENT] = "no_segment",
[STOP_CP_REASON_CORRUPTED_FREE_BITMAP] = "corrupted_free_bitmap",
[STOP_CP_REASON_CORRUPTED_NID] = "corrupted nid",
+ [STOP_CP_REASON_READ_META] = "read_meta_fail",
+ [STOP_CP_REASON_READ_NODE] = "read_node_fail",
+ [STOP_CP_REASON_READ_DATA] = "read_data_fail",
};
void print_sb_stop_reason(struct f2fs_super_block *sb)
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index d0877b9..21310fa 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -745,6 +745,9 @@ enum stop_cp_reason {
STOP_CP_REASON_NO_SEGMENT,
STOP_CP_REASON_CORRUPTED_FREE_BITMAP,
STOP_CP_REASON_CORRUPTED_NID,
+ STOP_CP_REASON_READ_META,
+ STOP_CP_REASON_READ_NODE,
+ STOP_CP_REASON_READ_DATA,
STOP_CP_REASON_MAX,
};
--
2.49.0
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-13 7:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13 7:25 [f2fs-dev] [PATCH] fsck.f2fs: recognize STOP_CP_REASON_READ_{META, NODE, DATA} Chao Yu via Linux-f2fs-devel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox