Re: bin/160979: 9.0 burncd error caused by change to cd0 from ac

看板FB_current作者時間14年前 (2011/09/27 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/17 (看更多)
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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1EWJMYbC (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 17 篇):
文章代碼(AID): #1EWJMYbC (FB_current)