[PATCH v2 09/10] mtd-utils: nandwrite: full 64-bit support w/ libmtd
Artem Bityutskiy
dedekind1 at gmail.com
Sat Nov 13 06:53:47 EST 2010
On Wed, 2010-11-10 at 22:39 -0800, Brian Norris wrote:
> Several ioctls are replaced with libmtd calls which should give us 64-bit
> support for large devices. libmtd mostly provides drop-in replacements
> for the functionality we need. However, when we require erasure of a
> badly-written block, mtd_erase() only erases a single block, whereas
> MEMERASE could erase a larger region. In nandwrite, we may have a "virtual
> blocksize" of more than one (when blockalign > 1). Thus, I added a loop
> for this case.
You could as well just introduce another libmtd helper - would be
cleaner, IMO.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list