diff options
author | alfred <alfred@FreeBSD.org> | 2001-04-17 20:45:23 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2001-04-17 20:45:23 +0000 |
commit | f0669d6c9e71dffa3f4104a202e3e1046c64021c (patch) | |
tree | 397489679b0ebce3143827e9a1702a14829f93a7 /sys/nfsclient/nfs_vnops.c | |
parent | 676302e684a39f23d1e6c16f7fea4855deb723a4 (diff) | |
download | FreeBSD-src-f0669d6c9e71dffa3f4104a202e3e1046c64021c.zip FreeBSD-src-f0669d6c9e71dffa3f4104a202e3e1046c64021c.tar.gz |
Implement client side NFS locks.
Obtained from: BSD/os
Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org
Diffstat (limited to 'sys/nfsclient/nfs_vnops.c')
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 2a5564e..b37f6da 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -76,6 +76,7 @@ #include <nfs/xdr_subs.h> #include <nfs/nfsm_subs.h> #include <nfs/nqnfs.h> +#include <nfs/nfs_lock.h> #include <net/if.h> #include <netinet/in.h> @@ -3057,14 +3058,8 @@ nfs_advlock(ap) int a_flags; } */ *ap; { - register struct nfsnode *np = VTONFS(ap->a_vp); - /* - * The following kludge is to allow diskless support to work - * until a real NFS lockd is implemented. Basically, just pretend - * that this is a local lock. - */ - return (lf_advlock(ap, &(np->n_lockf), np->n_size)); + return (nfs_dolock(ap)); } /* |