mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
cmd_dump: Fix missing sectors-to-bytes conversion
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
128b569155
commit
5531accc97
@ -77,7 +77,7 @@ static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd,
|
||||
if (ptr->dev == ca->dev_idx)
|
||||
range_add(&data,
|
||||
ptr->offset << 9,
|
||||
btree_ptr_sectors_written(&b->key));
|
||||
btree_ptr_sectors_written(&b->key) << 9);
|
||||
}
|
||||
}
|
||||
|
||||
@ -92,7 +92,7 @@ static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd,
|
||||
if (ptr->dev == ca->dev_idx)
|
||||
range_add(&data,
|
||||
ptr->offset << 9,
|
||||
btree_ptr_sectors_written(&b->key));
|
||||
btree_ptr_sectors_written(&b->key) << 9);
|
||||
}
|
||||
|
||||
bch2_trans_iter_exit(trans, &iter);
|
||||
|
Loading…
Reference in New Issue
Block a user