mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
84f1638795
Add a new superblock section that contains a list of { minor version, recovery passes, errors_to_fix } that is - a list of recovery passes that must be run when downgrading past a given version, and a list of errors to silently fix. The upcoming disk accounting rewrite is not going to be fully compatible: we're going to have to regenerate accounting both when upgrading to the new version, and also from downgrading from the new version, since the new method of doing disk space accounting is a completely different architecture based on deltas, and synchronizing them for every jounal entry write to maintain compatibility is going to be too expensive and impractical. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
11 lines
323 B
C
11 lines
323 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHEFS_SB_DOWNGRADE_H
|
|
#define _BCACHEFS_SB_DOWNGRADE_H
|
|
|
|
extern const struct bch_sb_field_ops bch_sb_field_ops_downgrade;
|
|
|
|
int bch2_sb_downgrade_update(struct bch_fs *);
|
|
void bch2_sb_set_downgrade(struct bch_fs *, unsigned, unsigned);
|
|
|
|
#endif /* _BCACHEFS_SB_DOWNGRADE_H */
|