summaryrefslogtreecommitdiff
path: root/cmds-restore.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2013-07-05 12:30:43 -0400
committerChris Mason <chris.mason@fusionio.com>2013-07-05 12:30:43 -0400
commit8b5d89be6d3997f9bbaddb23a4408fcb8b50be8f (patch)
treedfc39fe3ed9d3ea81ddfe282f5a37aef238387da /cmds-restore.c
parentf4ca8923398f72c4ff3f4b60bb46f33994c0bc6c (diff)
btrfs-restore: use the correct leafsize when reading the FS location
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-restore.c')
-rw-r--r--cmds-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-restore.c b/cmds-restore.c
index eca528dd..55a2fab8 100644
--- a/cmds-restore.c
+++ b/cmds-restore.c
@@ -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;