Skip to content

Commit 9e9c28a

Browse files
author
Kent Overstreet
committed
bcachefs: Add upgrade table entry from 0.14
There are a few errors that needed to be marked as autofix. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 3c24020 commit 9e9c28a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

fs/bcachefs/sb-downgrade.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* x(version, recovery_passes, errors...)
2121
*/
2222
#define UPGRADE_TABLE() \
23+
x(snapshot_2, \
24+
RECOVERY_PASS_ALL_FSCK, \
25+
BCH_FSCK_ERR_subvol_root_wrong_bi_subvol, \
26+
BCH_FSCK_ERR_subvol_not_master_and_not_snapshot) \
2327
x(backpointers, \
2428
RECOVERY_PASS_ALL_FSCK) \
2529
x(inode_v3, \

fs/bcachefs/sb-errors_format.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ enum bch_fsck_flags {
205205
x(snapshot_bad_depth, 184, 0) \
206206
x(snapshot_bad_skiplist, 185, 0) \
207207
x(subvol_pos_bad, 186, 0) \
208-
x(subvol_not_master_and_not_snapshot, 187, 0) \
208+
x(subvol_not_master_and_not_snapshot, 187, FSCK_AUTOFIX) \
209209
x(subvol_to_missing_root, 188, 0) \
210-
x(subvol_root_wrong_bi_subvol, 189, 0) \
210+
x(subvol_root_wrong_bi_subvol, 189, FSCK_AUTOFIX) \
211211
x(bkey_in_missing_snapshot, 190, 0) \
212212
x(inode_pos_inode_nonzero, 191, 0) \
213213
x(inode_pos_blockdev_range, 192, 0) \

0 commit comments

Comments
 (0)