From: Josef Bacik <josef@redhat.com> To: linux-btrfs@vger.kernel.org Subject: [PATCH] Btrfs-progs: make btrfsctl return values like everybody else Date: Tue, 2 Feb 2010 09:52:53 -0500 Message-ID: <20100202145252.GA15957@localhost.localdomain> (raw) This patch makes btrfsctl return 0 for success and 1 for failure, which is the behavior of all other userspace applications. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> --- btrfsctl.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/btrfsctl.c b/btrfsctl.c index 66c4e89..73d9c30 100644 --- a/btrfsctl.c +++ b/btrfsctl.c @@ -231,9 +231,7 @@ int main(int ac, char **av) printf("ioctl failed with error %d\n", ret); } printf("%s\n", BTRFS_BUILD_VERSION); - if (ret) - exit(0); - else - exit(1); + + return ret ? 1 : 0; } -- 1.6.6
reply index Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100202145252.GA15957@localhost.localdomain \ --to=josef@redhat.com \ --cc=linux-btrfs@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Linux-BTRFS Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/linux-btrfs/0 linux-btrfs/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 linux-btrfs linux-btrfs/ https://lore.kernel.org/linux-btrfs \ linux-btrfs@vger.kernel.org public-inbox-index linux-btrfs Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-btrfs AGPL code for this site: git clone https://public-inbox.org/public-inbox.git