diff options
author | Richard Genoud <richard.genoud@gmail.com> | 2014-06-24 12:12:59 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-06-25 17:37:01 +0200 |
commit | f17fbe1d365d935b486ece2172043d3eeb8a999b (patch) | |
tree | 32ee37903aac28548ff3cea97da046b95b6f0022 /e2fsprogs/old_e2fsprogs/lsattr.c | |
parent | cbf3bfa57a419202c2bc26f3ff8ae21d3d3bf8b2 (diff) | |
download | busybox-f17fbe1d365d935b486ece2172043d3eeb8a999b.tar.gz |
nanddump: add options --bb=skipbad and padbad
In mtd-utils, the bad block options changed in favor of
--bb=[skipbad|padbad|dumpbad] and omitbad has been removed.
This patch add the --bb=skipbad and padbad methods to busybox' nanddump.
padbad is the current default behaviour.
The difference between skipbad and omitbad is this one:
On a 16K block NAND, if the 1st block of mtd0 is bad, we'll have:
nanddump -b -l 16384 /dev/mtd0 | wc -c
0
nanddump --bb=skipbad -l 16384 /dev/mtd0 | wc -c
16384 <- data from 1st good block
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/lsattr.c')
0 files changed, 0 insertions, 0 deletions