From owner-freebsd-current Sun Oct 12 12:27:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA10216 for current-outgoing; Sun, 12 Oct 1997 12:27:53 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from sos.freebsd.dk (sos.freebsd.dk [195.8.129.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA10204 for ; Sun, 12 Oct 1997 12:27:41 -0700 (PDT) (envelope-from sos@sos.freebsd.dk) Received: (from sos@localhost) by sos.freebsd.dk (8.8.7/8.7.3) id VAA16812; Sun, 12 Oct 1997 21:25:58 +0200 (MEST) From: Søren Schmidt Message-Id: <199710121925.VAA16812@sos.freebsd.dk> Subject: Re: multiple cd drives, how to... In-Reply-To: <15159.876683324@critter.freebsd.dk> from Poul-Henning Kamp at "Oct 12, 97 09:08:44 pm" To: phk@critter.freebsd.dk (Poul-Henning Kamp) Date: Sun, 12 Oct 1997 21:25:58 +0200 (MEST) Cc: current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In reply to Poul-Henning Kamp who wrote: > In message <199710121822.UAA16562@sos.freebsd.dk>, Søren Schmidt writes: > > > >I'm currently implementing support for multiple CD drives in the ATAPI > >driver, question is how to switch the CD. > >Should it be done by using the patition (a-h) gives which gives 8 > >possibilities, or should it be coded into the minor number. > >Another possiblity is to use the cdcontrol program via ioctls to > >switch. > > > >Votes ?? > > Do not use the partitions. Why don't you just take the number of > drive numbers you need ? That way you can mount all of the CD's > and the changer will plug in whatever one you access. That was kind of my idea as well, on probe decide how many "drives" (= minors) this drive has, and allocating those I cannot wait to se it trying to shuffle CD's trying to keep up with 4 ls's on the mounted CD's :), that should be a pretty good test .... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end ..