From starkhome!gene@sbstark.cs.sunysb.edu  Wed Dec 14 15:44:44 1994
Received: from sbstark.cs.sunysb.edu (sbstark.cs.sunysb.edu [130.245.1.47]) by freefall.cdrom.com (8.6.8/8.6.6) with ESMTP id PAA14128 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Dec 1994 15:44:43 -0800
Received: from starkhome.UUCP (root@localhost) by sbstark.cs.sunysb.edu (8.6.9/8.6.9) with UUCP id SAA00379 for FreeBSD-gnats-submit@freebsd.org; Wed, 14 Dec 1994 18:42:12 -0500
Received: by starkhome.cs.sunysb.edu (8.6.9/1.34)
	id RAA00733; Wed, 14 Dec 1994 17:59:35 -0500
Message-Id: <199412142259.RAA00733@starkhome.cs.sunysb.edu>
Date: Wed, 14 Dec 1994 17:59:35 -0500
From: starkhome!gene@sbstark.cs.sunysb.edu (Gene Stark)
Reply-To: starkhome!gene@sbstark.cs.sunysb.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: Wrong error from mount of write-protected floppy
X-Send-Pr-Version: 3.2

>Number:         53
>Category:       kern
>Synopsis:       Wrong error from mount of write-protected floppy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    core (FreeBSD core team)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 14 15:50:01 1994
>Closed-Date:    Thu Jan 12 20:34:11 MET 1995
>Last-Modified:
>Originator:     Gene Stark
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
>Environment:

>Description:

	I noticed today while trying to "mount -t msdos /dev/fd0 /mnt"
when the floppy disk was write-protected apparently returns ENODEV.
It seems EROFS would be more appropriate.

>How-To-Repeat:

	Try "mount -t msdos /dev/fd0 /mnt" when the floppy is write protected.

>Fix:
	
	Didn't look into the source of the problem.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Thu Jan 12 20:34:11 MET 1995 
State-Changed-Why:  
The check for a write-protected floppy at Fdopen() time has 
been removed since the code proved to be bogus.  Hence this 
problem report does no longer apply. 
>Unformatted:



