From: Wang Shilong <wangshilong1991@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: wangshilong1991@gmail.com
Subject: [PATCH 3/4] Btrfs-progs: let the error messages more precise
Date: Mon, 25 Feb 2013 22:03:06 +0800 [thread overview]
Message-ID: <1361800986-2009-1-git-send-email-wangshilong1991@gmail.com> (raw)
From: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Not only the operation 'create/assign' may fail but also
'destroy/remove' operation, so add those operations in
error messages.
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
---
cmds-qgroup.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmds-qgroup.c b/cmds-qgroup.c
index 06505fa..e39ffac 100644
--- a/cmds-qgroup.c
+++ b/cmds-qgroup.c
@@ -65,8 +65,8 @@ static int qgroup_assign(int assign, int argc, char **argv)
e = errno;
close(fd);
if (ret < 0) {
- fprintf(stderr, "ERROR: unable to assign quota group: %s\n",
- strerror(e));
+ fprintf(stderr, "ERROR: unable to assign/remove "
+ "quota group: %s\n", strerror(e));
return 30;
}
return 0;
@@ -102,8 +102,8 @@ static int qgroup_create(int create, int argc, char **argv)
e = errno;
close(fd);
if (ret < 0) {
- fprintf(stderr, "ERROR: unable to create quota group: %s\n",
- strerror(e));
+ fprintf(stderr, "ERROR: unable to create/destroy "
+ "quota group: %s\n", strerror(e));
return 30;
}
return 0;
--
1.7.7.6
reply other threads:[~2013-02-25 14:03 UTC|newest]
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=1361800986-2009-1-git-send-email-wangshilong1991@gmail.com \
--to=wangshilong1991@gmail.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).