mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
cmd_migrate: use correct bucket size
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e99da4dddb
commit
ad3875d1d9
@ -281,8 +281,10 @@ static int migrate_fs(const char *fs_path,
|
|||||||
.type = BCH_MIGRATE_migrate,
|
.type = BCH_MIGRATE_migrate,
|
||||||
};
|
};
|
||||||
|
|
||||||
u64 reserve_start = round_up((format_opts.superblock_size * 2 + 8) << 9,
|
|
||||||
dev->opts.bucket_size);
|
u64 reserve_start = roundup((format_opts.superblock_size * 2 + 8) << 9,
|
||||||
|
bucket_bytes(c->devs[0]));
|
||||||
|
BUG_ON(!reserve_start);
|
||||||
|
|
||||||
copy_fs(c, fs_fd, fs_path, &s, reserve_start);
|
copy_fs(c, fs_fd, fs_path, &s, reserve_start);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user