From owner-freebsd-bugs Sat Nov 4 01:51:30 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA25946 for bugs-outgoing; Sat, 4 Nov 1995 01:51:30 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id BAA25900 for ; Sat, 4 Nov 1995 01:51:21 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA18551; Sat, 4 Nov 1995 10:51:08 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id KAA00203; Sat, 4 Nov 1995 10:51:05 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id JAA06837; Sat, 4 Nov 1995 09:41:58 +0100 From: J Wunsch Message-Id: <199511040841.JAA06837@uriah.heep.sax.de> Subject: Re: kern/810: Some I/O attempts to CD-ROMs hang at isoilk FDIV038 To: bde@zeta.org.au Date: Sat, 4 Nov 1995 09:41:57 +0100 (MET) Cc: freebsd-bugs@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199511030940.BAA01604@freefall.freebsd.org> from "Bruce Evans" at Nov 3, 95 01:40:02 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1046 Sender: owner-bugs@FreeBSD.org Precedence: bulk As Bruce Evans wrote: > > ENODEV might be a better errno. EOPNOTSUPP only applies to networking > according to the comment in errno.h :-). EROFS isn't quite right for > file systems on devices that are inherently readonly. OTOH, cd9660 > isn't inherently readonly. The current implementation just doesn't > suppport writing, so EOPNOTSUPP is reasonable. If writing was supported > then EROFS would be the natural errno. I think you can currently only mount cd9660 read/only, so EROFS *is* okay (but should not be generated by the cd9660 code itself, but by the upper file system layers). The devices where cd9660 is currently applied to do not allow writing, so either open routine should return ENODEV for an open with write intent. This would prevent one from mounting a CD read/write on a CD reader, even when the cd9660 code does understand how to write something. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)