aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2022-06-23 11:41:13 -0700
committerZorro Lang <zlang@kernel.org>2022-06-24 23:16:57 +0800
commitfc8c0d9f44dc53e6912fa95793bc88968dc9f188 (patch)
treeef0d8c0fe4ba8d37bea6d5983ac2989b9319070f
parent09f420da65a6a642657e98816b276cc35c6bc40c (diff)
downloadxfstests-dev-fc8c0d9f44dc53e6912fa95793bc88968dc9f188.tar.gz
ext4/053: test changing test_dummy_encryption on remount
The test_dummy_encryption mount option isn't supposed to be settable or changeable via a remount, so add test cases for this. This is a regression test for a bug that was introduced in Linux v5.17 and fixed in v5.19-rc3 by commit 85456054e10b ("ext4: fix up test_dummy_encryption handling for new mount API"). Reviewed-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-xtests/ext4/0533
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ext4/053 b/tests/ext4/053
index 23e553c5b2..555e474ef8 100755
--- a/tests/ext4/053
+++ b/tests/ext4/053
@@ -685,6 +685,9 @@ for fstype in ext2 ext3 ext4; do
mnt test_dummy_encryption=v2
not_mnt test_dummy_encryption=bad
not_mnt test_dummy_encryption=
+ # Can't be set or changed on remount.
+ mnt_then_not_remount defaults test_dummy_encryption
+ mnt_then_not_remount test_dummy_encryption=v1 test_dummy_encryption=v2
do_mkfs -O ^encrypt $SCRATCH_DEV ${SIZE}k
fi
not_mnt test_dummy_encryption