mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Don't print swap server as root server.
Submitted by: Mattias.Gronlund@sa.erisoft.se (Mattias Gronlund)
This commit is contained in:
parent
47487d4e61
commit
d2f08956ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13084
@ -34,7 +34,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
|
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
|
||||||
* $Id: nfs_vfsops.c,v 1.24 1995/12/17 21:12:35 phk Exp $
|
* $Id: nfs_vfsops.c,v 1.25 1995/12/22 15:57:38 phk Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -428,7 +428,7 @@ nfs_mountroot()
|
|||||||
* If using nfsv3_diskless, replace NFSX_V2FH with nd->root_fhsize.
|
* If using nfsv3_diskless, replace NFSX_V2FH with nd->root_fhsize.
|
||||||
*/
|
*/
|
||||||
nd->root_args.fhsize = NFSX_V2FH;
|
nd->root_args.fhsize = NFSX_V2FH;
|
||||||
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",
|
sprintf(buf,"%ld.%ld.%ld.%ld:%s",
|
||||||
(l >> 24) & 0xff, (l >> 16) & 0xff,
|
(l >> 24) & 0xff, (l >> 16) & 0xff,
|
||||||
(l >> 8) & 0xff, (l >> 0) & 0xff,nd->root_hostnam);
|
(l >> 8) & 0xff, (l >> 0) & 0xff,nd->root_hostnam);
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
|
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
|
||||||
* $Id: nfs_vfsops.c,v 1.24 1995/12/17 21:12:35 phk Exp $
|
* $Id: nfs_vfsops.c,v 1.25 1995/12/22 15:57:38 phk Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -428,7 +428,7 @@ nfs_mountroot()
|
|||||||
* If using nfsv3_diskless, replace NFSX_V2FH with nd->root_fhsize.
|
* If using nfsv3_diskless, replace NFSX_V2FH with nd->root_fhsize.
|
||||||
*/
|
*/
|
||||||
nd->root_args.fhsize = NFSX_V2FH;
|
nd->root_args.fhsize = NFSX_V2FH;
|
||||||
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",
|
sprintf(buf,"%ld.%ld.%ld.%ld:%s",
|
||||||
(l >> 24) & 0xff, (l >> 16) & 0xff,
|
(l >> 24) & 0xff, (l >> 16) & 0xff,
|
||||||
(l >> 8) & 0xff, (l >> 0) & 0xff,nd->root_hostnam);
|
(l >> 8) & 0xff, (l >> 0) & 0xff,nd->root_hostnam);
|
||||||
|
Loading…
Reference in New Issue
Block a user