summaryrefslogtreecommitdiffstats
path: root/support/nfs/nfssvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/nfs/nfssvc.c')
-rw-r--r--support/nfs/nfssvc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/support/nfs/nfssvc.c b/support/nfs/nfssvc.c
index dae16f7..67089be 100644
--- a/support/nfs/nfssvc.c
+++ b/support/nfs/nfssvc.c
@@ -19,7 +19,9 @@ nfssvc(int port, int nrservs)
struct nfsctl_arg arg;
int fd;
- fd = open("/proc/fs/nfs/threads", O_WRONLY);
+ fd = open("/proc/fs/nfsd/threads", O_WRONLY);
+ if (fd < 0)
+ fd = open("/proc/fs/nfs/threads", O_WRONLY);
if (fd >= 0) {
/* 2.5+ kernel with nfsd filesystem mounted.
* Just write the number in.