Re: Does sysfs really provides persistent hardware path to devices?

From: Greg KH (greg@kroah.com)
Date: Sat Jul 26 2003 - 11:50:56 EST


On Sat, Jul 26, 2003 at 08:36:13PM +0400, Andrey Borzenkov wrote:
>
> So apparently I cannot rely on sysfs to get reliable persistent information
> about physical location of devices.

That is correct, but you can get pretty close :)

> the point is - I want to create aliases that would point to specific slots.
> I.e. when I plug USB memory stick in upper slot on front panel I'd like to
> always create the same device alias for it.

Look at the udev announcement I posted to linux-kernel yesterday to see
how to do this.

thanks,

greg k-h
-
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/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:29 EST