diff options
author | Qing Li <qingli@FreeBSD.org> | 2009-09-15 22:09:42 +0000 |
---|---|---|
committer | Qing Li <qingli@FreeBSD.org> | 2009-09-15 22:09:42 +0000 |
commit | 812777783d17750fd8e63de6450ed0eae9f09ebe (patch) | |
tree | 92484dafcc38dc3b7b68f71bde6951496b3c8d59 /sys/nfsclient | |
parent | b7bb89406703c35a4bbf329302653d5cdffd1edb (diff) | |
download | src-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.c | 4 |
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); |