From 5d9efe088f5d83921305ee2f93f6c6590c640b47 Mon Sep 17 00:00:00 2001
From: Roland McGrath <roland@gnu.org>
Date: Sat, 29 Dec 2001 00:40:09 +0000
Subject: 2001-10-13  Roland McGrath  <roland@frob.com>

	* storage-info.c: New file.
	* Makefile (SRCS): Add it.
	* mount.c (mounted_hostname, mounted_nfs_port): New global variables.
	(mount_root): Set them.
	* nfs.h: Declare them.
---
 nfs/mount.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'nfs/mount.c')

diff --git a/nfs/mount.c b/nfs/mount.c
index a3a6887e..eb7165ac 100644
--- a/nfs/mount.c
+++ b/nfs/mount.c
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1995,96,97,98,2001 Free Software Foundation, Inc.
    Written by Michael I. Bushnell, p/BSG.
 
    This file is part of the GNU Hurd.
@@ -64,6 +64,10 @@ short nfs_port = NFS_PORT;
 /* True iff NFS_PORT should be used even if portmapper present. */
 int nfs_port_override = 0;
 
+/* Host name and port number we actually decided to use.  */
+const char *mounted_hostname;
+uint16_t mounted_nfs_port;	/* host order */
+
 int protocol_version = 2;
 
 /* Set up an RPC for procedure PROCNUM for talking to the portmapper.
@@ -254,6 +258,9 @@ mount_root (char *name, char *host)
       return 0;
     }
 
+  mounted_hostname = host;
+  mounted_nfs_port = port;
+
   return np;
 
 error_with_rpcbuf:
-- 
cgit v1.2.3