From owner-freebsd-questions Tue Feb 27 13:16:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA04323 for questions-outgoing; Tue, 27 Feb 1996 13:16:02 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA04291 for ; Tue, 27 Feb 1996 13:15:58 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA05856; Tue, 27 Feb 1996 14:09:51 -0700 From: Terry Lambert Message-Id: <199602272109.OAA05856@phaeton.artisoft.com> Subject: Re: cd9660 To: LARRYD@bldg1.croute.com (Larry Dolinar) Date: Tue, 27 Feb 1996 14:09:50 -0700 (MST) Cc: questions@FreeBSD.ORG In-Reply-To: <3DCD62C719C@bldg1.croute.com> from "Larry Dolinar" at Feb 26, 96 05:28:57 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG Precedence: bulk >|> I have mounted my CD drive. It works very good except a few problems. One >|> of which is bothering me. After I do the 'mount -t cd9660 /dev/mcd0 /cdrom' >|> and it works, I can not swich the CDs unless I unmount it. I do not like >|> unmounting and remounting every time I want to swich the CD. Why can I not >|> swich the CD while mounted? How can I make it so I don't need to unmount it? >|> > > > >| I'd be inclined to define "media departure" (and "media arrival") events >| and deliver them to a resource manager when the CDROM realizes it has >| been ejected so that they can be processed as "unmount old/mount new". >| > > This is starting to sound like 'vold' in Solaris; say it isn't so.... > > 8) It isn't so. I would use the devfs device registration mechanism to trigger an "arrival" event. Conventional media would "arrive" as well, then (it would just never depart). Arrival would trigger a "mount" internally to a POSIX namespace accessable by root. Devices with removable media would "arrive" before their media did, and when the media showed up (was inserted) would fall into the physical to logical device translation that gives us partions and slieces and media perfection and compression... etc.. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.