JFFS1/MTD bug-fixes

Jörn Engel joern at wohnheim.fh-wedel.de
Tue Dec 4 17:44:46 EST 2001


> Yes, I've looked through Jörn Engel's code. Our modifications are less
> significant and are based on other goals in mind.
> Primary goal was to allow for creating Flash partitions that consist of
> non-consequent sectors. For instance, the user may wish to chose sector
> 2 for storing some binary data and use sectors 1,3,4..... as a single
> JFFS partition.
> Another goal was a possibility of flexible (re-)configration of the
> partitions, without having to change any C code. Supported methods are:
> build-time (via a CONFIG_... define), boot-time (via a kernel command
> line), and run-time (via an mtdchar IOCTL command). With all the three
> methods, the user uses a string notation to specify desired layout of the
> partitions. For instance, "0,3-8:1,2:9-25" means three partitions, with
> sectors 0 and 3 to 8 belonging to the first partition, 1 and 2 to the
> second, and 9 to 25 to the third.

We already have partitioning that is independent of the kernels normal
partitioning. Now you send in the equivalent of the logical volume
manager. The mtd code is getting there. :)

What are your reasons to use mtdchar ioctl()s for runtime
repartitioning? This should be pretty independent of the char device,
(caching) block device or whatever the future might still bring. Why
not a /proc interface?

Apart from that the design looks pretty sane. I will look through the
code and try to merge it with mine as soon as my workload drops to an
acceptable value again, most likely around christmas.


More information about the linux-mtd mailing list