]>
Commit | Line | Data |
---|---|---|
9d09275e GKH |
1 | From 338affb548c243d2af25b1ca628e67819350de6b Mon Sep 17 00:00:00 2001 |
2 | From: Eric Biggers <ebiggers@google.com> | |
3 | Date: Sat, 15 Sep 2018 14:28:26 -0400 | |
4 | Subject: ext4: show test_dummy_encryption mount option in /proc/mounts | |
5 | ||
6 | From: Eric Biggers <ebiggers@google.com> | |
7 | ||
8 | commit 338affb548c243d2af25b1ca628e67819350de6b upstream. | |
9 | ||
10 | When in effect, add "test_dummy_encryption" to _ext4_show_options() so | |
11 | that it is shown in /proc/mounts and other relevant procfs files. | |
12 | ||
13 | Signed-off-by: Eric Biggers <ebiggers@google.com> | |
14 | Signed-off-by: Theodore Ts'o <tytso@mit.edu> | |
15 | Cc: stable@vger.kernel.org | |
16 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
17 | ||
18 | --- | |
19 | fs/ext4/super.c | 2 ++ | |
20 | 1 file changed, 2 insertions(+) | |
21 | ||
22 | --- a/fs/ext4/super.c | |
23 | +++ b/fs/ext4/super.c | |
24 | @@ -2126,6 +2126,8 @@ static int _ext4_show_options(struct seq | |
25 | SEQ_OPTS_PRINT("max_dir_size_kb=%u", sbi->s_max_dir_size_kb); | |
26 | if (test_opt(sb, DATA_ERR_ABORT)) | |
27 | SEQ_OPTS_PUTS("data_err=abort"); | |
28 | + if (DUMMY_ENCRYPTION_ENABLED(sbi)) | |
29 | + SEQ_OPTS_PUTS("test_dummy_encryption"); | |
30 | ||
31 | ext4_show_quota_options(seq, sb); | |
32 | return 0; |