projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb66b4
)
UBIFS: improve error reporting when reading bad node
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Sun, 22 Aug 2010 18:27:30 +0000
(21:27 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Mon, 30 Aug 2010 07:19:09 +0000
(10:19 +0300)
When an error happens during validation of read node, the typical situation is that
the LEB we read is unmapped (due to some bug). It is handy to include the mapping
status into the error message.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ubifs/io.c
b/fs/ubifs/io.c
index bcf5a16f30bb26f865e49f27124dd0856a2f85d2..9432431bf595242a2983fe55dca9550933478c7b 100644
(file)
--- a/
fs/ubifs/io.c
+++ b/
fs/ubifs/io.c
@@
-815,7
+815,8
@@
int ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len,
return 0;
out:
- ubifs_err("bad node at LEB %d:%d", lnum, offs);
+ ubifs_err("bad node at LEB %d:%d, LEB mapping status %d", lnum, offs,
+ ubi_is_mapped(c->ubi, lnum));
dbg_dump_node(c, buf);
dbg_dump_stack();
return -EINVAL;