From fa4710bb8fbc852971d763d8727e3755436ea9c8 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Wed, 10 Oct 2018 21:37:07 +0530 Subject: gfapi: Bug fixes in leases processing code-path This patch fixes below issues in gfapi lease code-path * 'glfs_setfsleasid' should allow NULL input to be able to reset leaseid * Applications should be allowed to (un)register for upcall notifications of type GLFS_EVENT_LEASE_RECALL * APIs added to read contents of GLFS_EVENT_LEASE_RECALL argument which is of type "struct glfs_upcall_lease" This is backport of below mainline path - https://review.gluster.org/#/c/glusterfs/+/21391 Change-Id: I3320ddf235cc82fad561e13b9457ebd64db6c76b updates: #350 Signed-off-by: Soumya Koduri --- tests/basic/gfapi/upcall-register-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/basic') diff --git a/tests/basic/gfapi/upcall-register-api.c b/tests/basic/gfapi/upcall-register-api.c index 56227a93d0a..d77cd4fc7d8 100644 --- a/tests/basic/gfapi/upcall-register-api.c +++ b/tests/basic/gfapi/upcall-register-api.c @@ -233,7 +233,7 @@ main (int argc, char *argv[]) /* Check if the return mask contains the event */ if ((ret < 0) || !(ret & GLFS_EVENT_INODE_INVALIDATE)) { - fprintf (stderr, "glfs_upcall_register return doesnt contain" + fprintf (stderr, "glfs_upcall_unregister return doesnt contain" " upcall event\n"); return -1; } @@ -242,7 +242,7 @@ main (int argc, char *argv[]) /* Check if the return mask contains the event */ if ((ret < 0) || !(ret & GLFS_EVENT_INODE_INVALIDATE)) { - fprintf (stderr, "glfs_upcall_register return doesnt contain" + fprintf (stderr, "glfs_upcall_unregister return doesnt contain" " upcall event\n"); return -1; } -- cgit