mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-27 07:20:53 +00:00
btrfs-restore: use the correct leafsize when reading the FS location
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
f4ca892339
commit
8b5d89be6d
@ -1067,7 +1067,7 @@ int cmd_restore(int argc, char **argv)
|
||||
|
||||
if (fs_location != 0) {
|
||||
free_extent_buffer(root->node);
|
||||
root->node = read_tree_block(root, fs_location, 4096, 0);
|
||||
root->node = read_tree_block(root, fs_location, root->leafsize, 0);
|
||||
if (!root->node) {
|
||||
fprintf(stderr, "Failed to read fs location\n");
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user