From: Miao Xie <miaox@cn.fujitsu.com>
btrfsctl returns 1 if it does something successfully. this patch fixes this
problem.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
---
btrfsctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/btrfsctl.c b/btrfsctl.c
index be6bf25..e2aae17 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -249,8 +249,8 @@ int main(int ac, char **av)
}
printf("%s\n", BTRFS_BUILD_VERSION);
if (ret)
- exit(0);
- else
exit(1);
+
+ return 0;
}
--
1.6.5.2
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html