diff options
Diffstat (limited to 'libbcachefs/sb-errors_format.h')
-rw-r--r-- | libbcachefs/sb-errors_format.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libbcachefs/sb-errors_format.h b/libbcachefs/sb-errors_format.h index f1aa4054..bb1eddd6 100644 --- a/libbcachefs/sb-errors_format.h +++ b/libbcachefs/sb-errors_format.h @@ -3,9 +3,10 @@ #define _BCACHEFS_SB_ERRORS_FORMAT_H enum bch_fsck_flags { - FSCK_CAN_FIX = 1 << 0, - FSCK_CAN_IGNORE = 1 << 1, - FSCK_AUTOFIX = 1 << 2, + FSCK_CAN_FIX = BIT(0), + FSCK_CAN_IGNORE = BIT(1), + FSCK_AUTOFIX = BIT(2), + FSCK_ERR_NO_LOG = BIT(3), }; #define BCH_SB_ERRS() \ @@ -278,7 +279,7 @@ enum bch_fsck_flags { x(root_subvol_missing, 238, 0) \ x(root_dir_missing, 239, 0) \ x(root_inode_not_dir, 240, 0) \ - x(dir_loop, 241, 0) \ + x(dir_loop, 241, FSCK_AUTOFIX) \ x(hash_table_key_duplicate, 242, FSCK_AUTOFIX) \ x(hash_table_key_wrong_offset, 243, FSCK_AUTOFIX) \ x(unlinked_inode_not_on_deleted_list, 244, FSCK_AUTOFIX) \ @@ -295,7 +296,7 @@ enum bch_fsck_flags { x(subvol_root_fs_path_parent_nonzero, 255, 0) \ x(subvol_children_not_set, 256, 0) \ x(subvol_children_bad, 257, 0) \ - x(subvol_loop, 258, 0) \ + x(subvol_loop, 258, FSCK_AUTOFIX) \ x(subvol_unreachable, 259, FSCK_AUTOFIX) \ x(btree_node_bkey_bad_u64s, 260, 0) \ x(btree_node_topology_empty_interior_node, 261, 0) \ |