]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
f2fs/016: add test cases for test_dummy_encryption mount option
authorJoanne Chang <joannechien@google.com>
Wed, 12 Nov 2025 13:52:22 +0000 (13:52 +0000)
committerZorro Lang <zlang@kernel.org>
Sat, 15 Nov 2025 07:12:01 +0000 (15:12 +0800)
Add test cases to verify f2fs's support for different versions of the
"test_dummy_encryption" mount option.

To ensure test robustness, the MKFS_OPTIONS and MOUNT_OPTIONS are
cleared. This prevents additional options from interfereing with the
test results.

Signed-off-by: Joanne Chang <joannechien@google.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/f2fs/016
tests/f2fs/016.out

index 800f75fc0be96b88c27903260c0e7d0275cce7b6..a6df827d1b42425c26c8fa9d3f5bf75b2f50f94d 100755 (executable)
@@ -35,8 +35,14 @@ options=(
        "compress_mode=fs"              "extra_attr,compression"        \
        "compress_mode=user"            "extra_attr,compression"        \
        "compress_cache"                "extra_attr,compression"        \
+       "test_dummy_encryption"         "encrypt"                                       \
+       "test_dummy_encryption=v1"      "encrypt"                                       \
+       "test_dummy_encryption=v2"      "encrypt"                                       \
 )
 
+# remove all mkfs/mount options to avoid affecting results
+export MKFS_OPTIONS=""
+export MOUNT_OPTIONS=""
 for ((i=0;i<${#options[@]};i=i+2))
 do
        echo "Option#$i: ${options[$i]} : ${options[$((i+1))]}"
index a8c969725b86887d35becd414b26811c4e2809db..5ff116a7493b427b20b0a5cc911139d0ff327fb9 100644 (file)
@@ -31,3 +31,9 @@ Option#28: compress_mode=user : extra_attr,compression
 0
 Option#30: compress_cache : extra_attr,compression
 0
+Option#32: test_dummy_encryption : encrypt
+0
+Option#34: test_dummy_encryption=v1 : encrypt
+0
+Option#36: test_dummy_encryption=v2 : encrypt
+0