diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2001-04-17 20:45:23 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2001-04-17 20:45:23 +0000 |
| commit | 603c86672ce346f0fde026a4bd1cee3d782f5634 (patch) | |
| tree | 135252048f1838c8db5c5c19f616e2038f3639b9 /sys/nfsclient/nfs_nfsiod.c | |
| parent | 0dfba3cef13b285bd8ff4cd8f9c9b004571db54b (diff) | |
Notes
Diffstat (limited to 'sys/nfsclient/nfs_nfsiod.c')
| -rw-r--r-- | sys/nfsclient/nfs_nfsiod.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c index 2d46568f08cb..a47d5a8e3329 100644 --- a/sys/nfsclient/nfs_nfsiod.c +++ b/sys/nfsclient/nfs_nfsiod.c @@ -56,6 +56,8 @@ #include <sys/domain.h> #include <sys/protosw.h> #include <sys/namei.h> +#include <sys/fcntl.h> +#include <sys/lockf.h> #include <netinet/in.h> #include <netinet/tcp.h> @@ -69,6 +71,7 @@ #include <nfs/nfsnode.h> #include <nfs/nqnfs.h> #include <nfs/nfsrtt.h> +#include <nfs/nfs_lock.h> static MALLOC_DEFINE(M_NFSSVC, "NFS srvsock", "Nfs server structure"); @@ -152,6 +155,12 @@ nfssvc(p, uap) #endif /* NFS_NOSERVER */ int error; + if ((uap->flag & NFSSVC_LOCKDANS) != 0) { + struct lockd_ans la; + + error = copyin(uap->argp, &la, sizeof(la)); + return (error != 0 ? error : nfslockdans(p, &la)); + } /* * Must be super user */ |
