Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2009 22:09:42 +0000 (UTC)
From:      Qing Li <qingli@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197235 - head/sys/nfsclient
Message-ID:  <200909152209.n8FM9ghw004481@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: qingli
Date: Tue Sep 15 22:09:42 2009
New Revision: 197235
URL: http://svn.freebsd.org/changeset/base/197235

Log:
  Reverting the previous change for now. Some users reports the patch
  fixes their issues but one reports a failure in NFS ROOT. Revert
  the change for now pending further investigation.
  
  Reviewed by:	bz
  MFC after:	immediately

Modified:
  head/sys/nfsclient/nfs_vfsops.c

Modified: head/sys/nfsclient/nfs_vfsops.c
==============================================================================
--- head/sys/nfsclient/nfs_vfsops.c	Tue Sep 15 21:15:29 2009	(r197234)
+++ head/sys/nfsclient/nfs_vfsops.c	Tue Sep 15 22:09:42 2009	(r197235)
@@ -464,6 +464,10 @@ nfs_mountroot(struct mount *mp)
 	}
 #endif
 
+	error = ifioctl(so, SIOCAIFADDR, (caddr_t)&nd->myif, td);
+	if (error)
+		panic("nfs_mountroot: SIOCAIFADDR: %d", error);
+
 	if ((cp = getenv("boot.netif.mtu")) != NULL) {
 		ir.ifr_mtu = strtol(cp, NULL, 10);
 		bcopy(nd->myif.ifra_name, ir.ifr_name, IFNAMSIZ);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909152209.n8FM9ghw004481>