From owner-freebsd-current Tue Jan 22 10:53:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from freebsd.dk (fw-rl0.freebsd.dk [212.242.86.114]) by hub.freebsd.org (Postfix) with ESMTP id 3B5D237B402; Tue, 22 Jan 2002 10:53:04 -0800 (PST) Received: (from sos@localhost) by freebsd.dk (8.11.6/8.11.6) id g0MIpec79156; Tue, 22 Jan 2002 19:51:40 +0100 (CET) (envelope-from sos) From: Søren Schmidt Message-Id: <200201221851.g0MIpec79156@freebsd.dk> Subject: Re: ATAPI CD doesn't listed up to 'kern.disks' kernel MIB In-Reply-To: <20020123031256K.matusita@jp.FreeBSD.org> To: Makoto Matsushita Date: Tue, 22 Jan 2002 19:51:39 +0100 (CET) Cc: current@FreeBSD.ORG, sos@FreeBSD.ORG Reply-To: sos@freebsd.dk X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems Makoto Matsushita wrote: > > I found that acd, ATAPI CD device, doesn't listed up to 'kern.disks' > kernel MIB which should list all disks in the running system. > > Here is a sample: > > ringo % sysctl kern.disks > kern.disks: ad0 > ringo % grep acd /var/run/dmesg.boot > acd0: CDROM at ata1-master PIO4 > ringo % > > I've investigated that this is because ATAPI CD driver doesn't call > disk_create() when detecting CD device. Other disks, including SCSI > CD or RAID HDD calls this function. > > Is it a feature or something forgotten to add it? The ATAPI CDROM driver doesn't use the disk layer because that wouldn't allow for some of the things the driver supports (odd sector sizes etc). At any rate I wouldn't expect a CDROM to show up as a disk, unless it has a R/W medium formatted for random R/W inserted (which we at this time doesn't support). -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message