Re: [RFC][PATCH 1 of 4] Configfs is really sysfs

From: Daniel Phillips (phillips_at_istop.com)
Date: 08/31/05

  • Next message: Daniel Phillips: "Re: [RFC][PATCH 4 of 4] Configfs is really sysfs"
    To: Joel Becker <Joel.Becker@oracle.com>
    Date:	Wed, 31 Aug 2005 09:25:22 +1000
    
    

    On Wednesday 31 August 2005 09:13, Joel Becker wrote:
    > On Wed, Aug 31, 2005 at 08:54:39AM +1000, Daniel Phillips wrote:
    > > But it would be stupid to forbid users from creating directories in sysfs
    > > or to forbid kernel modules from directly tweaking a configfs namespace.
    > > Why should the kernel not be able to add objects to a directory a user
    > > created? It should be up to the module author to decide these things.
    >
    > This is precisely why configfs is separate from sysfs. If both
    > user and kernel can create objects, the lifetime of the object and its
    > filesystem representation is very complex. Sysfs already has problems
    > with people getting this wrong. configfs does not.

    Could you please give a specific case?

    > The fact that sysfs and configfs have similar backing stores
    > does not make them the same thing.

    It is not just the backing store, it is most of the code, all the structures,
    most of the functionality, a good deal of the bugs...

    Regards,

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


  • Next message: Daniel Phillips: "Re: [RFC][PATCH 4 of 4] Configfs is really sysfs"

    Relevant Pages

    • Re: 2.6 - sysfs sensor nameing inconsistency
      ... > kernel interface). ... > is currently available is sysfs. ... Then look at the device directory for the i2c-0 adapter: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 0/5] I8K driver facelift
      ... I've been trying to work out how to do this through dynamic sysfs ... selecting the right number of sensors to compile in seems arbitrary. ... It just doesn't seem like the Linux Kernel way of doing ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] kernel events layer
      ... > with names outside the kernel (e.g. the global URI space of whatever is ... > This is where the sysfs naming scheme breaks down. ... Let user-space map stuff around if we ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] dont allow / in class device names
      ... Bah, kernel API's should check there arguments. ... One of my peeve's about sysfs is ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • PROBLEM: Unable to add subdirectory: Ooops in sys_add_file, called from kobject_register
      ... I got an Ooops while trying to load a little kernel module I wrote. ... The module's sysfs handling/initialization is based on ... and x86_64 hardware. ... # ACPI Support ...
      (Linux-Kernel)