Re: Inconsistency in sysfs behavior?

From: Greg KH
Date: Wed Jan 07 2004 - 18:11:44 EST


On Wed, Jan 07, 2004 at 05:24:08PM -0500, Alan Stern wrote:
> The real problem was finding a way to indicate that the file was
> disconnected from its kobject. I did that by setting
> dentry->d_inode->i_mode to 0. (I didn't want to erase dentry->d_fsdata
> for fear that it might be needed somewhere else.) That's definitely not a
> good way; it was intended only for my proof-of-principle. No doubt
> someone else could do a much better job.

Because this is the hardest part, it's easier just to have the behavior
we currently have :)

thanks,

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