* [PATCH] Btrfs-progs: set return value to 0 if subvolume get-default successfully
@ 2013-11-06 10:49 Eryu Guan
0 siblings, 0 replies; only message in thread
From: Eryu Guan @ 2013-11-06 10:49 UTC (permalink / raw)
To: linux-btrfs; +Cc: Eryu Guan
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>
---
cmds-subvolume.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index f7249f8..8be6df7 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -691,6 +691,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;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-06 10:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06 10:49 [PATCH] Btrfs-progs: set return value to 0 if subvolume get-default successfully Eryu Guan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).