From nobody@FreeBSD.ORG  Sun Jun 18 16:02:31 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id A566B37BAD5; Sun, 18 Jun 2000 16:02:31 -0700 (PDT)
Message-Id: <20000618230231.A566B37BAD5@hub.freebsd.org>
Date: Sun, 18 Jun 2000 16:02:31 -0700 (PDT)
From: zerkle@home.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: Inadequate error reporting in "mount" command.
X-Send-Pr-Version: www-1.0

>Number:         19369
>Category:       bin
>Synopsis:       Inadequate error reporting in "mount" command.
>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:   Sun Jun 18 16:10:01 PDT 2000
>Closed-Date:    Sat Aug 25 15:55:56 PDT 2001
>Last-Modified:  Sat Aug 25 15:58:26 PDT 2001
>Originator:     Dan Zerkle
>Release:        4.0-STABLE
>Organization:
n/a
>Environment:
FreeBSD c239505-a.plstn1.sfba.home.com 4.0-STABLE FreeBSD 4.0-STABLE #0: Sat May 27 19:53:36 PDT 2000     root@c239505-a.plstn1.sfba.home.com:/usr/obj/usr/src/sys/kern052700  i386

>Description:
When updating to 4.0-STABLE, I remembered to create /dev/acd0c for
my CD-ROM, but forgot to create /dev/acd0.  The fstab was correct.

/dev/acd0c              /cdrom          cd9660  ro,noauto       0       0

The error message that resulted was singularly unhelpful.  To wit:

su-2.03# mount /cdrom
cd9660: No such file or directory

Note the lack of mention of /dev/acd0, which is what I needed.

Doing it manually was no help, either:

su-2.03# mount_cd9660 /dev/acd0 /cdrom
mount_cd9660: No such file or directory


>How-To-Repeat:
Remove acd0, attempt a mount, and see how unhelpful the
error messages are.

>Fix:
Update the error message code of mount or mount_cd9660, as
appropriate.

It should simply mention the full path name of the special device
file it wants.

>Release-Note:
>Audit-Trail:

From: Dan Zerkle <zerkle@home.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/19369: Inadequate error reporting in "mount" command.
Date: Sun, 18 Jun 2000 20:17:56 -0700

 I'm not familiar with this followup mechanism.  Someone correct me if
 I'm doing this wrong.
 
 My "Description" section has a tiny error.  This was wrong:
 
 su-2.03# mount_cd9660 /dev/acd0 /cdrom
 
 Of course, I really meant:
 
 su-2.03# mount_cd9660 /dev/acd0c /cdrom
 
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Sat Aug 25 15:55:56 PDT 2001 
State-Changed-Why:  

This appears to have been fixed in both -current and -stable: 

# mount /cdrom 
cd9660: /dev/acd0c: No such file or directory 

Thanks for the bug report! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19369 
>Unformatted:
