erase questions

David Woodhouse dwmw2 at infradead.org
Thu Jun 7 07:12:41 EDT 2001


abraham at 2d3d.co.za said:
>  If ->len may span multiple blocks, must it be equal to the size of
> all the blocks (e.g. if you we're to erase a 2x 4k + 3x 8k consecutive
> blocks, must len be equal to 32k)?

The only constraints are that both <start> and <start+len> must be aligned 
with erase block boundaries.

If you have a chip with 8*8K erase blocks followed by 15*64K erase blocks, 
then an erase of length 72K at offset 56K is permitted - you'd erase the 
last of the small blocks and the first of the big blocks.

--
dwmw2






More information about the linux-mtd mailing list