mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00: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:
parent
7d9ae04e39
commit
fbf9270817
@ -995,8 +995,12 @@ use_clean:
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user