From owner-freebsd-questions@FreeBSD.ORG Tue Sep 27 02:08:01 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7278F106564A; Tue, 27 Sep 2011 02:08:01 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6E6BC8FC1A; Tue, 27 Sep 2011 02:08:00 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so7800929bkb.13 for ; Mon, 26 Sep 2011 19:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=istwrVVVWfCoFeLEyMF34RtU7BSFAtx1DjVJ4kv3mXk=; b=KUuXRI4rXIh2GAXqLhizHOm3kdiJXShTnw6jyRXnLLLcSTMmkI5U1s2B6j4k46Joiw 0M1SFWRK9eBtbityZ8dt/LYiO1NZSDxAAr3dHQRsc9/YU3P6B/TupjNv0DNNBmYB26rV dIiRGbWdTp4W1q2Sv86nPIUSI3FakwVk2TUng= MIME-Version: 1.0 Received: by 10.204.152.201 with SMTP id h9mr4478730bkw.147.1317089279201; Mon, 26 Sep 2011 19:07:59 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.204.140.24 with HTTP; Mon, 26 Sep 2011 19:07:59 -0700 (PDT) In-Reply-To: <4E812DB7.3000302@FreeBSD.org> References: <201109262324.p8QNO0NN070853@freefall.freebsd.org> <4E811FF7.7010607@a1poweruser.com> <4E8126D3.5020407@FreeBSD.org> <4E812DB7.3000302@FreeBSD.org> Date: Mon, 26 Sep 2011 19:07:59 -0700 X-Google-Sender-Auth: YncJ2Syg1SjW3w8N3pYe5COcYRw Message-ID: From: Craig Rodrigues To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Fbsd8 , eadler@freebsd.org, FreeBSD Questions , freebsd-current@freebsd.org Subject: Re: bin/160979: 9.0 burncd error caused by change to cd0 from acd0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 02:08:01 -0000 On Mon, Sep 26, 2011 at 6:58 PM, Doug Barton wrote: >> >> I have used burncd on many releases of FreeBSD, on many machines >> without problem. =A0I can see the fact that burncd suddenly failing to >> work on ATAPI hardware could annoy and confused end-users. > > It doesn't fail to work on ATAPI hardware. It fails to work on cd0 which > is a SCSI device. The fact that it's emulated doesn't matter. True, but the subtlety of that distinction will be lost on a lot of end-use= rs not familiar with the implementation of the FreeBSD storage implementation. To them "burncd just doesn't work, when it used to". >> Can we modify burncd to somehow detect if ATAPI-CAM is enabled, and prin= t out >> a more useful error message? > > Sure, as soon as someone volunteers to create that patch. No one is > *trying* to annoy users, but things change around here because people > are interested in changing them. I am not familiar enough with the ATA_CAM work. Is there a a sysctl or ioc= tl that can be queried from userspace to detect if ATA_CAM is configured in the kernel? I would suggest something like: flag =3D query for hw.ata.ata_cam_enabled sysctl; if (flag =3D=3D 1) { printf("ERROR: ATA_CAM enabled, etc., etc.) exit(1); } I only see these sysctls on a system with ATA_CAM enabled: hw.ata.setmax: 0 hw.ata.wc: 1 hw.ata.atapi_dma: 1 hw.ata.ata_dma_check_80pin: 1 hw.ata.ata_dma: 1 dev.atapci.0.%desc: Intel ATA controller dev.atapci.0.%driver: atapci dev.atapci.0.%location: slot=3D3 function=3D2 dev.atapci.0.%pnpinfo: vendor=3D0x8086 device=3D0x29b6 subvendor=3D0x1028 subdevice=3D0x0211 class=3D0x010185 dev.atapci.0.%parent: pci0 dev.ata.2.%desc: ATA channel 0 dev.ata.2.%driver: ata dev.ata.2.%location: channel=3D0 dev.ata.2.%parent: atapci0 dev.ata.3.%desc: ATA channel 1 dev.ata.3.%driver: ata dev.ata.3.%location: channel=3D1 dev.ata.3.%parent: atapci0 dev.ata.0.%driver: ata dev.ata.0.%parent: isa0 dev.ata.1.%driver: ata dev.ata.1.%parent: isa0 --=20 Craig Rodrigues rodrigc@crodrigues.org