projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ca892
)
btrfs-restore: use the correct leafsize when reading the FS location
author
Chris Mason
<chris.mason@fusionio.com>
Fri, 5 Jul 2013 16:30:43 +0000
(12:30 -0400)
committer
Chris Mason
<chris.mason@fusionio.com>
Fri, 5 Jul 2013 16:30:43 +0000
(12:30 -0400)
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-restore.c
patch
|
blob
|
history
diff --git
a/cmds-restore.c
b/cmds-restore.c
index
eca528d
..
55a2fab
100644
(file)
--- 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;