Commit ccb3eba7 authored by Artem Bityutskiy's avatar Artem Bityutskiy

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: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 2242c689
...@@ -62,6 +62,7 @@ void ubifs_ro_mode(struct ubifs_info *c, int err) ...@@ -62,6 +62,7 @@ void ubifs_ro_mode(struct ubifs_info *c, int err)
{ {
if (!c->ro_media) { if (!c->ro_media) {
c->ro_media = 1; c->ro_media = 1;
c->no_chk_data_crc = 0;
ubifs_warn("switched to read-only mode, error %d", err); ubifs_warn("switched to read-only mode, error %d", err);
dbg_dump_stack(); dbg_dump_stack();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment