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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to