From 176724cdec7061ead0bd7497bb56d0ac09a668a7 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Tue, 10 May 2016 13:03:42 +0530 Subject: libglusterfs/gfapi: set appropriate errno for inode_link failures We do not seem to be setting errno appropriately in case of inode_link failures. This errno may be used by any application (for eg., nfs-ganesha) to determine the error encountered. This patch addresses the same. Change-Id: I674f747c73369d0597a9c463e6ea4c85b9091355 BUG: 1334621 Signed-off-by: Soumya Koduri Reviewed-on: http://review.gluster.org/14278 Smoke: Gluster Build System Reviewed-by: Niels de Vos NetBSD-regression: NetBSD Build System Reviewed-by: jiffin tony Thottan Reviewed-by: Kaleb KEITHLEY CentOS-regression: Gluster Build System --- api/src/gfapi-messages.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api/src/gfapi-messages.h') diff --git a/api/src/gfapi-messages.h b/api/src/gfapi-messages.h index 050b9766dea..fd90ff4d1bc 100644 --- a/api/src/gfapi-messages.h +++ b/api/src/gfapi-messages.h @@ -40,7 +40,7 @@ */ #define GLFS_GFAPI_BASE GLFS_MSGID_COMP_API -#define GLFS_NUM_MESSAGES 47 +#define GLFS_NUM_MESSAGES 48 #define GLFS_MSGID_END (GLFS_GFAPI_BASE + GLFS_NUM_MESSAGESi + 1) /* Messages with message IDs */ #define glfs_msg_start_x GLFS_GFAPI_BASE, "Invalid: Start of messages" @@ -93,6 +93,7 @@ #define API_MSG_NEW_GRAPH (GLFS_GFAPI_BASE + 45) #define API_MSG_ALLOC_FAILED (GLFS_GFAPI_BASE + 46) #define API_MSG_CREATE_HANDLE_FAILED (GLFS_GFAPI_BASE + 47) +#define API_MSG_INODE_LINK_FAILED (GLFS_GFAPI_BASE + 48) /*------------*/ #define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages" -- cgit