[PATCH mtd-utils v3] nandmarkbad: new util to mark blocks as bad

David Oberhollenzer david.oberhollenzer at sigma-star.at
Wed Sep 13 02:39:31 PDT 2017


Hi,


sorry for the late reply. After requesting the initial changes, I caught up on
the IRC discussion and came under the impression that it was pretty clear to
everyone that there are a few major issues with this kind of tool.

First of all, marking a block bad can currently not be undone. The changes this
tool makes are thus both destructive and irreversible.

If the MTD contains UBI data, UBI has no way of moving the data somewhere else
if a block just randomly goes bad completely out of the blue.

Besides, if the MTD is attached to an UBI device, UBI already takes care of
detecting blocks that go bad *over time* and takes care of marking them as
bad after moving the data somewhere else.

It might be interesting to have such a tool if nand scrub functionality was
added to the kernel (such as in [1]), allowing the changes done by the tool
to be undone. But even then, what would be the practical use case for
such a tool?


Thanks,

David


[1] http://patchwork.ozlabs.org/patch/764978/




More information about the linux-mtd mailing list