[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-bugs
Subject:    system/805: mount_msdos contains absurd error message
From:       mark () nfr ! net
Date:       1999-04-20 15:47:14
[Download RAW message or body]


>Number:         805
>Category:       system
>Synopsis:       mount_msdos contains absurd error message
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 20 15:50:06 MDT 1999
>Last-Modified:
>Originator:     Mark S
>Organization:
net
>Release:        
>Environment:
	
	System      : OpenBSD 2.4
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:
	
The mount_msdos program can print an error message which is so confusing
as to be meaningless.  The specific error is:
mount_msdos: /dev/fd0a on /mnt: specified device does not match mounted device

What does it mean "specified device does not match mounted device"? The
specified device is /dev/fd0a; the mounted device is /dev/fd0a.  What
is the problem?

A little poking around the sources reveals that the actual error is
EINVAL, and the kernel returns that when it means to say "I don't
believe this is a DOS disk".

>How-To-Repeat:
	
Format a floppy with mtools.  Attempt to mount it.  I used
	% mformat
	Mtools version 2.0.5, dated 25 Aug 91
	Usage: mformat [-t tracks] [-h heads] [-s sectors] [-l label] device
	% 

Contact me if you would like a disk image with this file system on it.

>Fix:
	
A more meaningful message would be "mount_msdos: /dev/fd0a does not
appear to be an MSDOS filesystem".

>Audit-Trail:
>Unformatted:
no
mount_msdos gives highly confusing error message
non-critical
high
sw-bug
openbsd 2.4

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic