From: Joanne Chang <joannechien@google.com>
To: Zorro Lang <zlang@kernel.org>, fstests@vger.kernel.org
Cc: Jaegeuk Kim <jaegeuk@kernel.org>,
linux-f2fs-devel@lists.sourceforge.net,
Chao Yu <chao@kernel.org>, Joanne Chang <joannechien@google.com>
Subject: [PATCH v1 2/3] f2fs/016: add test cases for test_dummy_encryption mount option
Date: Wed, 12 Nov 2025 13:52:22 +0000 [thread overview]
Message-ID: <20251112135223.3467852-2-joannechien@google.com> (raw)
In-Reply-To: <20251112135223.3467852-1-joannechien@google.com>
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>
---
tests/f2fs/016 | 6 ++++++
tests/f2fs/016.out | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/tests/f2fs/016 b/tests/f2fs/016
index 800f75fc..a6df827d 100755
--- a/tests/f2fs/016
+++ b/tests/f2fs/016
@@ -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))]}"
diff --git a/tests/f2fs/016.out b/tests/f2fs/016.out
index a8c96972..5ff116a7 100644
--- a/tests/f2fs/016.out
+++ b/tests/f2fs/016.out
@@ -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
--
2.51.2.1041.gc1ab5b90ca-goog
next prev parent reply other threads:[~2025-11-12 13:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-12 13:52 [PATCH v1 1/3] f2fs/015: clear MKFS_OPTIONS and MOUNT_OPTIONS Joanne Chang
2025-11-12 13:52 ` Joanne Chang [this message]
2025-11-14 1:33 ` [PATCH v1 2/3] f2fs/016: add test cases for test_dummy_encryption mount option 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251112135223.3467852-2-joannechien@google.com \
--to=joannechien@google.com \
--cc=chao@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=zlang@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox