]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/nfs/nfssvc.c
/proc/fs/nfsd as an alternate to /proc/fs/nfsd
[nfs-utils.git] / support / nfs / nfssvc.c
index dae16f7f7adc59a540b565e210e8861f71cacd37..67089be0fb347317e02e825c11101244bf73a680 100644 (file)
@@ -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.