Currently, residual options can interfere with checking the mount
behavior of the listed MKFS_OPTIONS and MOUNT_OPTIONS. For example,
"Option#120: test_dummy_encryption" should fail with the listed
options but succeeds if “MKFS_OPTIONS=encrypt” is preset. By
explicitly clearing MKFS_OPTIONS and MOUNT_OPTIONS, the test’s
reliability can be improved.
f2fs/015.out is also updated to expect failure for cases that require
additional mkfs attributes to mount.
Signed-off-by: Joanne Chang <joannechien@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
"norecovery,ro" "" \
)
+# 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))]}"
Option#36: noinline_xattr :
0
Option#38: inline_xattr_size=400 :
-0
+32
Option#40: inline_data :
0
Option#42: noinline_dentry :
Option#118: fsync_mode=nobarrier :
0
Option#120: test_dummy_encryption :
-0
+32
Option#122: test_dummy_encryption=v1 :
-0
+32
Option#124: test_dummy_encryption=v2 :
-0
+32
Option#126: checkpoint=enable :
0
Option#128: checkpoint=disable :