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>
"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))]}"
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