mirror-linux/include/linux/lockd
Jeff Layton 898f944652 lockd: don't allow locking on reexported NFSv2/3
Since commit 9254c8ae9b ("nfsd: disallow file locking and delegations
for NFSv4 reexport"), file locking when reexporting an NFS mount via
NFSv4 is expressly prohibited by nfsd. Do the same in lockd:

Add a new  nlmsvc_file_cannot_lock() helper that will test whether file
locking is allowed for a given file, and return nlm_lck_denied_nolocks
if it isn't.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2025-11-20 16:29:35 -05:00
..
bind.h
debug.h
lockd.h lockd: don't allow locking on reexported NFSv2/3 2025-11-20 16:29:35 -05:00
nlm.h
share.h
xdr.h
xdr4.h