diff options
author | Soumya Koduri <skoduri@redhat.com> | 2018-10-10 21:37:07 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-10-16 06:34:21 +0000 |
commit | a303cd1acc3c9ff475fe5ece643de4cbea1c1a51 (patch) | |
tree | 305ef3bebbeaf1696b5b800a74e5f3ad40088afc /tests/basic | |
parent | 593bbb28d95d1ebf11aa6f4d1f256529ed2dba88 (diff) |
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"
Change-Id: I3320ddf235cc82fad561e13b9457ebd64db6c76b
updates: #350
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Diffstat (limited to 'tests/basic')
-rw-r--r-- | tests/basic/gfapi/upcall-register-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basic/gfapi/upcall-register-api.c b/tests/basic/gfapi/upcall-register-api.c index 78594dbb108..53ce0ecdb68 100644 --- a/tests/basic/gfapi/upcall-register-api.c +++ b/tests/basic/gfapi/upcall-register-api.c @@ -238,7 +238,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 doesn't contain" + "glfs_upcall_unregister return doesn't contain" " upcall event\n"); return -1; } @@ -248,7 +248,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 doesn't contain" + "glfs_upcall_unregister return doesn't contain" " upcall event\n"); return -1; } |