svn commit: r197235 - head/sys/nfsclient

Qing Li qingli at FreeBSD.org
Tue Sep 15 22:09:43 UTC 2009


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);


More information about the svn-src-head mailing list