Re: [RFC] fix sysfs symlinks

Greg KH
2004-04-17T00:17:58Z

On Sat, Apr 17, 2004 at 12:46:02AM +0100, viro@parcelfarce.linux.theplanet.co.uk wrote:
> On Fri, Apr 16, 2004 at 03:37:32PM -0700, Greg KH wrote:
>
> > Since when did we ever assume that renaming a kobject would rename the
> > symlinks that might point to it? Renaming kobjects are a hack that way,
> > if you use them, you need to be aware of this limitation.
>
> Since we assume that these symlinks actually reflect some relationship
> between the objects and are really needed for something. If they are
> not - why the hell do we keep them at all?

They show a relationship, yes. And it would be nice to be able to try
to keep that link around if possible.

But what devices currently have this problem? I only thought network
devices renamed themselves, and there are no symlinks to those devices,
only out from it. In grepping the tree, they seem like the only users
of this functionality, and they would never need the symlink "reaname".

thanks,

greg k-h