Subject: kern/395: Conceptual problem with FDSCRIPTS and fdesc fs
To: None <gnats-admin>
From: None <martin@euterpe.owl.de>
List: netbsd-bugs
Date: 08/05/1994 12:35:12
>Number:         395
>Category:       kern
>Synopsis:       root filesystem is damaged everytime the system boots
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Aug  5 12:35:10 1994
>Originator:     Martin Husemann
>Organization:
private
>Release:        
>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.

>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------