Re: Is configfs the right solution for configuration based fs?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Berg <johannes@...>
Cc: Luis R. Rodriguez <mcgrof@...>, linux-wireless <linux-wireless@...>, linux kernel <linux-kernel@...>, Greg KH <greg@...>, Joel Becker <joel.becker@...>, Satyam Sharma <ssatyam@...>, Felix Fietkau <nbd@...>, Al Viro <viro@...>, H. Peter Anvin <hpa@...>
Date: Monday, June 9, 2008 - 8:12 pm

On Mon, 2008-06-09 at 11:03 +0200, Johannes Berg wrote:


What's the first one, sysfs..?  ioctl (eww..)?  I do think they solve
different problems, both have their place.  IMHO sysfs is forced to do
configuration in some situations where it just doesn't fit.  Prolly 'coz
sysfs have the easy __DEVICE_ATTR kinda macros where as configfs takes
more effort to get flying.


Not sure I see the argument here, why would you want to change the flag
name?  If you decide the old name is stupid then can't you just alias
the old name to the new one?

String handling is always a bit iffy, though it has to be done
somewhere, either in kernel or in your "good userspace tool which is
scriptable".  I'd prefer to have it done once, well, in the kernel and
not have to ship more software than necessary.


It has all the  mkdir stuff I can think of, can you elaborate?  It
doesn't have the commitable object support but I just have an 'enabled'
attribute in there to switch the thing on and off.

My main problem with configfs (and I've done a few things with it) is
the complexity of the thing, particularly config_group vs config_item vs
config_attribute.  I'd quite like to see just config_group representing
"directory" type objects and attributes representing, well, attributes
in the dir.

That and a bit of wider use would probably see configfs growing helper
macros like those which make sysfs attributes a piece of cake to
implement.

And the trival problem that, ISTR, failing the make_group method always
reports -ENOMEM to userspace, no matter what the actual problem was.  I
think I had a patch around to pass the error code from make_group back
up through to userspace, I wonder what happened to that...

	--Ben.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Is configfs the right solution for configuration based fs?, Luis R. Rodriguez, (Sun Jun 8, 5:25 pm)
Re: Is configfs the right solution for configuration based fs?, Ben Nizette, (Mon Jun 9, 8:12 pm)
Re: Is configfs the right solution for configuration based fs?, Luis R. Rodriguez, (Tue Jun 10, 4:12 am)