Phillip Susi <psusi@xxxxxxxxxx> wrote:
Joerg Schilling wrote:
I am sorry to see your recent dicussion style.
I was asking a question and I did get a completely useless answer as
any person who has some basic know how Linux SCSI would know that
doing a stat("/dev/sg*", ...) will not return anything useful.
It certainly does return something useful, just not what you are looking for. It does not return information that allows you to cleanly build your bus:device:lun view of the world, but it does return sufficient information to enumerate and communicate with all devices in the system. Is that not sufficient to be able to implement cdrecord? If it is, then the real issue here is that you want Linux to conform to the bus:device:lun world view, which it seems many people do not wish to do.
It does not allow libscg to find all devices.
Maybe it would be more constructive if you were to make a good argument for why the bus:device:lun view is better than /dev/*, but right now it seems to me that they are just two different ways of doing the same thing, and you prefer one way while the rest of the Linux developers prefer the other.
It would help if someone would give arguments why Linux does treat all SCSI devices equal, except for ATAPI transport based ones.