commit | ccb3eba72453a3b5aa37dda02e3a690449e3d229 | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Mon Sep 08 16:07:01 2008 +0300 |
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Tue Sep 30 11:12:57 2008 +0300 |
tree | b0e2b094126ede0e69ea0c3820872d9a1dff2883 | |
parent | 2242c689ecc390fb4719f595751351d1ecc5c409 [diff] [blame] |
UBIFS: check data CRC when in error state 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>
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c index 40e2790..0168271 100644 --- a/fs/ubifs/io.c +++ b/fs/ubifs/io.c
@@ -62,6 +62,7 @@ { 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(); }