[lkml]   [2008]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC PATCHES] Re: Is configfs the right solution for configuration based fs?
On Sat, Jun 21, 2008 at 11:03:49AM +1000, Ben Nizette wrote:
> You know, I think you've about covered the boilerplate work. Apart from
> that, well it took me a millisecond to work out what the point of
> config_{group,item}s was; I went in kinda expecting to see one struct
> for directories and one for attributes. In fact I still not sure I can
> explain the need for config_items separate from config_groups. Little
> help? :-)

Groups can create children, items cannot. Think of kset vs
kobject, which is where it came from.
Don't worry about directories vs files. The view from the
client subsystem isn't about filesystem objects. It's about a hierarchy
of items. An item is a sigle entity. It can have attributes. A group
is an item that can have children.
The fact that you access it via a filesystem is separate. We
could have created a system call instead - the callbacks to your client
subsystem would have been the same. Does that help?



Life's Little Instruction Book #511

"Call your mother."

Joel Becker
Principal Software Developer
Phone: (650) 506-8127

 \ /
  Last update: 2008-06-21 04:07    [W:0.065 / U:0.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site