Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 1996 19:45:43 GMT
From:      Randall Hopper <rhh@stealth.ct.picker.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1419: EXT2FS Bug Parsing Mount Opts (SNAP & current) / core dump
Message-ID:  <199607221945.TAA01335@stealth.ct.picker.com>
Resent-Message-ID: <199607222350.QAA22051@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1419
>Category:       bin
>Synopsis:       EXT2FS Bug Parsing Mount Opts (SNAP & current) / core dump
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 22 16:50:00 PDT 1996
>Last-Modified:
>Originator:     Randall Hopper
>Organization:
self
>Release:        FreeBSD 2.2-960612-SNAP i386
>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.

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607221945.TAA01335>