[PATCH] mtd/utils: sync with MTD ioctl interface rework to get rid of MEMGETOOBSEL/MEMSETOOBSEL

Thomas Gleixner tglx at linutronix.de
Tue Dec 6 05:30:20 EST 2005


On Fri, 2005-12-02 at 10:05 +0300, Vitaly Wool wrote:
> Hi,
> this patch reorganizes the MTD utls to
> - not use MEMGETOOBSEL/MEMSETOOBSEL ioctls as they're planned for 
> removal and anyway not needed
> - use MEMGETOOBAVAIL ioctl to get the number of available OOB bytes and 
> read/write OOB accordingly
> 
> Any input is most welcome.

1. Rendering the utils unusable for older kernels is wrong.

Its simple to handle this in the utils depending on the functionality
which is exposed by the kernel.


2. Your current approach prevents me to
- dump the raw flash content including OOB data
- write a nand image with given oob data

This is essential for troubleshooting and must still be possible
somehow.

	tglx







More information about the linux-mtd mailing list