From owner-freebsd-hackers Tue Sep 5 03:35:57 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.11/8.6.6) id DAA18953 for hackers-outgoing; Tue, 5 Sep 1995 03:35:57 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.freebsd.org (8.6.11/8.6.6) with ESMTP id DAA18947 for ; Tue, 5 Sep 1995 03:35:51 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id UAA02568; Tue, 5 Sep 1995 20:33:54 +1000 Date: Tue, 5 Sep 1995 20:33:54 +1000 From: Bruce Evans Message-Id: <199509051033.UAA02568@godzilla.zeta.org.au> To: bde@zeta.org.au, vak@cronyx.ru Subject: Re: Help installing IDE CD-ROM driver Cc: hackers@freebsd.org Sender: hackers-owner@freebsd.org Precedence: bulk >> >There is no disklabel support in wcd driver, that's why >> >there is no /dev/wcd0a device. Is it really needed? >> >> Not really, but it simplifies the device naming scheme and all other >> cdrom drivers support it. >All CD-ROM drivers support partition A. Some of them >also support partition C, which is the same. wcd actually sort of supports 2^30 partitions, all the same (because wcdopen() doesn't check the top 30 bits in the device number :-(). There would be aliasing problems if someone created one of the other minors and used both. There are aliasing problems now between the cdev and the bdev. E.g., opening the cdev while the bdev is open invalidates the F_OPEN flag and messes up media change stuff. The `fmt' arg to wdopen() and wdclose() that is required to distinguish cdevs from bdevs is missing. dsopen() and dsclose() handle all these aliasing problems. >What about ln -s /dev/wcd0c /dev/wcd0a? :-) It should be wcd0 since there are no partitions. The slice naming scheme has this as a special (xxd0 is actually minor 2 on slice 1). Bruce