Would you please correct nfs/nfs_vfsops.c so that the ip address of the

root filesystem is printed out correctly?
It's line 299 in nfs/nfs_vfsops.c.

Reviewed by:	phk
Submitted by:	Luigi Rizzo luigi@iet.unipi.it
This commit is contained in:
Poul-Henning Kamp 1994-12-08 20:59:33 +00:00
parent e5cb923fab
commit d8290e4901
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5013
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
* $Id: nfs_vfsops.c,v 1.7 1994/10/22 17:52:59 phk Exp $
* $Id: nfs_vfsops.c,v 1.8 1994/10/23 23:26:18 wollman Exp $
*/
#include <sys/param.h>
@ -296,7 +296,7 @@ nfs_mountroot()
* Create the rootfs mount point.
*/
nd->root_args.fh = (nfsv2fh_t *)nd->root_fh;
l = ntohl(nd->swap_saddr.sin_addr.s_addr);
l = ntohl(nd->root_saddr.sin_addr.s_addr);
sprintf(buf,"%ld.%ld.%ld.%ld:%s",
(l >> 24) & 0xff, (l >> 16) & 0xff,
(l >> 8) & 0xff, (l >> 0) & 0xff,nd->root_hostnam);

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
* $Id: nfs_vfsops.c,v 1.7 1994/10/22 17:52:59 phk Exp $
* $Id: nfs_vfsops.c,v 1.8 1994/10/23 23:26:18 wollman Exp $
*/
#include <sys/param.h>
@ -296,7 +296,7 @@ nfs_mountroot()
* Create the rootfs mount point.
*/
nd->root_args.fh = (nfsv2fh_t *)nd->root_fh;
l = ntohl(nd->swap_saddr.sin_addr.s_addr);
l = ntohl(nd->root_saddr.sin_addr.s_addr);
sprintf(buf,"%ld.%ld.%ld.%ld:%s",
(l >> 24) & 0xff, (l >> 16) & 0xff,
(l >> 8) & 0xff, (l >> 0) & 0xff,nd->root_hostnam);