Add warning printf w.r.t. removal of sys/nfs/nfs_lock.c.

The code in sys/nfs/nfs_lock.c has not been run by default since March 2008
when it was replaced by the in kernel sys/nlm code.
It uses Giant, so it needs to be removed before the FreeBSD 13 release.
This will happen in a couple of months, since few if any users run
the code anyhow and can easily switch to the default in kernel NFSLOCKD.
This commit is contained in:
Rick Macklem 2019-12-30 22:39:29 +00:00
parent 15d641f076
commit 1f8bdab601
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356210

View file

@ -89,6 +89,8 @@ nfslock_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
{
int error;
printf("WARNING: uses Giant and will be removed before FreeBSD 13\n"
"\tuse the kernel NFSLOCKD/nfslockd.ko\n");
error = priv_check(td, PRIV_NFS_LOCKD);
if (error)
return (error);