[linux-usb-devel] Re: IDs

2003-01-07 Thread Patrick Mansfield
On Tue, Jan 07, 2003 at 07:54:11PM +0100, [EMAIL PROTECTED] wrote: > > If we had a complete white/black list of devices with/without a unique id, > > there would be no ambiguity. > > You mean for the devices on the white list. > But most devices will not be on the white list. I mean if it is not

[linux-usb-devel] Re: IDs

2003-01-07 Thread Andries . Brouwer
>> The id is not suitable as a user space name. Moreover, >> it is a heuristic only, and user space needs unambiguous names. > If we had a complete white/black list of devices with/without a unique id, > there would be no ambiguity. You mean for the devices on the white list. But most devices wil

[linux-usb-devel] Re: IDs

2003-01-07 Thread Patrick Mansfield
On Tue, Jan 07, 2003 at 11:55:00AM +0100, [EMAIL PROTECTED] wrote: > > But, we don't have to truncate, we should just allocate as many bytes as > > we need, and store the information. > > > And, the sysfs name should not store the id. > > OK. It seems that we are in total agreement. > Time for

Re: [linux-usb-devel] Re: IDs

2003-01-07 Thread Greg KH
On Tue, Jan 07, 2003 at 11:55:00AM +0100, [EMAIL PROTECTED] wrote: > > The sysfs tree does not contain device nodes. And that will remain true. > Do you plan a user space utility that figures out that > the ID "SHP CD-Writer+ 8200 [" belongs to /dev/hdd > which also is /dev/sr0? Yes. Well

[linux-usb-devel] Re: IDs

2003-01-07 Thread Andries . Brouwer
> But, we don't have to truncate, we should just allocate as many bytes as > we need, and store the information. > And, the sysfs name should not store the id. OK. It seems that we are in total agreement. Time for the next question. An id is constructed, that in many cases identifies something.

[linux-usb-devel] Re: IDs

2003-01-06 Thread Patrick Mansfield
On Tue, Jan 07, 2003 at 03:19:45AM +0100, [EMAIL PROTECTED] wrote: > > We can tell if the id sdev->name should be unique by looking at > > the first byte (it is not unique if the value is 'Z'), > > SCSI_UID_UNKNOWN. > > Such things are nontrivial. Yes ... > And where we have heuristics only, it

[linux-usb-devel] Re: IDs

2003-01-06 Thread Andries . Brouwer
> We can tell if the id sdev->name should be unique by looking at > the first byte (it is not unique if the value is 'Z'), > SCSI_UID_UNKNOWN. Such things are nontrivial. % cat /sysfs/devices/ide-scsi/0:0:0:0/0:0:0:0/name SHP CD-Writer+ 8200 [ Here the serial number consists of the '[' only

[linux-usb-devel] Re: IDs

2003-01-06 Thread Patrick Mansfield
Andries - On Tue, Jan 07, 2003 at 01:00:47AM +0100, [EMAIL PROTECTED] wrote: > Maybe I should ask you to explain more in detail what purpose > you have in mind. If I read your code and hear you talking > it sounds like you would like to have a string identifying > the device. But in many cases no