From m-kasahr@sra.co.jp  Thu Jul  3 01:42:23 1997
Received: from sraigw.sra.co.jp (sraigw.sra.co.jp [202.32.10.2])
          by hub.freebsd.org (8.8.5/8.8.5) with SMTP id BAA28972
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 3 Jul 1997 01:42:21 -0700 (PDT)
Received: from sranhh.sra.co.jp by sraigw.sra.co.jp (8.6.13/3.4W-sraigw)
	id RAA11045; Thu, 3 Jul 1997 17:42:04 +0900
Received: (from m-kasahr@localhost) by sranhh.sra.co.jp (8.8.5/3.5Wpl4-sra) id RAA04794; Thu, 3 Jul 1997 17:42:19 +0900 (JST)
Message-Id: <199707030842.RAA04794@sranhh.sra.co.jp>
Date: Thu, 3 Jul 1997 17:42:19 +0900 (JST)
From: m-kasahr@sra.co.jp
Reply-To: m-kasahr@sra.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: mount_mfs lacks an error message, and exits with a wrong exit code
X-Send-Pr-Version: 3.2

>Number:         4019
>Category:       bin
>Synopsis:       mount_mfs lacks an error message, and exits with a wrong exit code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul  3 01:50:01 PDT 1997
>Closed-Date:    Sun Oct 12 14:19:35 MEST 1997
>Last-Modified:  Sun Oct 12 14:20:25 MEST 1997
>Originator:     Motoyuki Kasahara
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
Software Research Associates, Inc., Japan
>Environment:

FreeBSD 2.2.2-RELEASE #0: Fri May 23 09:36:47 JST 1997
    root@srapc372:/usr/src/sys/compile/SRAPC372
CPU: Pentium Pro (199.31-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping=9
  Features=0xf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,<b11>,MTRR,PGE,MCA,CMOV>
real memory  = 134217728 (131072K bytes)
avail memory = 127479808 (124492K bytes)

>Description:

	I executed /sbin/mount_mfs to mount MFS, but the attempt was failed
	because the FreeBSD kernel was not configured with MFS support.
	Though this is my fault, I found a bug in the kernel at the attempt.
	/sbin/mount_mfs outputs no error message and exits with the exit
	code 0.
	I think an error message is required and the exit code shuold be
	non-0.

	# /sbin/mount
	/dev/sd0a on / (local)
	/dev/sd0f on /var (local)
	/dev/sd0e on /usr (local)
	# /sbin/mount_mfs -s8192 /dev/sd0s1b /mnt && echo succeeded
	succeeded
	# /sbin/mount
	/dev/sd0a on / (local)
	/dev/sd0f on /var (local)
	/dev/sd0e on /usr (local)
	#

>How-To-Repeat:

	Configure the kernel without MFS support, and try /sbin/mount_mfs

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun Oct 12 14:19:35 MEST 1997 
State-Changed-Why:  

This has been fixed in rev 1.15 of newfs/newfs.c.  The fix is still 
due for merge into RELENG_2_2, but since it came from Lite2, we gotta 
be careful with the merge. 
>Unformatted:
