diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2019-12-30 22:39:29 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2019-12-30 22:39:29 +0000 |
commit | 1f8bdab601bc35c7fa61a02a0e4b160b5eb699fb (patch) | |
tree | d0a1f5a0ecf969b7afa507ab9e6a24a26350aa51 /sys | |
parent | 15d641f076ad05b71c86e174cf76d67334b4c31c (diff) |
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.
Notes
Notes:
svn path=/head/; revision=356210
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_lock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/nfs/nfs_lock.c b/sys/nfs/nfs_lock.c index efa1e80b5b74..6ebb7e83ff2d 100644 --- a/sys/nfs/nfs_lock.c +++ b/sys/nfs/nfs_lock.c @@ -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); |