mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 02:32:49 -04:00
bcachefs: Print old version when scanning for old metadata
Also: we should be using bch2_fs_read_write_early() Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -995,8 +995,12 @@ int bch2_fs_recovery(struct bch_fs *c)
|
||||
|
||||
bch2_move_stats_init(&stats, "recovery");
|
||||
|
||||
bch_info(c, "scanning for old btree nodes");
|
||||
ret = bch2_fs_read_write(c) ?:
|
||||
struct printbuf buf = PRINTBUF;
|
||||
bch2_version_to_text(&buf, c->sb.version_min);
|
||||
bch_info(c, "scanning for old btree nodes: min_version %s", buf.buf);
|
||||
printbuf_exit(&buf);
|
||||
|
||||
ret = bch2_fs_read_write_early(c) ?:
|
||||
bch2_scan_old_btree_nodes(c, &stats);
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
Reference in New Issue
Block a user