]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
ext4: create file systems with the encrypt feature as necessary
authorTheodore Ts'o <tytso@mit.edu>
Thu, 30 Jun 2022 14:46:37 +0000 (10:46 -0400)
committerZorro Lang <zlang@kernel.org>
Sat, 2 Jul 2022 13:31:10 +0000 (21:31 +0800)
commit9d14711da549815103dfa9f44f0fb24fe0c71c6c
treebee951804b536108c7da924dab318ab7470c9e7b
parent0a7a16123a678ae9d3954fdc87db6f7f520bd71e
ext4: create file systems with the encrypt feature as necessary

The linux kernel commit 5f41fdaea63d ("ext4: only allow
test_dummy_encryption when supported") the kernel will reject mounts
with the test_dummy_encryption option if the ext4 file system does not
have the encrypt feature enabled.

There are a handful of tests (ext4/003, ext4/035, ext4/306, and
generic/260) which will format the scratch file system using a
hard-coded set of mkfs.ext4 parameters ignoring the MKFS_OPTION that
is set by the file system test config.

For file system configs which includes test_dummy_encryption in
MOUNT_OPTIONS and "-O encrypt" in MKFS_OPTIONS, we need to test for
test_dummy_encryption and force the hard-coded mkfs options to enable
the encrypt feature.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/ext4/003
tests/ext4/035
tests/ext4/306
tests/generic/260