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

From: Måns Rullgård
Date: Mon Aug 09 2004 - 07:22:42 EST


Helge Hafting <helge.hafting@xxxxxxx> 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@xxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/