kernel_optimize_test/fs/ubifs
Artem Bityutskiy 0611254760 UBIFS: fix corruption dump
In the 'ubifs_recover_leb()' function, when we find corrupted
empty space, we dump 8K starting from the offset where the last
node ends. This is OK if the corrupted empty space is somewhere
near that offset. But if the corruption is far at the end of the
LEB, we will dump all 0xFF bytes and complitely ignore the
interesting data. This is observed on a PPC ("kilauea") with
NOR flash.

This patch changes the behavior and teaches UBIFS to print only
interesting data. I.e., now we find where corruption starts and
start dumping from that offset.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: Adrian Hunter <Adrian.Hunter@nokia.com>
2009-07-09 09:19:39 +03:00
..
budget.c UBIFS: remove dead code 2009-05-29 14:38:37 +03:00
commit.c UBIFS: separate debugging fields out 2008-12-03 13:14:33 +02:00
compress.c UBIFS: fix sparse warnings 2008-12-31 14:13:24 +02:00
debug.c UBIFS: fix commentaries 2009-03-20 19:11:12 +02:00
debug.h UBIFS: add re-mount debugging checks 2009-01-26 12:54:11 +02:00
dir.c UBIFS: return error if link and unlink race 2009-05-19 11:01:31 +03:00
file.c Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6 2009-04-06 15:00:19 -07:00
find.c UBIFS: improve find function interface 2009-03-08 13:29:09 +02:00
gc.c UBIFS: fully sort GCed nodes 2009-03-20 19:12:00 +02:00
io.c UBIFS: fix 64-bit divisions in debug print 2009-07-05 18:45:18 +03:00
ioctl.c UBIFS: fix writing uncompressed files 2008-12-31 14:13:25 +02:00
journal.c UBIFS: fix commentaries 2009-03-20 19:11:12 +02:00
Kconfig trivial: fix typos/grammar errors in Kconfig texts 2009-03-30 15:22:01 +02:00
key.h UBIFS: amend key_hash return value 2009-03-08 13:29:41 +02:00
log.c UBIFS: fix commentaries 2009-03-20 19:11:12 +02:00
lprops.c UBIFS: add re-mount debugging checks 2009-01-26 12:54:11 +02:00
lpt_commit.c UBIFS: fix commentaries 2009-03-20 19:11:12 +02:00
lpt.c UBIFS: use nicer 64-bit math 2008-12-23 12:23:40 +02:00
Makefile UBIFS: include to compilation 2008-07-15 17:35:24 +03:00
master.c UBIFS: return sensible error codes 2009-01-29 16:22:54 +02:00
misc.h UBIFS: inline one-line functions 2008-09-30 11:12:56 +03:00
orphan.c UBIFS: ensure orphan area head is initialized 2009-01-26 12:54:11 +02:00
recovery.c UBIFS: fix corruption dump 2009-07-09 09:19:39 +03:00
replay.c UBIFS: small amendments in the LEB scanning code 2009-07-09 09:19:38 +03:00
sb.c UBIFS: add R/O compatibility 2009-03-26 16:36:20 +02:00
scan.c UBIFS: small amendments in the LEB scanning code 2009-07-09 09:19:38 +03:00
shrinker.c UBIFS: list usage cleanup 2009-02-17 12:45:22 +02:00
super.c UBIFS: allow more than one volume to be mounted 2009-07-05 18:45:19 +03:00
tnc_commit.c UBIFS: re-calculate min_idx_size after the commit 2008-12-23 12:24:05 +02:00
tnc_misc.c UBIFS: correct key comparison 2008-09-30 11:12:57 +03:00
tnc.c UBIFS: fix commentaries 2009-03-20 19:11:12 +02:00
ubifs-media.h UBIFS: add R/O compatibility 2009-03-26 16:36:20 +02:00
ubifs.h UBIFS: minor spelling and grammar fixes 2009-07-05 18:45:18 +03:00
xattr.c helpers for acl caching + switch to those 2009-06-24 08:17:07 -04:00