From owner-freebsd-current Sun Oct 12 12:09:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA09568 for current-outgoing; Sun, 12 Oct 1997 12:09:15 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.26]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA09560 for ; Sun, 12 Oct 1997 12:09:07 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.cybercity.dk [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.7) with ESMTP id VAA15161; Sun, 12 Oct 1997 21:08:44 +0200 (CEST) To: Søren Schmidt cc: current@freebsd.org (FreeBSD current) Subject: Re: multiple cd drives, how to... In-reply-to: Your message of "Sun, 12 Oct 1997 20:22:53 +0200." <199710121822.UAA16562@sos.freebsd.dk> Date: Sun, 12 Oct 1997 21:08:44 +0200 Message-ID: <15159.876683324@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop."