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

Vitaly Wool vwool at ru.mvista.com
Tue Dec 6 05:36:28 EST 2005


Thomas Gleixner wrote:

>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.
>  
>
Makes sense to me.

>
>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.
>
>  
>
Lemme disagree with you here. Raw OOB content-related stuff is not IMHO 
the thing to debug from userland.
Suggest prinitng out the raw OOB contents for MTD_DEBUG_LEVEL3 instead.

Vitaly





More information about the linux-mtd mailing list