Bo Xie <
xiebopublic@...> wrote:
> I know cdrecord only officially support 'scsibus,target,lun'.
>
> My program only has 'devname', and I want to add a burn CD function
> using cdrecord. Then I need to find a way to convert 'devname' to
> 'scsibus,target,lun' by myself.
'scsibus,target,lun' is the "devname", guess that you are talking about a
"traditional UNI /dev/ driver entry".
Run cdrecord -scanbus.
If you only have one drive in your system, omit the dev= parameter.
The problem on Linux is that that there is no clean orthogonal SCSI subsystem
in the Linux kernel that supports all SCSI devices in a single driver
framework. Some drives (including CD/DVD-weiters) even may have more than
driver for a single piece of hardware.
Even on a cleanly written OS, there may be SCSI devices that have no own driver
and thus may only accessed by talking through the SCSI generic layer.
Other OS do not implement "visible" "native device drivers" at all and thus do
not allow you to find such a name at all.
As you see, there is no 1:1 relation between the portable OS independent SCSI
device specifyer and what you may be looking for.
I recommend you to change your program.....
Jörg
--
EMail:
joerg@... (home) Jörg Schilling D-13353 Berlin
js@... (uni)
joerg.schilling@... (work) Blog:
http://schily.blogspot.com/ URL:
http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
Cdrecord-support mailing list
Cdrecord-support@...
https://lists.berlios.de/mailman/listinfo/cdrecord-support