diff options
author | Roland McGrath <roland@gnu.org> | 2001-12-29 00:40:09 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-12-29 00:40:09 +0000 |
commit | 5d9efe088f5d83921305ee2f93f6c6590c640b47 (patch) | |
tree | 4db1eaac333cdb1147d083a87c8c9e9a8eb184b9 /nfs/mount.c | |
parent | 8b73f5b1b2ca8deb9839ac003bf7ef5f0fc8ce75 (diff) |
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.
Diffstat (limited to 'nfs/mount.c')
-rw-r--r-- | nfs/mount.c | 9 |
1 files changed, 8 insertions, 1 deletions
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: |