Message ID | 1708417168-29109-1-git-send-email-zhiguo.niu@unisoc.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [f2fs-dev] f2fs-tools: add a new stop cp reason STOP_CP_REASON_NO_SEGMENT | expand |
On 2024/2/20 16:19, Zhiguo Niu wrote: > Add a new stop cp reason STOP_CP_REASON_NO_SEGMENT for keeping > consistent with kernel codes. > > Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com> Reviewed-by: Chao Yu <chao@kernel.org> Thanks,
diff --git a/fsck/mount.c b/fsck/mount.c index 50afd01..b983920 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -679,6 +679,7 @@ static char *stop_reason_str[] = { [STOP_CP_REASON_CORRUPTED_SUMMARY] = "corrupted_summary", [STOP_CP_REASON_UPDATE_INODE] = "update_inode", [STOP_CP_REASON_FLUSH_FAIL] = "flush_fail", + [STOP_CP_REASON_NO_SEGMENT] = "no_segment", }; void print_sb_stop_reason(struct f2fs_super_block *sb) diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index 5e9dfad..fb2a863 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -718,6 +718,7 @@ enum stop_cp_reason { STOP_CP_REASON_CORRUPTED_SUMMARY, STOP_CP_REASON_UPDATE_INODE, STOP_CP_REASON_FLUSH_FAIL, + STOP_CP_REASON_NO_SEGMENT, STOP_CP_REASON_MAX, };
Add a new stop cp reason STOP_CP_REASON_NO_SEGMENT for keeping consistent with kernel codes. Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com> --- fsck/mount.c | 1 + include/f2fs_fs.h | 1 + 2 files changed, 2 insertions(+)