summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix-messages.h
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2017-07-11 18:58:04 +0530
committerAmar Tumballi <amarts@redhat.com>2017-11-22 10:07:36 +0000
commit038d8f994d66eeb79734c03ecd631a12d5433221 (patch)
tree480bcb4b91075484e0ee1cd18f08c1a4a5abb788 /xlators/storage/posix/src/posix-messages.h
parent4ad64ffe8664cc0b964586af6efcf53cc619b68a (diff)
libglusterfs: Handle FS errors gracefully
Problem: FS sometimes doesn't give the expected return values. We need our common functions to guard against this. Example BUG: https://bugzilla.redhat.com/show_bug.cgi?id=864401 Fix: When the return value is not as per specification, change the return value to -1 and errno to EIO BUG: 1469487 Change-Id: I14739ab2e5ae225b1a91438b87f8928af56f2934 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-messages.h')
-rw-r--r--xlators/storage/posix/src/posix-messages.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix-messages.h b/xlators/storage/posix/src/posix-messages.h
index fbae4d8..7d0ff02 100644
--- a/xlators/storage/posix/src/posix-messages.h
+++ b/xlators/storage/posix/src/posix-messages.h
@@ -45,7 +45,8 @@
*/
#define POSIX_COMP_BASE GLFS_MSGID_COMP_POSIX
-#define GLFS_NUM_MESSAGES 112
+
+#define GLFS_NUM_MESSAGES 113
#define GLFS_MSGID_END (POSIX_COMP_BASE + GLFS_NUM_MESSAGES + 1)
/* Messaged with message IDs */
#define glfs_msg_start_x POSIX_COMP_BASE, "Invalid: Start of messages"
@@ -954,7 +955,6 @@
*
*/
-
#define P_MSG_DISK_SPACE_CHECK_FAILED (POSIX_COMP_BASE + 112)
/*!
@@ -964,6 +964,15 @@
*
*/
+#define P_MSG_FALLOCATE_FAILED (POSIX_COMP_BASE + 113)
+
+/*!
+ * @messageid
+ * @diagnosis
+ * @recommendedaction
+ *
+ */
+
/*------------*/
#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"