patch to create sysfs char device nodes

Thomas Gleixner tglx at
Mon Jul 4 12:25:41 EDT 2005

On Tue, 2005-07-05 at 00:14 +0800, Coywolf Qi Hunt wrote:
> On 6/9/05, Paolo Galtieri <pgaltieri at> wrote:
> > Hi,
> >   with DEVFS going away I discovered that no character device nodes are
> > created if a flash device is present which contains filesystems. The
> > mtd-utils package requires the existence of character device nodes for
> > performing erase, lock and unlock functions.  The problem is that the
> > flash device driver has not been modified to use sysfs instead of devfs.
> > 
> > I have attached a patch to mtdchar.c which uses the sysfs interface to
> > create the appropriate nodes.  Please let me know if you have comments.
> I encountered the same problem days ago. Thanks for the patch. A patch
> based on yours will be sent in the next mail.

A reworked patch is in the MTD CVS and in the mtd-git tree already. No
need to send something


More information about the linux-mtd mailing list