summaryrefslogtreecommitdiff
path: root/cmds-qgroup.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2013-12-02 14:11:55 +0800
committerChris Mason <clm@fb.com>2014-01-31 08:22:12 -0800
commitf053be8082194e30f4ecdb4ad9d5e7623aa41277 (patch)
treea682de6e7b27a9cd08e128493031354dd12983c3 /cmds-qgroup.c
parent1878717b75934952741ce1f08e23de0353b34fcb (diff)
btrfs-progs: qgroup destroy says create failed
Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'cmds-qgroup.c')
-rw-r--r--cmds-qgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-qgroup.c b/cmds-qgroup.c
index 5a393bd3..957fbc95 100644
--- a/cmds-qgroup.c
+++ b/cmds-qgroup.c
@@ -99,8 +99,8 @@ static int qgroup_create(int create, int argc, char **argv)
e = errno;
close_file_or_dir(fd, dirstream);
if (ret < 0) {
- fprintf(stderr, "ERROR: unable to create quota group: %s\n",
- strerror(e));
+ fprintf(stderr, "ERROR: unable to %s quota group: %s\n",
+ create ? "create":"destroy", strerror(e));
return 1;
}
return 0;