From wb@arb-phys.uni-dortmund.de  Fri Jan 20 01:48:18 1995
Received: from gisli.arb-phys.uni-dortmund.de (Sgisli.arb-phys.uni-dortmund.de [192.109.44.250]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id BAA06235 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Jan 1995 01:48:04 -0800
Received: (from wb@localhost) by gisli.arb-phys.uni-dortmund.de (8.6.9/8.6.9) id LAA22139; Thu, 19 Jan 1995 11:40:13 +0100
Message-Id: <199501191040.LAA22139@gisli.arb-phys.uni-dortmund.de>
Date: Thu, 19 Jan 1995 11:40:13 +0100
From: "Wilhelm B. Kloke" <wb@arb-phys.uni-dortmund.de>
Reply-To: wb@arb-phys.uni-dortmund.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: mount -u improvement for diskless systems
X-Send-Pr-Version: 3.2

>Number:         153
>Category:       bin
>Synopsis:       mount -u improvement for diskless systems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 20 01:50:01 1995
>Closed-Date:    Wed Apr 17 16:20:20 PDT 1996
>Last-Modified:  Wed Apr 17 16:20:54 PDT 1996
>Originator:     Wilhelm B. Kloke
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
Dipl.-Math. Wilhelm Bernhard Kloke
Institut fuer Arbeitsphysiologie an der Universitaet Dortmund
Ardeystrasse 67, D-44139 Dortmund, Tel. 0231-1084-257
>Environment:

	A FreeBSD system supporting multiple diskless clients

>Description:

	If one wants to support multiple diskless clients on a single
	server, there is no need to replicate most parts of the
	root filesystem except /tmp and /var, which are or can be made
	empty directories or symbolic links. Therefore files
	containing information relevant to a single client should
	be eliminated as far as possible. The file /etc/fstab
	has the nasty glitch, that it contains the entry for the
	root filesystem / as servername:/diskless/clientroot or whatever.
	If this line is cancelled, the system is able to boot, but
	root cannot be made rw, because mount -u depends on the
	presence of a line for / in fstab. This is superfluous, as far
	as I can see, if the proposed change in /usr/src/sbin/mount/mount.c
	is made.

>How-To-Repeat:

	-

>Fix:
	

96,97d95
< static const char* mountnames[] = INITMOUNTNAMES;
< 
103c101
< 	const char **vfslist, *vfstype;
---
> 	const char *mntonname, **vfslist, *vfstype;
199,201c197
< 			rval = mountfs(mountnames[mntbuf->f_type],
< 			    mntbuf->f_mntfromname,
< 			    mntbuf->f_mntonname, init_flags, options, NULL);
---
> 			mntonname = mntbuf->f_mntonname;
211,212c207
< 			rval = mountfs(fs->fs_vfstype, fs->fs_spec,
< 			    fs->fs_file, init_flags, options, fs->fs_mntops);
---
> 			mntonname = fs->fs_file;
213a209,210
> 		rval = mountfs(fs->fs_vfstype, fs->fs_spec,
> 		    mntonname, init_flags, options, fs->fs_mntops);

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: scrappy 
State-Changed-When: Wed Apr 17 16:20:20 PDT 1996 
State-Changed-Why:  
Originator reports that this is fixed 
>Unformatted:


