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 1/2] f2fs/015: Fix mount syntax for disabling jquota
Date: Wed, 13 May 2026 03:20:08 +0000 [thread overview]
Message-ID: <20260513032009.2300435-1-joannechien@google.com> (raw)
F2FS has removed the trailing "=" in the mount options for disabling
user, group, and project journaled quotas. To maintain compatibility,
update the test cases in f2fs/015 to try the new syntax first, and fall
back to the legacy syntax if the initial mount attempt fails.
Signed-off-by: Joanne Chang <joannechien@google.com>
---
tests/f2fs/015 | 13 +++++++++----
tests/f2fs/015.out | 6 +++---
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/tests/f2fs/015 b/tests/f2fs/015
index 81ea9818..54cada4a 100755
--- a/tests/f2fs/015
+++ b/tests/f2fs/015
@@ -66,9 +66,9 @@ options=(
"usrjquota=ausrquota" "" \
"grpjquota=agrpquota" "" \
"prjjquota=aprjquota" "" \
- "usrjquota=" "" \
- "grpjquota=" "" \
- "prjjquota=" "" \
+ "usrjquota" "" \
+ "grpjquota" "" \
+ "prjjquota" "" \
"usrjquota=ausrquota" "extra_attr,quota,project_quota" \
"grpjquota=agrpquota" "extra_attr,quota,project_quota" \
"prjjquota=aprjquota" "extra_attr,quota,project_quota" \
@@ -119,7 +119,12 @@ do
else
_scratch_mkfs >> $seqres.full || _fail "mkfs failed"
fi
- _try_scratch_mount "-o ${options[$i]}" >> $seqres.full 2>&1
+ if [[ "${options[$i]}" == *jquota ]]; then
+ _try_scratch_mount "-o ${options[$i]}" >> $seqres.full 2>&1 || \
+ _try_scratch_mount "-o ${options[$i]}=" >> $seqres.full 2>&1
+ else
+ _try_scratch_mount "-o ${options[$i]}" >> $seqres.full 2>&1
+ fi
echo $?
_scratch_unmount >> $seqres.full 2>&1
done
diff --git a/tests/f2fs/015.out b/tests/f2fs/015.out
index cd273550..45ef9ea8 100644
--- a/tests/f2fs/015.out
+++ b/tests/f2fs/015.out
@@ -101,11 +101,11 @@ Option#98: grpjquota=agrpquota :
32
Option#100: prjjquota=aprjquota :
32
-Option#102: usrjquota= :
+Option#102: usrjquota :
0
-Option#104: grpjquota= :
+Option#104: grpjquota :
0
-Option#106: prjjquota= :
+Option#106: prjjquota :
0
Option#108: usrjquota=ausrquota : extra_attr,quota,project_quota
0
--
2.54.0.563.g4f69b47b94-goog
next reply other threads:[~2026-05-13 3:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 3:20 Joanne Chang [this message]
2026-05-13 3:20 ` [PATCH v1 2/2] f2fs/021: Fix mount syntax for disabling jquota Joanne Chang
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=20260513032009.2300435-1-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