Commit 45f1a9c3 authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Theodore Ts'o

ext4: enable block_validity by default

Enable by default the block_validity feature, which checks for
collisions between newly allocated blocks and critical system
metadata.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 88fe1acb
...@@ -3519,8 +3519,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) ...@@ -3519,8 +3519,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
set_opt(sb, ERRORS_CONT); set_opt(sb, ERRORS_CONT);
else else
set_opt(sb, ERRORS_RO); set_opt(sb, ERRORS_RO);
if (def_mount_opts & EXT4_DEFM_BLOCK_VALIDITY) /* block_validity enabled by default; disable with noblock_validity */
set_opt(sb, BLOCK_VALIDITY); set_opt(sb, BLOCK_VALIDITY);
if (def_mount_opts & EXT4_DEFM_DISCARD) if (def_mount_opts & EXT4_DEFM_DISCARD)
set_opt(sb, DISCARD); set_opt(sb, DISCARD);
......
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