From rhh@stealth.ct.picker.com  Mon Jul 22 16:46:19 1996
Received: from stealth.ct.picker.com ([144.54.61.10])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA21649
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Jul 1996 16:46:16 -0700 (PDT)
Received: (from rhh@localhost) by stealth.ct.picker.com (8.7.5/8.7.3) id TAA01335; Mon, 22 Jul 1996 19:45:43 GMT
Message-Id: <199607221945.TAA01335@stealth.ct.picker.com>
Date: Mon, 22 Jul 1996 19:45:43 GMT
From: Randall Hopper <rhh@stealth.ct.picker.com>
Reply-To: rhh@stealth.ct.picker.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: EXT2FS Bug Parsing Mount Opts (SNAP & current) / core dump
X-Send-Pr-Version: 3.2

>Number:         1419
>Category:       bin
>Synopsis:       EXT2FS Bug Parsing Mount Opts (SNAP & current) / core dump
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 22 16:50:00 PDT 1996
>Closed-Date:    Tue Jul 23 12:29:49 PDT 1996
>Last-Modified:  Tue Jul 23 12:31:07 PDT 1996
>Originator:     Randall Hopper
>Release:        FreeBSD 2.2-960612-SNAP i386
>Organization:
self
>Environment:

	(Not really relevent, but:) 2 IDE hard disks, multiple FreeBSD UFS
	and DOS partitions w/ one EXT2FS on wd1.

>Description:

	mount_ext2fs core dumps when mount options other than "ro" are
	specified.
	
>How-To-Repeat:

	mount ext2fs file system with options other than or in addition to
	"ro".  E.g. insert /etc/fstab entry:

		/dev/wd1s3      /linux          ext2fs  ro,noauto 1 1

	and mount /linux.

>Fix:
	
	The cause of the problem is that an old mntopts.h (missing the new 
	m_altloc field) exists in the sbin/mount_ext2fs directory, resulting 
	in mismatched definitions between mount_ext2fs.o and getmntopts.o
	when mount_ext2fs is built.

	This fix that worked for me is:

	- (cd /usr/src; untar ssbin.??)
	- cd sbin/mount_ext2fs
	- rm mnttab.h *.o
	- edit mount_ext2fs.c and add ",0" to end of getmntopts()' argument lst
	- make
	- mv mount_ext2fs /sbin

	This problem appears to still exists in the -current tree.  I believe
	the mntopts.h file in the sbin/mount_ext2fs directory just needs 
	deleted from this directory and mount_ext2fs.c updated as described
	above.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Tue Jul 23 12:29:49 PDT 1996 
State-Changed-Why:  
Suggested fix applied (rev 1.3 of src/sbin/mount_ext2fs.c) 
>Unformatted:
