summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-06 22:11:39 +0000
committerMike Frysinger <vapier@gentoo.org>2011-04-06 22:11:39 +0000
commit4c2c30621eb9cac996d76a54d88da9d962dec946 (patch)
tree412140283ffb2a53474c641ab251dd4370da2445 /net-fs
parentVersion bump (diff)
downloadgentoo-2-4c2c30621eb9cac996d76a54d88da9d962dec946.tar.gz
gentoo-2-4c2c30621eb9cac996d76a54d88da9d962dec946.tar.bz2
gentoo-2-4c2c30621eb9cac996d76a54d88da9d962dec946.zip
Add conf.d option for tweaking nfsd settings #361473 by John Feuerstein.
(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/nfs-utils/ChangeLog6
-rw-r--r--net-fs/nfs-utils/files/nfs.confd4
-rwxr-xr-xnet-fs/nfs-utils/files/nfs.initd9
3 files changed, 16 insertions, 3 deletions
diff --git a/net-fs/nfs-utils/ChangeLog b/net-fs/nfs-utils/ChangeLog
index 97364e175d5f..cfc5913a7db6 100644
--- a/net-fs/nfs-utils/ChangeLog
+++ b/net-fs/nfs-utils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-fs/nfs-utils
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.179 2011/03/24 10:40:38 tomka Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.180 2011/04/06 22:11:39 vapier Exp $
+
+ 06 Apr 2011; Mike Frysinger <vapier@gentoo.org> files/nfs.confd,
+ files/nfs.initd:
+ Add conf.d option for tweaking nfsd settings #361473 by John Feuerstein.
24 Mar 2011; Thomas Kahle <tomka@gentoo.org> nfs-utils-1.2.3-r1.ebuild:
x86 stable per bug 358509
diff --git a/net-fs/nfs-utils/files/nfs.confd b/net-fs/nfs-utils/files/nfs.confd
index ad9e34f2a912..d49340085594 100644
--- a/net-fs/nfs-utils/files/nfs.confd
+++ b/net-fs/nfs-utils/files/nfs.confd
@@ -32,3 +32,7 @@ OPTS_RPC_RQUOTAD=""
# Timeout (in seconds) for exportfs
EXPORTFS_TIMEOUT=30
+
+# Options to set in the nfsd filesystem (/proc/fs/nfsd/).
+# Format is <option>=<value>. Multiple options are allowed.
+#OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096"
diff --git a/net-fs/nfs-utils/files/nfs.initd b/net-fs/nfs-utils/files/nfs.initd
index a3db0752f028..440680fd99ba 100755
--- a/net-fs/nfs-utils/files/nfs.initd
+++ b/net-fs/nfs-utils/files/nfs.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.23 2010/11/21 19:56:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.24 2011/04/06 22:11:39 vapier Exp $
opts="reload"
@@ -69,6 +69,11 @@ mount_nfsd() {
mount -t nfsd -o nodev,noexec,nosuid nfsd /proc/fs/nfsd
eend $?
fi
+
+ local o
+ for o in ${OPTS_NFSD} ; do
+ echo "${o#*=}" > "/proc/fs/nfsd/${o%%=*}"
+ done
fi
}