[lkml]   [2003]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Does sysfs really provides persistent hardware path to devices?
    Andrey Borzenkov wrote:
    > As far as I can tell sysfs device names include logical bus numbers which
    > means, if hardware is added or removed it is possible names do change.


    The fact is, the kernel _cannot_ give persistent names to devices, because
    it is simply not a problem that is solvable with the resources the kernel
    has access to.

    For persistent naming, you need (a) user policy and (b) stable storage,
    neither of which the kernel has.

    GregKH has a "udev" setup that plugs into /sbin/hotplug and uses sysfs
    to implement stable naming. So sysfs is part of the picture, but it's
    not the whole answer.

    > 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.

    Right: what you're asking for is persistent per-device user policy.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-11-18 23:46    [W:0.021 / U:4.028 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site