diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-16 21:40:58 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:36 -0500 |
commit | fbf9270817249bb00044de74587155f307d1003f (patch) | |
tree | dd92a86b5cf7d0f096e6dcde486c56db0f65793f /fs/bcachefs/recovery.c | |
parent | 7d9ae04e3987648b99b9ac8036178a75fb913dd6 (diff) | |
download | linux-fbf9270817249bb00044de74587155f307d1003f.tar.gz linux-fbf9270817249bb00044de74587155f307d1003f.tar.bz2 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; |