From b68f671b2b8a0aafef8f98145aee7044edaa907d Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Fri, 12 Jun 2015 13:45:09 +0530 Subject: Upcall/gfapi: Return ENOTSUP when upcall feature is disabled Changes to detect the list of upcall events enabled using GF_FOP_IPC and return ENOTSUP to applications in case if they poll for any of the events disabled. Change-Id: Icc748054ef903598288119dbe99b1e337174662a BUG: 1231132 Signed-off-by: Niels de Vos Signed-off-by: Soumya Koduri Reviewed-on: http://review.gluster.org/11196 Reviewed-by: Kaleb KEITHLEY Tested-by: Kaleb KEITHLEY --- api/src/glfs-handles.h | 1 + 1 file changed, 1 insertion(+) (limited to 'api/src/glfs-handles.h') diff --git a/api/src/glfs-handles.h b/api/src/glfs-handles.h index 19c4e8f7a62..ddb11bf0bd5 100644 --- a/api/src/glfs-handles.h +++ b/api/src/glfs-handles.h @@ -293,6 +293,7 @@ glfs_h_access (struct glfs *fs, struct glfs_object *object, int mask) __THROW 0 : Success. -1 : Error condition, mostly due to out of memory. + 'errno' is set to ENOTSUP if upcall feature is not enabled. */ -- cgit