Skip to contentSkip to conversation

Btrfs-progs: let the error messages more precise

PATCH New Wang Shilong 1 participant 1 message Feb 25, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 Btrfs-progs: let the error messages more precise

From: Wang Shilong <[email protected]>

Not only the operation 'create/assign' may fail but also 'destroy/remove' operation, so add those operations in error messages.

---
 cmds-qgroup.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
cmds-qgroup.c +4 -4
index 06505fa..e39ffac 100644
@@ -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;
Signature · 1 line
1.7.7.6