From 2f2872b335018a7fa4b61193f2e6404bef8864ed 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 the below mainline patch - https://review.gluster.org/#/c/glusterfs/+/21391 Change-Id: I3320ddf235cc82fad561e13b9457ebd64db6c76b updates: #350 Signed-off-by: Soumya Koduri --- api/src/glfs-fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/src/glfs-fops.c') diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c index cafbeb7f515..104d3ffd4b1 100644 --- a/api/src/glfs-fops.c +++ b/api/src/glfs-fops.c @@ -4845,7 +4845,7 @@ glfs_recall_lease_upcall(struct glfs *fs, struct glfs_upcall *up_arg, up_lease_arg->lease_type = recall_lease->lease_type; - up_arg->reason = GF_UPCALL_RECALL_LEASE; + up_arg->reason = GLFS_UPCALL_RECALL_LEASE; up_arg->event = up_lease_arg; up_arg->free_event = glfs_free_upcall_lease; -- cgit