From: Daniel Phillips <phillips@istop.com>
To: Greg KH <greg@kroah.com>
Cc: Joel Becker <Joel.Becker@oracle.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Permissions don't stick on ConfigFS attributes
Date: Sat, 20 Aug 2005 15:41:35 +1000 [thread overview]
Message-ID: <200508201541.36101.phillips@istop.com> (raw)
In-Reply-To: <20050820033337.GA1173@kroah.com>
On Saturday 20 August 2005 13:33, Greg KH wrote:
> On Sat, Aug 20, 2005 at 01:23:29PM +1000, Daniel Phillips wrote:
> > On Saturday 20 August 2005 13:01, Greg KH wrote:
> > > On Sat, Aug 20, 2005 at 10:50:51AM +1000, Daniel Phillips wrote:
> > > > So: Integrate with sysfs.
> > >
> > > No, don't. Do you think that Joel would not have already worked with
> > > the sysfs people prior to submitting this? No, he did, and we all
> > > agreed that it should be kept separate.
> >
> > Would you care to recap the reasoning, please?
>
> They do two different things, and people interact with them in two
> different ways.
There is only one essential difference: the user can create nodes in configfs.
Otherwise, the user does the same with both: display things and tweak things.
The big difference is in your mind, not the user's mind. And look above,
you're saying "don't patch configfs, copy sysfs instead" and in the next
breath you're saying "but oh they're completely different".
> > > > Terminology skew. It is a very bad idea to call your configfs files
> > > > "attributes".
> > >
> > > That's what sysfs calls its files. They used the same naming scheme
> > > there. This is nothing that a user ever cares about or sees.
> >
> > It's wrrrrronnnggg. The best you can defend this with is "it's
> > entrenched".
>
> Will a user ever see the word "attribute"?
For example:
http://linuxcommand.org/man_pages/udev8.html
> Also, these files represent
> attributes of the main object in which they are attached to. Hence the
> name.
Yes, regrettable. "Properties" would be tasteful and avoid the collision.
> > > > Memory requirements. ConfigFS pins way too much kernel memory for
> > > > inodes and dentries.
> > >
> > > configfs is not going to have that many nodes at all in memory
> > > (compared to sysfs), so I don't think this is a big problem.
> >
> > The current bloat is unconscionable, for the amount of data that is
> > carried. Are you arguing against fixing it? And what makes you think
> > configfs will never have lots of nodes?
>
> Doesn't it currently work the same way as sysfs with the backing store
> being created on the fly?
I haven't look at sysfs yet, but the backing store, which is just a tree of
configfs_dirents that point at the corresponding dentries, is created on the
fly. Currently, directories are all pinned while only files are transient.
There is no good reason for this as far as I can see, directories can be
transient too.
What I did notice is that my fix for permissions is wrong. I plugged the
updated permissions back into the descriptor for all attributes of a config
item - not what we want, the update needs to be restricted to just one
attribute. The right fix is to store the updated permissions in the
configfs_dirent, which already has the field, it is just not used
consistently. See, the code is trying to say something to us, I think the
message is "read me!"
> If not, it should be pretty simple to convert
> over if people are really worried about memory consumption, but again,
> why don't we see how many nodes are really used on most systems (don't
> want to add more complexity and kernel code if you never really need
> it.)
It will not be hard to fix, the framework seems to be there already. As far
as complexity goes, it is trivial and the payoff is significant. Cleaning up
a bunch of little stylistic things will have a bigger effect on readability.
Regards,
Daniel
next prev parent reply other threads:[~2005-08-20 5:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-20 0:50 [PATCH] Permissions don't stick on ConfigFS attributes Daniel Phillips
2005-08-20 1:22 ` Jon Smirl
2005-08-20 6:21 ` Daniel Phillips
2005-08-20 3:01 ` Greg KH
2005-08-20 3:23 ` Daniel Phillips
2005-08-20 3:33 ` Greg KH
2005-08-20 5:41 ` Daniel Phillips [this message]
2005-08-20 6:31 ` Joel Becker
2005-08-20 7:35 ` Daniel Phillips
2005-08-20 21:09 ` [PATCH] Permissions don't stick on ConfigFS attributes (revised) Daniel Phillips
2005-08-22 4:49 ` [PATCH] Permissions don't stick on ConfigFS attributes Eric W. Biederman
2005-08-22 19:44 ` Daniel Phillips
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200508201541.36101.phillips@istop.com \
--to=phillips@istop.com \
--cc=Joel.Becker@oracle.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox