Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae4d4491 authored by Nikhilesh Reddy's avatar Nikhilesh Reddy Committed by Gerrit - the friendly Code Review server
Browse files

ubifs: Check data crc by default



The current behavior of ubifs to to only check data crc
if the mount option for check_data_crc is enabled, with
the default behavior being not to check.

Enable the checking of the data crc by default to catch corruption
early on.

Change-Id: I5dcc0c87ec2de8851fc10bfcb4e8716ede69455d
Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent d5fa91ad
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1986,7 +1986,9 @@ static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi)
		INIT_LIST_HEAD(&c->old_buds);
		INIT_LIST_HEAD(&c->orph_list);
		INIT_LIST_HEAD(&c->orph_new);
		c->no_chk_data_crc = 1;

		c->mount_opts.chk_data_crc = 2;
		c->no_chk_data_crc = 0;

		c->highest_inum = UBIFS_FIRST_INO;
		c->lhead_lnum = c->ltail_lnum = UBIFS_LOG_LNUM;