NetBSD Problem Report #395

From gnats  Fri Aug  5 12:26:32 1994
Received: from hermes.hrz.uni-bielefeld.de (hermes.hrz.uni-bielefeld.de [129.70.4.55]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id MAA03192 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 5 Aug 1994 12:26:29 -0700
Message-Id: <m0qWTUt-00044SC@euterpe.owl.de>
Date: Fri, 5 Aug 94 19:55 WET DST
From: martin@euterpe.owl.de
Reply-To: martin@euterpe.owl.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: Conceptual problem with FDSCRIPTS and fdesc fs
X-Send-Pr-Version: 3.2

>Number:         395
>Category:       kern
>Synopsis:       root filesystem is damaged everytime the system boots
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 05 12:35:10 +0000 1994
>Closed-Date:    Sun Aug 07 12:29:21 +0000 1994
>Last-Modified:  
>Originator:     Martin Husemann
>Release:        
>Organization:
private
>Environment:

System: NetBSD euterpe.owl.de 1.0_BETA NetBSD 1.0_BETA (EUTERPE) #0: Thu Jul 28 15:45:19 MET DST 1994 root@euterpe.owl.de:/usr/src/sys/arch/i386/compile/EUTERPE i386
Kernel compiled with options SETUIDSCRIPTS,FDSCRIPTS, and fdesc mounted union
on /dev

>Description:

With option FDSCRIPTS the kernel uses /dev/fd/3 to execute /etc/rc, which
then mounts fdesc and replaces /dev/fd/3. Somehow this leaves an unrefd
inode on the root partition after system shutdown (in other words: every
time the system boots fsck finds (and fixes) exactly one error on the
root partition.

>How-To-Repeat:

Compile a kernel with SETUIDSCRIPTS,FDSCRIPTS options and include

fdesc /dev fdesc rw,union 

in /etc/fstab. Reboot multiple times and watch fsck.

>Fix:

Not easy. Make fdesc aware of this and let it someway handle the problem?
Or, like SVR4: make fdesc mandatory and hardwire it into the kernel, so
it exists befor /etc/rc is called.

>Release-Note:
>Audit-Trail:

From: "Martin Husemann" <martin@euterpe.owl.de>
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: Re: kern/395: Conceptual problem with FDSCRIPTS and fdesc fs
Date: Sun, 7 Aug 1994 09:00:56 +0200 (MET DST)

 Please cancel this bug report, I'll submit a new one with a description
 of the *real* problem, which happend to not even being mentioned in the
 first pr.

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Sun Aug  7 12:29:21 1994
State-Changed-Why:
Martin determined that this wasn't the problem; and has submitted another
PR with the real problem.
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.