diff options
Diffstat (limited to 'net-fs/nfs-utils')
-rw-r--r-- | net-fs/nfs-utils/ChangeLog | 7 | ||||
-rwxr-xr-x | net-fs/nfs-utils/files/nfs.initd | 16 |
2 files changed, 16 insertions, 7 deletions
diff --git a/net-fs/nfs-utils/ChangeLog b/net-fs/nfs-utils/ChangeLog index 97f2aea23a1f..3554e44f1a82 100644 --- a/net-fs/nfs-utils/ChangeLog +++ b/net-fs/nfs-utils/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-fs/nfs-utils -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.140 2008/12/30 20:15:38 bluebird Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.141 2009/01/31 22:12:53 vapier Exp $ + + 31 Jan 2009; Mike Frysinger <vapier@gentoo.org> files/nfs.initd: + Restart rpc.idmapd if nfsd is a module #220747 by Jochen Radmacher. 30 Dec 2008; Friedrich Oslage <bluebird@gentoo.org> nfs-utils-1.1.3.ebuild: diff --git a/net-fs/nfs-utils/files/nfs.initd b/net-fs/nfs-utils/files/nfs.initd index 8944a7b8f89a..9716fdd3a638 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-2007 Gentoo Foundation +# Copyright 1999-2009 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.14 2008/05/05 04:36:12 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.15 2009/01/31 22:12:53 vapier Exp $ opts="reload" @@ -42,9 +42,15 @@ waitfor_exportfs() { } mount_nfsd() { - # Make sure nfs support is loaded in the kernel #64709 - if [ -e /proc/modules ] && ! grep -qs nfsd /proc/filesystems ; then - modprobe -q nfsd + if [ -e /proc/modules ] ; then + # Make sure nfs support is loaded in the kernel #64709 + if ! grep -qs nfsd /proc/filesystems ; then + modprobe -q nfsd + fi + # Restart idmapd if needed #220747 + if grep -qs nfsd /proc/modules ; then + killall -q -HUP rpc.idmapd + fi fi # This is the new "kernel 2.6 way" to handle the exports file |