diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-06-22 09:49:17 -0700 |
---|---|---|
committer | Artem Bityutskiy <dedekind1@gmail.com> | 2011-06-23 17:57:55 +0300 |
commit | c2c3cb928935c6c4f0ac3fa9390d41c3ee6abc51 (patch) | |
tree | 81365b10dd250ead22653362e47d54af2fea4ced /include | |
parent | 266061ebd5d72391f0a0e831b018e8fc7fea68a1 (diff) |
nanddump: add --bb=METHOD option
We have too many separate bad block handling methods:
--omitbad
--noskipbad
--skipbad
On top of these, we have the default option: that bad blocks are
replaced with 0xFF.
These options will be unified under --bb=METHOD. The end goal will be
something like:
----------------------------------------------------------------------------------------------
Old option New option Comment
----------------------------------------------------------------------------------------------
<default> --bb=padbad dump flash data, substituting 0xFF for any bad blocks
--noskipbad --bb=dumpbad dump flash data, including any bad blocks
--skipbad --bb=skipbad dump good data, completely skipping any bad blocks (new default)
--omitbad N/A very similar to `skipbad' (DEPRECTATED)
The BB options are all mutually exclusive, so we check that we do not
have more than one BB option explicitly enabled on the command line by
tracking whether or not a BB method has been set by the user.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions