projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2242c68
)
UBIFS: check data CRC when in error state
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Mon, 8 Sep 2008 13:07:01 +0000
(16:07 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Tue, 30 Sep 2008 08:12:57 +0000
(11:12 +0300)
When UBIFS switches to R/O mode because of an error,
it is reasonable to enable data CRC checking.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/io.c
patch
|
blob
|
history
diff --git
a/fs/ubifs/io.c
b/fs/ubifs/io.c
index 40e2790b62ceedea2f8075a1a6a78a2a734be0cd..01682713af69e9e4f20b9648cfc4f74380da2da8 100644
(file)
--- a/
fs/ubifs/io.c
+++ b/
fs/ubifs/io.c
@@
-62,6
+62,7
@@
void ubifs_ro_mode(struct ubifs_info *c, int err)
{
if (!c->ro_media) {
c->ro_media = 1;
+ c->no_chk_data_crc = 0;
ubifs_warn("switched to read-only mode, error %d", err);
dbg_dump_stack();
}