Skip to content

Commit

Permalink
fsck.f2fs: recognize ERROR_INVALID_NODE_REFERENCE
Browse files Browse the repository at this point in the history
This patch supports to recognize ERROR_INVALID_NODE_REFERENCE error
recorded in superblock during fsck, and force fsck to fix related
issue.

Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
chaseyu authored and Jaegeuk Kim committed Jun 30, 2023
1 parent 213cc16 commit 6222c7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fsck/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ static char *errors_str[] = {
[ERROR_INCONSISTENT_SIT] = "inconsistent_sit",
[ERROR_CORRUPTED_VERITY_XATTR] = "corrupted_verity_xattr",
[ERROR_CORRUPTED_XATTR] = "corrupted_xattr",
[ERROR_INVALID_NODE_REFERENCE] = "invalid_node_reference",
};

void print_sb_errors(struct f2fs_super_block *sb)
Expand Down
1 change: 1 addition & 0 deletions include/f2fs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ enum f2fs_error {
ERROR_INCONSISTENT_SIT,
ERROR_CORRUPTED_VERITY_XATTR,
ERROR_CORRUPTED_XATTR,
ERROR_INVALID_NODE_REFERENCE,
ERROR_MAX,
};

Expand Down

0 comments on commit 6222c7a

Please sign in to comment.