* [PATCH 3/4] Btrfs-progs: let the error messages more precise
@ 2013-02-25 14:03 Wang Shilong
0 siblings, 0 replies; only message in thread
From: Wang Shilong @ 2013-02-25 14:03 UTC (permalink / raw)
To: linux-btrfs; +Cc: wangshilong1991
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-25 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-25 14:03 [PATCH 3/4] Btrfs-progs: let the error messages more precise Wang Shilong
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).