[Bug 266886] [FUSEFS] Handling of l_whence with fcntl(F_GETLK)
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 266886] [FUSEFS] Handling of l_whence with fcntl(F_GETLK)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Oct 2022 16:56:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266886 --- 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 = 0; fl.l_len = 10; fl.l_pid = 42; fl.l_type = F_RDLCK; fl.l_whence = SEEK_CUR; fl.l_sysid = 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 set to 509, as it ought to. I can't reproduce it with FUSE_SETLK either. Could you help provide some more complete reproduction steps? -- You are receiving this mail because: You are the assignee for the bug.