diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-17 03:40:58 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 17:47:36 +0100 |
commit | fbf9270817249bb00044de74587155f307d1003f (patch) | |
tree | dd92a86b5cf7d0f096e6dcde486c56db0f65793f /fs/bcachefs/recovery.c | |
parent | bcachefs: Fix locking when checking freespace btree (diff) | |
download | linux-fbf9270817249bb00044de74587155f307d1003f.tar.xz linux-fbf9270817249bb00044de74587155f307d1003f.zip |
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>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 70add8274a95..7b625fa37d92 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -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; |