summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs/nfs_var.h
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2011-04-10 20:43:07 +0000
committerrmacklem <rmacklem@FreeBSD.org>2011-04-10 20:43:07 +0000
commitd63d5c6aa2f3dee3e7939889c6607f252e74369d (patch)
tree20c187d26760fd754b77825e15511dea63278593 /sys/fs/nfs/nfs_var.h
parente80aa2a5fe661d09a6b6fe05f0f655d8372bc9c2 (diff)
downloadFreeBSD-src-d63d5c6aa2f3dee3e7939889c6607f252e74369d.zip
FreeBSD-src-d63d5c6aa2f3dee3e7939889c6607f252e74369d.tar.gz
Add some cleanup code to the module unload operation for
the experimental NFS server, so that it doesn't leak memory when unloaded. However, unloading the NFSv4 server is not recommended, since all NFSv4 state will be lost by the unload and clients will have to recover the state after a server reload/restart as if the server crashed/rebooted. MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nfs/nfs_var.h')
-rw-r--r--sys/fs/nfs/nfs_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/nfs/nfs_var.h b/sys/fs/nfs/nfs_var.h
index 03365fc..b767cbf 100644
--- a/sys/fs/nfs/nfs_var.h
+++ b/sys/fs/nfs/nfs_var.h
@@ -124,6 +124,7 @@ int nfsrv_checkgetattr(struct nfsrv_descript *, vnode_t,
struct nfsvattr *, nfsattrbit_t *, struct ucred *, NFSPROC_T *);
int nfsrv_nfsuserdport(u_short, NFSPROC_T *);
void nfsrv_nfsuserddelport(void);
+void nfsrv_throwawayallstate(NFSPROC_T *);
/* nfs_nfsdserv.c */
int nfsrvd_access(struct nfsrv_descript *, int,
OpenPOWER on IntegriCloud