From 80167bf0a850b9b073a1d1d49e3ced875aac6e02 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 25 May 2024 13:44:44 -0400 Subject: cmd_dump: Dump full btree nodes We're still having issues with corrupted dumps when we try to dump only the live part of btree nodes. Signed-off-by: Kent Overstreet --- c_src/cmd_dump.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/c_src/cmd_dump.c b/c_src/cmd_dump.c index 82fa4e07..f54ea85d 100644 --- a/c_src/cmd_dump.c +++ b/c_src/cmd_dump.c @@ -36,8 +36,7 @@ static void dump_node(struct bch_fs *c, struct bch_dev *ca, struct bkey_s_c k, r bkey_for_each_ptr(ptrs, ptr) if (ptr->dev == ca->dev_idx) - range_add(data, ptr->offset << 9, - (btree_ptr_sectors_written(k) << 9) ?: c->opts.btree_node_size); + range_add(data, ptr->offset << 9, c->opts.btree_node_size); } static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd, -- cgit v1.2.3