aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorQing Li <qingli@FreeBSD.org>2009-09-15 22:09:42 +0000
committerQing Li <qingli@FreeBSD.org>2009-09-15 22:09:42 +0000
commit812777783d17750fd8e63de6450ed0eae9f09ebe (patch)
tree92484dafcc38dc3b7b68f71bde6951496b3c8d59 /sys/nfsclient
parentb7bb89406703c35a4bbf329302653d5cdffd1edb (diff)
downloadsrc-812777783d17750fd8e63de6450ed0eae9f09ebe.tar.gz
src-812777783d17750fd8e63de6450ed0eae9f09ebe.zip
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
Notes
Notes: svn path=/head/; revision=197235
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 b82982b6a81d..17dc5d4b5dee 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);