From schweikh@schweikhardt.net  Fri Aug 23 14:09:16 2002
Return-Path: <schweikh@schweikhardt.net>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D7CB937B401
	for <bug-followup@FreeBSD.org>; Fri, 23 Aug 2002 14:09:16 -0700 (PDT)
Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 20F7B43E42
	for <bug-followup@FreeBSD.org>; Fri, 23 Aug 2002 14:09:16 -0700 (PDT)
	(envelope-from schweikh@schweikhardt.net)
Received: from bremen.shuttle.de (localhost [127.0.0.1])
	by bremen.shuttle.de (Postfix) with ESMTP
	id 80AB517D40; Fri, 23 Aug 2002 23:09:14 +0200 (CEST)
Received: (from uucp@localhost)
	by bremen.shuttle.de (8.12.3/8.12.3/Debian -4) with UUCP id g7NL9E9o031856;
	Fri, 23 Aug 2002 23:09:14 +0200
Received: from hal9000.schweikhardt.net (localhost [127.0.0.1])
	by hal9000.schweikhardt.net (8.12.5/8.12.5) with ESMTP id g7NL9MxA021809;
	Fri, 23 Aug 2002 23:09:22 +0200 (CEST)
	(envelope-from schweikh@hal9000.schweikhardt.net)
Received: (from schweikh@localhost)
	by hal9000.schweikhardt.net (8.12.5/8.12.3/Submit) id g7NL9LdE021808;
	Fri, 23 Aug 2002 23:09:21 +0200 (CEST)
Message-Id: <20020823230921.B20467@schweikhardt.net>
Date: Fri, 23 Aug 2002 23:09:21 +0200
From: Jens Schweikhardt <schweikh@schweikhardt.net>
To: Matthew Dillon <dillon@apollo.backplane.com>
Cc: GNATS Bug Followup <bug-followup@FreeBSD.org>,
	jean-francois.dockes@wanadoo.fr
In-Reply-To: <200208232001.g7NK11p0002898@apollo.backplane.com>
Subject: Re: PR 29870
References: <20020823214220.B20092@schweikhardt.net> <200208232001.g7NK11p0002898@apollo.backplane.com>

>Number:         41956
>Category:       conf
>Synopsis:       Re: PR 29870
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 23 14:10:02 PDT 2002
>Closed-Date:    Wed Aug 28 14:57:56 PDT 2002
>Last-Modified:  Wed Aug 28 14:57:56 PDT 2002
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 On Fri, Aug 23, 2002 at 01:01:01PM -0700, Matthew Dillon wrote:
 # 
 # :
 # :Matt,
 # :
 # :the main problem in http://www.freebsd.org/cgi/query-pr.cgi?pr=29870
 # :is reported as no longer existing. However, the audit trail has the
 # :suggestion to add something like
 # :
 # :	mkdir -p -m 755 /var/db    # mount uses /var/db/mountdtab
 # :
 # :before the "mount -a". Would you approve of such a change?
 # :
 # :
 # :Regards,
 # :
 # :	Jens
 # :-- 
 # :Jens Schweikhardt http://www.schweikhardt.net/
 # :SIGSIG -- signature too long (core dumped)
 # 
 #     I can access the PR... lets see.  Ok, I understand.
 # 
 #     In addition to moving the mount -a as the patch in the PR
 #     proposes, I also agree that creating /var/db is a good
 #     idea, but I would do it like this:
 # 
 #     if [ ! -d /var/db ]; then
 # 	mkdir -p -m 755 /var/db
 #     fi
 # 
 #     Defensive programming is always a good idea.
 
 Is it correct that /var/db should even be created before the mount_md of
 /var and then maybe once again? Or does mount_md not complain when it
 can't write /var/db/mounttab? I don't have a diskless machine so it's
 next to impossible for me to test.
 
 Furthermore I'm confused about the files affected by mount under
 /var/db. If I ktrace 'mount /big' on my system, this is what I observe:
 # nami mount /big
 kdump
  21680 ktrace   NAMI  "/usr/local/bin/mount"
  21680 ktrace   NAMI  "/usr/local/sbin/mount"
  21680 ktrace   NAMI  "/bin/mount"
  21680 ktrace   NAMI  "/usr/bin/mount"
  21680 ktrace   NAMI  "/sbin/mount"
  21680 mount    NAMI  "/etc/fstab"
  21680 mount    NAMI  "/etc/malloc.conf"
  21680 mount    NAMI  "/"
  21680 mount    NAMI  "/dev/da2s2e"
  21680 mount    NAMI  "."
  21680 mount    NAMI  "/"
  21680 mount    NAMI  "big"
  21680 mount    NAMI  "big"
  21680 mount    NAMI  "/big"
  21681 mount    NAMI  "/big"
  21681 mount    NAMI  "/dev/da1s4e"
  21680 mount    NAMI  "/var/run/mountd.pid"
 
 So it looks like we should rather (or in addition) create /var/run
 instead of /var/db, or I am missing something diskless-specific here?
 
 Regards,
 
 	Jens
 -- 
 Jens Schweikhardt http://www.schweikhardt.net/
 SIGSIG -- signature too long (core dumped)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Wed Aug 28 14:57:08 PDT 2002 
State-Changed-Why:  
Followup to conf/29870 misfiled as a new PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41956 
>Unformatted:
