summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorEryu Guan <guaneryu@gmail.com>2013-11-06 18:49:12 +0800
committerChris Mason <chris.mason@fusionio.com>2013-11-07 16:10:40 -0500
commit55d3729d4c26a9faa26176c2f73fb5ce2a0a558a (patch)
treea370903ab1c4902ef8fccd9fcaa8711a1b738a65 /cmds-subvolume.c
parent4735d0bb8248a3900f420cb9144e4f7969f0b44d (diff)
Btrfs-progs: set return value to 0 if subvolume get-default successfully
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>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index 76dab1f4..96fdcca7 100644
--- 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;
}