summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfssvc.h
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2012-10-14 22:33:17 +0000
committerrmacklem <rmacklem@FreeBSD.org>2012-10-14 22:33:17 +0000
commit813fc271886f8973789b4c3847329a2c39a4f29c (patch)
treefd9a8026f443d2f981842db8e496af20a034749c /sys/nfs/nfssvc.h
parentb75b22519f1551241f5a6449d248028e60dff704 (diff)
downloadFreeBSD-src-813fc271886f8973789b4c3847329a2c39a4f29c.zip
FreeBSD-src-813fc271886f8973789b4c3847329a2c39a4f29c.tar.gz
Add two new options to the nfssvc(2) syscall that allow
processes running as root to suspend/resume execution of the kernel nfsd threads. An earlier version of this patch was tested by Vincent Hoffman (vince at unsane.co.uk) and John Hickey (jh at deterlab.net). Reviewed by: kib MFC after: 2 weeks
Diffstat (limited to 'sys/nfs/nfssvc.h')
-rw-r--r--sys/nfs/nfssvc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/nfs/nfssvc.h b/sys/nfs/nfssvc.h
index 2615d07..6e636d5 100644
--- a/sys/nfs/nfssvc.h
+++ b/sys/nfs/nfssvc.h
@@ -66,5 +66,7 @@
#define NFSSVC_BACKUPSTABLE 0x00800000
#define NFSSVC_ZEROCLTSTATS 0x01000000 /* modifier for GETSTATS */
#define NFSSVC_ZEROSRVSTATS 0x02000000 /* modifier for GETSTATS */
+#define NFSSVC_SUSPENDNFSD 0x04000000
+#define NFSSVC_RESUMENFSD 0x08000000
#endif /* _NFS_NFSSVC_H */
OpenPOWER on IntegriCloud