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:
1b7dd32
)
btrfs-progs: restore: don't misreport errors from search_dir
author
David Sterba
<dsterba@suse.cz>
Wed, 29 Apr 2015 14:48:04 +0000
(16:48 +0200)
committer
David Sterba
<dsterba@suse.cz>
Wed, 29 Apr 2015 14:48:04 +0000
(16:48 +0200)
The logic around return value has changed in the metadata restore
patches. The return value from btrfs_search_slot may remain non-zero and
is returned. This is incorrectly interpreted as an error.
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-restore.c
patch
|
blob
|
history
diff --git
a/cmds-restore.c
b/cmds-restore.c
index
8cf7a1f
..
e1411e9
100644
(file)
--- a/
cmds-restore.c
+++ b/
cmds-restore.c
@@
-812,6
+812,8
@@
static int search_dir(struct btrfs_root *root, struct btrfs_key *key,
goto out;
}
+ ret = 0;
+
leaf = path->nodes[0];
while (!leaf) {
if (verbose > 1)