Date: Mon, 26 Sep 2011 19:07:59 -0700 From: Craig Rodrigues <rodrigc@crodrigues.org> To: Doug Barton <dougb@freebsd.org> Cc: Fbsd8 <fbsd8@a1poweruser.com>, eadler@freebsd.org, FreeBSD Questions <freebsd-questions@freebsd.org>, freebsd-current@freebsd.org Subject: Re: bin/160979: 9.0 burncd error caused by change to cd0 from acd0 Message-ID: <CAG=rPVcTHiPLFG1%2BdZmi1OWpyZsw=Px=PJT55UFGN_mxt3y%2BJw@mail.gmail.com> In-Reply-To: <4E812DB7.3000302@FreeBSD.org> References: <201109262324.p8QNO0NN070853@freefall.freebsd.org> <4E811FF7.7010607@a1poweruser.com> <4E8126D3.5020407@FreeBSD.org> <CAG=rPVeAPt0_=jNXaHcnB8QCtYuvi5z69MDMFEgyD0HBQT0Mcw@mail.gmail.com> <4E812DB7.3000302@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 26, 2011 at 6:58 PM, Doug Barton <dougb@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVcTHiPLFG1%2BdZmi1OWpyZsw=Px=PJT55UFGN_mxt3y%2BJw>