[lkml]   [2008]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[RFC PATCHES] Re: Is configfs the right solution for configuration based fs?
    On Tue, Jun 10, 2008 at 10:12:52AM +1000, Ben Nizette wrote:

    Thanks, Ben, for providing constructive comments. I know I
    replied later with some of the known issues. Here are some tentative
    solutions! (Why now, you ask? I just finished up something and had a
    free moment)

    > 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.
    > 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.

    Ask, and ye shall receive. I've actually been meaning to look
    at this for a while. Please check out the branch configfs-attr-macros
    at my git tree. Actually, here is the configfs.h with macros, and
    configfs_example_macros.c using them. Let me know if this fits the



    Compare and contrast with the original configfs_example.c (now
    configfs_example_explicit.c on that branch). The diff is available

    > 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...

    I've also attacked this one. The change is in the
    make-item-errors branch. It's already scheduled for linux-next. Diff
    available here:;a=commitdiff;h=34fbb494fecfd82bcbf9ed698ef305500228a84c



    Life's Little Instruction Book #226

    "When someone hugs you, let them be the first to let go."

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

     \ /
      Last update: 2008-06-19 05:03    [W:0.032 / U:111.544 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site