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:
4735d0b
)
Btrfs-progs: set return value to 0 if subvolume get-default successfully
author
Eryu Guan
<guaneryu@gmail.com>
Wed, 6 Nov 2013 10:49:12 +0000
(18:49 +0800)
committer
Chris Mason
<chris.mason@fusionio.com>
Thu, 7 Nov 2013 21:10:40 +0000
(16:10 -0500)
cmd_subvol_get_default() returns 1 even if finds default subvolume
successfully.
Set the correct return value.
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-subvolume.c
patch
|
blob
|
history
diff --git
a/cmds-subvolume.c
b/cmds-subvolume.c
index
76dab1f
..
96fdcca
100644
(file)
--- a/
cmds-subvolume.c
+++ b/
cmds-subvolume.c
@@
-697,6
+697,7
@@
static int cmd_subvol_get_default(int argc, char **argv)
/* no need to resolve roots if FS_TREE is default */
if (default_id == BTRFS_FS_TREE_OBJECTID) {
printf("ID 5 (FS_TREE)\n");
+ ret = 0;
goto out;
}