From: Zorro Lang <zlang@kernel.org>
To: Joanne Chang <joannechien@google.com>
Cc: fstests@vger.kernel.org, Jaegeuk Kim <jaegeuk@kernel.org>,
linux-f2fs-devel@lists.sourceforge.net,
Chao Yu <chao@kernel.org>
Subject: Re: [PATCH v1 2/2] f2fs/021: Fix mount syntax for disabling jquota
Date: Sat, 16 May 2026 02:04:23 +0800 [thread overview]
Message-ID: <agddkrLATA8noIQ0@zlang-mailbox> (raw)
In-Reply-To: <20260513032009.2300435-2-joannechien@google.com>
On Wed, May 13, 2026 at 03:20:09AM +0000, Joanne Chang wrote:
> 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
I’ve explored several ways to solve this more elegantly. Otherwise, every
single F2FS quota test case might run into this exact same issue. but I can't
find any good idea currently. For example, if we do something in _try_scratch_mount:
local mount_opts=`_scratch_mount_options $*`
if [ "$FSTYP" == "f2fs" ]; then
mount_opts=`_f2fs_quota_options "$mount_opts"`
fi
However, F2FS seems to only distinguish the '=' usage through a trial mount,
so doing it inside _try_scratch_mount is definitely not a good idea. Is there
a way to probe this without mounting? Like relying on some --help output or
something similar? Any good ideas from others?
Thanks,
Zorro
> _scratch_unmount
>
> echo "Silence is golden"
> --
> 2.54.0.563.g4f69b47b94-goog
>
next prev parent reply other threads:[~2026-05-15 18:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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
2026-05-15 4:21 ` Chao Yu
2026-05-15 18:04 ` Zorro Lang [this message]
2026-05-15 4:21 ` [PATCH v1 1/2] f2fs/015: " 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=agddkrLATA8noIQ0@zlang-mailbox \
--to=zlang@kernel.org \
--cc=chao@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=jaegeuk@kernel.org \
--cc=joannechien@google.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/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