From owner-freebsd-hackers Sun Apr 23 23:52:15 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA24127 for hackers-outgoing; Sun, 23 Apr 1995 23:52:15 -0700 Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id XAA24121 for ; Sun, 23 Apr 1995 23:52:13 -0700 Received: by dg-rtp.dg.com (5.4R2.01/dg-rtp-v02) id AA09053; Mon, 24 Apr 1995 02:51:37 -0400 Received: from lakes (lakes [192.96.3.39]) by ponds.UUCP (8.6.9/8.6.5) with ESMTP id TAA09201; Sun, 23 Apr 1995 19:22:45 -0400 Received: (from rivers@localhost) by lakes (8.6.9/8.6.9) id TAA00879; Sun, 23 Apr 1995 19:38:14 -0400 Date: Sun, 23 Apr 1995 19:38:14 -0400 From: Thomas David Rivers Message-Id: <199504232338.TAA00879@lakes> To: ref.tfs.com!julian@dg-rtp.dg.com, ponds!rivers Subject: Re: Interesting SCSI cdrom problem.. Cc: freebsd-hackers@freefall.cdrom.com Sender: hackers-owner@FreeBSD.org Precedence: bulk > > > > This is a 'feature' of the driver > once the door has been openned, the drive reports to the driver, that > there has been user intervention of some kind.. > specifically a 'Unit attention' erro is reported to the driver.. > > this tells the driver that the cdrom MAY HAVE BEEN CHANGED!. > > The driver therefore aborts ALL operations until ALL USERS have closed the > device. (including the 'mount' 'user' ). > > When the last user has closed the device, operations on the cdrom are > re-enabled.. > > I'm glad to see you are getting this as it proves that the code in > question is working, and it is vitally important to devices > with read-write removable media that it does.... > consider.. > async write to drive... > {change media} > sync > (OUCH!) > > the same problem exists for cdoms but it doesn't corrupt the media, > just totally screws the internal cached copy of the filesystem nodes > (i.e if it assumed that the same cdrom was in but wasn't.....) > Yes, that entirely makes sense. I was considering the situation myself; what else could you do given that the "disk" can be jerked out from under you? - Thanks - - Dave Rivers -