Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices

Måns Rullgård
2004-08-09T12:16:31Z

Helge Hafting <helge.hafting@hist.no> writes:

> If you want to provide a multi-platform app with an acceptable user
> interface, then you have to cope with the different adressing
> schemes. If that is too much work, consider taking patches from
> volunteers similiar to how the linux kernel and many other big
> projects are managed. I am sure you can get someone to write
> "perfect" support for /dev/XYZ on linux for you, if you're willing
> to apply such a patch.

How's this for a start?

--- libscg/scsi-linux-sg.c~ 2004-01-14 18:54:01 +01:00
+++ libscg/scsi-linux-sg.c 2004-08-09 14:05:03 +02:00
@@ -476,10 +476,6 @@
b = device[7] - 'a';
if (b < 0 || b > 25)
b = -1;
- }
- if (scgp->overbose) {
- js_fprintf((FILE *)scgp->errfile,
- "Warning: Open by 'devname' is unintentional and not supported.\n");
}
/* O_NONBLOCK is dangerous */
f = open(device, O_RDWR | O_NONBLOCK);

--
Måns Rullgård
mru@kth.se