Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 1997 17:42:19 +0900 (JST)
From:      m-kasahr@sra.co.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/4019: mount_mfs lacks an error message, and exits with a wrong exit code
Message-ID:  <199707030842.RAA04794@sranhh.sra.co.jp>
Resent-Message-ID: <199707030850.BAA29242@hub.freebsd.org>

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

>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:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul  3 01:50:01 PDT 1997
>Last-Modified:
>Originator:     Motoyuki Kasahara
>Organization:
Software Research Associates, Inc., Japan
>Release:        FreeBSD 2.2.2-RELEASE i386
>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:
>Audit-Trail:
>Unformatted:



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