NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

scsictl identifies ATAPI CD drive as related to scsibusN (but it isn't)




Hi.

Basically, scsictl mentions scsibus<N> when talking to atapibus<N>, in a way that is confusing.


I have a DVD writer attached to the motherboard ATA controller, like so:

atabus1 at piixide0 channel 1
[...]
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <_NEC DVD_RW ND-3550A, , 1.05> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
[...]


scsictl says this about the living arrangements:

# scsictl cd0 identify
/dev/rcd0d: scsibus0 target 0 lun 0 <_NEC, DVD_RW ND-3550A, 1.05>
#

(Note "scsibus0".)


But I have a "proper" scsibus0 -- this:

ieee1394if0 at fwohci0: IEEE1394 bus
[...]
sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
scsibus0 at sbp0: 1 target, 0 luns per target

There is potential for confusion here. I'll open a PR but would like to know a bit more first.


So what is going on anyway, does scsictl simply print the wrong bus type in this case? Should scsictl make a distinction between talking to an atapibus and talking to a scsibus? Should it perhaps fail in this case? Is the assumption that you have an atapibus or a scsibus, but not both?


MAgnus



Home | Main Index | Thread Index | Old Index