FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH v1 1/3] f2fs/015: clear MKFS_OPTIONS and MOUNT_OPTIONS
@ 2025-11-12 13:52 Joanne Chang
  2025-11-12 13:52 ` [PATCH v1 2/3] f2fs/016: add test cases for test_dummy_encryption mount option Joanne Chang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Joanne Chang @ 2025-11-12 13:52 UTC (permalink / raw)
  To: Zorro Lang, fstests; +Cc: Jaegeuk Kim, linux-f2fs-devel, Chao Yu, Joanne Chang

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>
---
 tests/f2fs/015     | 3 +++
 tests/f2fs/015.out | 8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/tests/f2fs/015 b/tests/f2fs/015
index 73ac3d82..6a7a582c 100755
--- a/tests/f2fs/015
+++ b/tests/f2fs/015
@@ -103,6 +103,9 @@ options=(
 	"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))]}"
diff --git a/tests/f2fs/015.out b/tests/f2fs/015.out
index 8d6712f0..3df29436 100644
--- a/tests/f2fs/015.out
+++ b/tests/f2fs/015.out
@@ -38,7 +38,7 @@ Option#34: inline_xattr :
 Option#36: noinline_xattr : 
 0
 Option#38: inline_xattr_size=400 : 
-0
+32
 Option#40: inline_data : 
 0
 Option#42: noinline_dentry : 
@@ -120,11 +120,11 @@ Option#116: fsync_mode=strict :
 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 : 
-- 
2.51.2.1041.gc1ab5b90ca-goog


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-15 10:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12 13:52 [PATCH v1 1/3] f2fs/015: clear MKFS_OPTIONS and MOUNT_OPTIONS Joanne Chang
2025-11-12 13:52 ` [PATCH v1 2/3] f2fs/016: add test cases for test_dummy_encryption mount option Joanne Chang
2025-11-14  1:33   ` Chao Yu
2025-11-15  6:49     ` Zorro Lang
2025-11-15 10:57       ` Chao Yu
2025-11-12 13:52 ` [PATCH v1 3/3] f2fs/{019,020}: clear MOUNT_OPTIONS alongside MKFS_OPTIONS Joanne Chang
2025-11-14  1:34   ` Chao Yu
2025-11-14  1:30 ` [PATCH v1 1/3] f2fs/015: clear MKFS_OPTIONS and MOUNT_OPTIONS Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox