From assar@sics.se Thu Sep  9 10:26:22 1999
Return-Path: <assar@sics.se>
Received: from assaris.sics.se (assaris.sics.se [193.10.66.108])
	by hub.freebsd.org (Postfix) with ESMTP id 184E8151BA
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Sep 1999 10:26:19 -0700 (PDT)
	(envelope-from assar@sics.se)
Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.7.3) id TAA04502; Thu, 9 Sep 1999 19:26:30 +0200 (CEST)
Message-Id: <199909091726.TAA04502@assaris.sics.se>
Date: Thu, 9 Sep 1999 19:26:30 +0200 (CEST)
From: Assar Westerlund <assar@sics.se>
Reply-To: assar@sics.se
To: FreeBSD-gnats-submit@freebsd.org
Subject: buggy filesystems are built as modules
X-Send-Pr-Version: 3.2

>Number:         13666
>Category:       kern
>Synopsis:       buggy filesystems are built as modules
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep  9 10:30:01 PDT 1999
>Closed-Date:    Tue May 16 10:01:20 PDT 2000
>Last-Modified:  Tue May 16 10:04:13 PDT 2000
>Originator:     Assar Westerlund
>Release:        FreeBSD 4.0-CURRENT i386 (and earlier)
>Organization:
none
>Environment:

This happens on both 4.0-CURRENT and 3.2

>Description:

{null,portal,umap,union}fs are marked as buggy in LINT and not
included in GENERIC.  They're still built as kld modules and will be
loaded automatically if they're mentioned in /etc/fstab.  (This
actually happened to a friend of mine.)

>How-To-Repeat:

Add a null filesystem in /etc/fstab.

>Fix:

Remove them so they're not build in modules:

Index: src/sys/modules/Makefile
===================================================================
RCS file: /src/fbsd-repository/src/sys/modules/Makefile,v
retrieving revision 1.70
diff -u -w -u -w -r1.70 Makefile
--- Makefile	1999/08/10 17:15:11	1.70
+++ Makefile	1999/09/09 17:22:52
@@ -1,15 +1,17 @@
 #	$Id: Makefile,v 1.70 1999/08/10 17:15:11 wpaul Exp $
 
-# XXX present but broken: atapi ip_mroute_mod joy pcic
+# XXX present but broken: atapi ip_mroute_mod joy pcic nullfs portal umapfs union
 
 SUBDIR=	ax ccd cd9660 coda fdesc fxp if_disc if_ppp if_sl if_tun ipfw \
-	kernfs mfs msdos mx nfs ntfs nullfs pn portal procfs sf sk ti \
-	tl umapfs union vn vr xl
+	kernfs mfs msdos mx nfs ntfs pn procfs sf sk ti \
+	tl vn vr xl
 
 # XXX some of these can move to the general case when de-i386'ed
 .if ${MACHINE_ARCH} == "i386"
 SUBDIR+=bktr coff fpu gnufpu ibcs2 linux splash streams \
 	svr4 syscons vesa vinum
 .endif

>Release-Note:
>Audit-Trail:

From: Assar Westerlund <assar@sics.se>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/13666: buggy filesystems are built as modules
Date: 09 Sep 1999 19:51:51 +0200

 A better way of solving this would of course be to build all the
 modules but don't install the ones that are considered to be buggy.  I
 don't know how to do this with SUBDIR_CHANGE in the Makefile however.
 
 /assar
 
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Tue May 16 10:01:20 PDT 2000 
State-Changed-Why:  
I think the correct fix is to fix the filesystems.  They've only been 
broken since inception. 

The brokeness should be mentioned in the respective manpages, I believe. 
>Unformatted:
