On 04/16/2013 12:21 AM, David Sterba wrote:
On Mon, Apr 15, 2013 at 02:38:08PM +0800, Anand Jain wrote:
+/* Checks the status of the balance if any
+ * return codes:
+ * -1 : Error failed to know if there is any pending balance
+ * 1 : Successful to know status of a pending balance
+ * 0 : When there is no pending balance or completed
The error code will become the return code of the 'btrfs balance status'
command in the end:
btrfs.c:main()
295 exit(cmd->fn(argc, argv));
and that's why I've suggested to return 1 or 2, though -1 matches shell
error code 255 but I'd rathe avoid using it.
makes sense. v3 is out.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html