From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LTO59-0000et-TD for garchives@archives.gentoo.org; Sat, 31 Jan 2009 22:12:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD758E0324; Sat, 31 Jan 2009 22:12:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8E31DE0324 for ; Sat, 31 Jan 2009 22:12:54 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 3EE1F64378 for ; Sat, 31 Jan 2009 22:12:54 +0000 (UTC) Received: from vapier by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1LTO57-0006hT-Nu for gentoo-commits@lists.gentoo.org; Sat, 31 Jan 2009 22:12:53 +0000 From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in net-fs/nfs-utils/files: nfs.initd X-VCS-Repository: gentoo-x86 X-VCS-Files: nfs.initd X-VCS-Directories: net-fs/nfs-utils/files X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: Sender: Mike Frysinger Date: Sat, 31 Jan 2009 22:12:53 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: cf3d4bf3-9cd0-4d1e-b5ba-349eefdee857 X-Archives-Hash: 3b766a500b590640865e42b3f22ff942 vapier 09/01/31 22:12:53 Modified: nfs.initd Log: Restart rpc.idmapd if nfsd is a module #220747 by Jochen Radmacher. Revision Changes Path 1.15 net-fs/nfs-utils/files/nfs.initd file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/f= iles/nfs.initd?rev=3D1.15&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/f= iles/nfs.initd?rev=3D1.15&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/f= iles/nfs.initd?r1=3D1.14&r2=3D1.15 Index: nfs.initd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- nfs.initd 5 May 2008 04:36:12 -0000 1.14 +++ nfs.initd 31 Jan 2009 22:12:53 -0000 1.15 @@ -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 $ =20 opts=3D"reload" =20 @@ -42,9 +42,15 @@ } =20 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 =20 # This is the new "kernel 2.6 way" to handle the exports file