[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: Thu, 20 Oct 2022 16:26:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266886 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=311f68079ff29aabd594c6fbdc97c2bff5d91ba5 commit 311f68079ff29aabd594c6fbdc97c2bff5d91ba5 Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2022-10-11 23:00:07 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2022-10-20 16:24:19 +0000 fusefs: After successful F_GETLK, l_whence should be SEEK_SET PR: 266886 Reported by: John Millikin <jmillikin@gmail.com> Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37014 (cherry picked from commit 3c3b906b54236841d813fd9a01b1e090f39558ea) fusefs: fix VOP_ADVLOCK with SEEK_END When the user specifies SEEK_END, unlike SEEK_CUR, VOP_ADVLOCK must adjust lock offsets itself. Sort-of related to bug 266886. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37040 (cherry picked from commit f6e5319550f60170840f1a07a9cbdd45b5014a21) Approved by: kib (re) sys/fs/fuse/fuse_vnops.c | 34 +++++++- tests/sys/fs/fusefs/locks.cc | 191 +++++++++++++++++++++++++++++++++++++++++- tests/sys/fs/fusefs/mockfs.cc | 14 +++- 3 files changed, 234 insertions(+), 5 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.