From owner-freebsd-bugs Thu Jul 3 01:50:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA29249 for bugs-outgoing; Thu, 3 Jul 1997 01:50:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA29242; Thu, 3 Jul 1997 01:50:02 -0700 (PDT) Resent-Date: Thu, 3 Jul 1997 01:50:02 -0700 (PDT) Resent-Message-Id: <199707030850.BAA29242@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, m-kasahr@sra.co.jp 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 ; 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 X-Send-Pr-Version: 3.2 Subject: bin/4019: mount_mfs lacks an error message, and exits with a wrong exit code Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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,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: