patch to create sysfs char device nodes

Coywolf Qi Hunt coywolf at gmail.com
Mon Jul 4 12:14:05 EDT 2005


On 6/9/05, Paolo Galtieri <pgaltieri at mvista.com> 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.

-- 
Coywolf Qi Hunt
http://ahbl.org/~coywolf/




More information about the linux-mtd mailing list