summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2009-09-15 22:09:42 +0000
committerqingli <qingli@FreeBSD.org>2009-09-15 22:09:42 +0000
commite1b6b165896ea3f06870ce31cc9b63fbad5e1d39 (patch)
tree92484dafcc38dc3b7b68f71bde6951496b3c8d59 /sys/nfsclient
parentd865692bb0cec315d1eafb40ae4759e59cddba15 (diff)
downloadFreeBSD-src-e1b6b165896ea3f06870ce31cc9b63fbad5e1d39.zip
FreeBSD-src-e1b6b165896ea3f06870ce31cc9b63fbad5e1d39.tar.gz
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
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vfsops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index b82982b..17dc5d4 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -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);
OpenPOWER on IntegriCloud