mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
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 <kent.overstreet@linux.dev>
This commit is contained in:
parent
1e35104d31
commit
80167bf0a8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user