Commit fbf92708 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Print old version when scanning for old metadata

Also: we should be using bch2_fs_read_write_early()
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7d9ae04e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment