Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext4: show test_dummy_encryption mount option in /proc/mounts

When in effect, add "test_dummy_encryption" to _ext4_show_options() so
that it is shown in /proc/mounts and other relevant procfs files.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org

authored by

Eric Biggers and committed by
Theodore Ts'o
338affb5 b1f38217

+2
+2
fs/ext4/super.c
··· 2145 2145 SEQ_OPTS_PRINT("max_dir_size_kb=%u", sbi->s_max_dir_size_kb); 2146 2146 if (test_opt(sb, DATA_ERR_ABORT)) 2147 2147 SEQ_OPTS_PUTS("data_err=abort"); 2148 + if (DUMMY_ENCRYPTION_ENABLED(sbi)) 2149 + SEQ_OPTS_PUTS("test_dummy_encryption"); 2148 2150 2149 2151 ext4_show_quota_options(seq, sb); 2150 2152 return 0;