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:
ac59571
)
btrfs-progs: don't return -EBUSY from main()
author
Zach Brown
<zab@redhat.com>
Tue, 22 Jan 2013 21:36:47 +0000
(13:36 -0800)
committer
Zach Brown
<zab@redhat.com>
Wed, 6 Feb 2013 00:09:39 +0000
(16:09 -0800)
-EBUSY is platform dependent and is even less reliable when truncated to
a u8. Just return 1 on error.
Signed-off-by: Zach Brown <zab@redhat.com>
restore.c
patch
|
blob
|
history
diff --git
a/restore.c
b/restore.c
index
3fa8769
..
b544770
100644
(file)
--- a/
restore.c
+++ b/
restore.c
@@
-828,7
+828,7
@@
int main(int argc, char **argv)
return ret;
} else if (ret) {
fprintf(stderr, "%s is currently mounted. Aborting.\n", argv[optind]);
- return
-EBUSY
;
+ return
1
;
}
root = open_fs(argv[optind], tree_location, super_mirror);