Date: Fri, 07 Oct 2022 16:56:43 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266886] [FUSEFS] Handling of l_whence with fcntl(F_GETLK) Message-ID: <bug-266886-227-zfe7gx8Iug@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-266886-227@https.bugs.freebsd.org/bugzilla/> References: <bug-266886-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266886 --- Comment #1 from Alan Somers <asomers@FreeBSD.org> --- I can't reproduce this problem. If I do the following: ASSERT_NE(-1, lseek(fd, 500, SEEK_SET)); fl.l_start =3D 0; fl.l_len =3D 10; fl.l_pid =3D 42; fl.l_type =3D F_RDLCK; fl.l_whence =3D SEEK_CUR; fl.l_sysid =3D 42; ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno); Then the server gets a FUSE_GETLK operation with start set to 500 and end s= et to 509, as it ought to. I can't reproduce it with FUSE_SETLK either. Could you help provide some more complete reproduction steps? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266886-227-zfe7gx8Iug>