* [PATCH v1 1/2] f2fs/015: Fix mount syntax for disabling jquota
@ 2026-05-13 3:20 Joanne Chang
2026-05-13 3:20 ` [PATCH v1 2/2] f2fs/021: " Joanne Chang
0 siblings, 1 reply; 2+ messages in thread
From: Joanne Chang @ 2026-05-13 3:20 UTC (permalink / raw)
To: Zorro Lang, fstests; +Cc: Jaegeuk Kim, linux-f2fs-devel, Chao Yu, Joanne Chang
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
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH v1 2/2] f2fs/021: Fix mount syntax for disabling jquota
2026-05-13 3:20 [PATCH v1 1/2] f2fs/015: Fix mount syntax for disabling jquota Joanne Chang
@ 2026-05-13 3:20 ` Joanne Chang
0 siblings, 0 replies; 2+ messages in thread
From: Joanne Chang @ 2026-05-13 3:20 UTC (permalink / raw)
To: Zorro Lang, fstests; +Cc: Jaegeuk Kim, linux-f2fs-devel, Chao Yu, Joanne Chang
F2FS has removed the trailing "=" in the mount options for disabling
user journaled quotas. Update f2fs/021 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/021 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/f2fs/021 b/tests/f2fs/021
index 0cacb138..70b10fa8 100755
--- a/tests/f2fs/021
+++ b/tests/f2fs/021
@@ -21,7 +21,9 @@ quotacheck -uc $SCRATCH_MNT
_scratch_unmount
_scratch_mount "-o usrjquota=aquota.user,jqfmt=vfsold"
-_scratch_mount "-o remount,usrjquota=,jqfmt=vfsold"
+if ! _try_scratch_mount "-o remount,usrjquota,jqfmt=vfsold" >> $seqres.full 2>&1; then
+ _scratch_mount "-o remount,usrjquota=,jqfmt=vfsold"
+fi
_scratch_unmount
echo "Silence is golden"
--
2.54.0.563.g4f69b47b94-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-13 3:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-13 3:20 [PATCH v1 1/2] f2fs/015: Fix mount syntax for disabling jquota Joanne Chang
2026-05-13 3:20 ` [PATCH v1 2/2] f2fs/021: " Joanne Chang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox