]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix two bugs regarding fcntl file locks
authorAlan Somers <asomers@FreeBSD.org>
Thu, 18 Mar 2021 20:27:27 +0000 (14:27 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 18 Mar 2021 23:09:10 +0000 (17:09 -0600)
commit929acdb19acb67cc0e6ee5439df98e28a84d4772
tree190537f9fe64563ae3d3298817d29415bb08f44d
parent6ceacebdf5221133943ab3b6b56751c8b51c3e2b
fusefs: fix two bugs regarding fcntl file locks

1) F_SETLKW (blocking) operations would be sent to the FUSE server as
   F_SETLK (non-blocking).

2) Release operations, F_SETLK with lk_type = F_UNLCK, would simply
   return EINVAL.

PR: 253500
Reported by: John Millikin <jmillikin@gmail.com>
MFC after: 2 weeks
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/flush.cc
tests/sys/fs/fusefs/locks.cc
tests/sys/fs/fusefs/release.cc