From 351091657359b41a261ea43c2fcddf5629f44943 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 17 Jun 2020 10:45:19 +0530 Subject: mount/fuse: use cookies to get fuse-interrupt-record instead of xdata Problem: On executing tests/features/flock_interrupt.t the following error log appears [2020-06-16 11:51:54.631072 +0000] E [fuse-bridge.c:4791:fuse_setlk_interrupt_handler_cbk] 0-glusterfs-fuse: interrupt record not found This happens because fuse-interrupt-record is never sent on the wire by getxattr fop and there is no guarantee that in the cbk it will be available in case of failures. Fix: wind getxattr fop with fuse-interrupt-record as cookie and recover it in the cbk Fixes: #1310 Change-Id: I4cfff154321a449114fc26e9440db0f08e5c7daa Signed-off-by: Pranith Kumar K --- tests/features/flock_interrupt.t | 1 - 1 file changed, 1 deletion(-) (limited to 'tests') diff --git a/tests/features/flock_interrupt.t b/tests/features/flock_interrupt.t index 964a4bc20ef..b8717e30dfb 100644 --- a/tests/features/flock_interrupt.t +++ b/tests/features/flock_interrupt.t @@ -28,6 +28,5 @@ flock $M0/testfile sleep 6 & { sleep 0.3; flock -w 2 $M0/testfile true; echo ok EXPECT_WITHIN 4 ok cat got_lock; ## Finish up -sleep 7; rm -f got_lock; cleanup; -- cgit