lkml.org 
[lkml]   [2004]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: PATCH: cdrecord: avoiding scsi device numbering for ide devices
Date
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

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

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.051 / U:13.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site