mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-24 00:00:19 +03:00
Revert dump blocksize change
It appears qemu-img chokes on qcow2 images with too many l1 entries Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
7bf821f3f9
commit
1e35104d31
@ -94,7 +94,8 @@ static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd,
|
|||||||
bch2_trans_put(trans);
|
bch2_trans_put(trans);
|
||||||
}
|
}
|
||||||
|
|
||||||
qcow2_write_image(ca->disk_sb.bdev->bd_fd, fd, &data, block_bytes(c));
|
qcow2_write_image(ca->disk_sb.bdev->bd_fd, fd, &data,
|
||||||
|
max_t(unsigned, c->opts.btree_node_size / 8, block_bytes(c)));
|
||||||
darray_exit(&data);
|
darray_exit(&data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user