FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH v1] f2fs/{022,023}: clear MOUNT_OPTIONS alongside MKFS_OPTIONS
@ 2026-04-28  2:24 Joanne Chang
  2026-05-02  2:11 ` Zorro Lang
  2026-05-09  8:31 ` Chao Yu
  0 siblings, 2 replies; 3+ messages in thread
From: Joanne Chang @ 2026-04-28  2:24 UTC (permalink / raw)
  To: Zorro Lang, fstests; +Cc: Jaegeuk Kim, linux-f2fs-devel, Chao Yu, Joanne Chang

Currently, f2fs/022 and f2fs/023 only clears MKFS_OPTIONS. This causes
the tests to fail when leftover MOUNT_OPTIONS depend on unapplied
MKFS_OPTIONS. So MOUNT_OPTIONS should also be cleared to ensure reliable
mounting.

Signed-off-by: Joanne Chang <joannechien@google.com>
---
 tests/f2fs/022 | 1 +
 tests/f2fs/023 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/f2fs/022 b/tests/f2fs/022
index 728ef4e8..854ec327 100755
--- a/tests/f2fs/022
+++ b/tests/f2fs/022
@@ -23,6 +23,7 @@ _require_inject_f2fs_command node i_nid
 
 # remove all mkfs options to avoid layout change of on-disk inode
 export MKFS_OPTIONS=""
+export MOUNT_OPTIONS=""
 
 foo_path=$SCRATCH_MNT/foo
 bar_path=$SCRATCH_MNT/bar
diff --git a/tests/f2fs/023 b/tests/f2fs/023
index 33108421..f3e8785f 100755
--- a/tests/f2fs/023
+++ b/tests/f2fs/023
@@ -25,6 +25,7 @@ testfile=$SCRATCH_MNT/testfile
 
 # remove all mkfs options to avoid layout change of on-disk inode
 export MKFS_OPTIONS=""
+export MOUNT_OPTIONS=""
 
 _scratch_mkfs "-O extra_attr,flexible_inline_xattr" >> $seqres.full || _fail "mkfs failed"
 _scratch_mount "-o inline_xattr_size=512" >>$seqres.full 2>&1
-- 
2.54.0.rc2.544.gc7ae2d5bb8-goog


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

* Re: [PATCH v1] f2fs/{022,023}: clear MOUNT_OPTIONS alongside MKFS_OPTIONS
  2026-04-28  2:24 [PATCH v1] f2fs/{022,023}: clear MOUNT_OPTIONS alongside MKFS_OPTIONS Joanne Chang
@ 2026-05-02  2:11 ` Zorro Lang
  2026-05-09  8:31 ` Chao Yu
  1 sibling, 0 replies; 3+ messages in thread
From: Zorro Lang @ 2026-05-02  2:11 UTC (permalink / raw)
  To: Joanne Chang; +Cc: fstests, Jaegeuk Kim, linux-f2fs-devel, Chao Yu

On Tue, Apr 28, 2026 at 02:24:40AM +0000, Joanne Chang wrote:
> Currently, f2fs/022 and f2fs/023 only clears MKFS_OPTIONS. This causes
> the tests to fail when leftover MOUNT_OPTIONS depend on unapplied
> MKFS_OPTIONS. So MOUNT_OPTIONS should also be cleared to ensure reliable
> mounting.
> 
> Signed-off-by: Joanne Chang <joannechien@google.com>
> ---

Hmm, Makes sense to me.

Reviewed-by: Zorro Lang <zlang@kernel.org>

>  tests/f2fs/022 | 1 +
>  tests/f2fs/023 | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/tests/f2fs/022 b/tests/f2fs/022
> index 728ef4e8..854ec327 100755
> --- a/tests/f2fs/022
> +++ b/tests/f2fs/022
> @@ -23,6 +23,7 @@ _require_inject_f2fs_command node i_nid
>  
>  # remove all mkfs options to avoid layout change of on-disk inode
>  export MKFS_OPTIONS=""
> +export MOUNT_OPTIONS=""
>  
>  foo_path=$SCRATCH_MNT/foo
>  bar_path=$SCRATCH_MNT/bar
> diff --git a/tests/f2fs/023 b/tests/f2fs/023
> index 33108421..f3e8785f 100755
> --- a/tests/f2fs/023
> +++ b/tests/f2fs/023
> @@ -25,6 +25,7 @@ testfile=$SCRATCH_MNT/testfile
>  
>  # remove all mkfs options to avoid layout change of on-disk inode
>  export MKFS_OPTIONS=""
> +export MOUNT_OPTIONS=""
>  
>  _scratch_mkfs "-O extra_attr,flexible_inline_xattr" >> $seqres.full || _fail "mkfs failed"
>  _scratch_mount "-o inline_xattr_size=512" >>$seqres.full 2>&1
> -- 
> 2.54.0.rc2.544.gc7ae2d5bb8-goog
> 

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

* Re: [PATCH v1] f2fs/{022,023}: clear MOUNT_OPTIONS alongside MKFS_OPTIONS
  2026-04-28  2:24 [PATCH v1] f2fs/{022,023}: clear MOUNT_OPTIONS alongside MKFS_OPTIONS Joanne Chang
  2026-05-02  2:11 ` Zorro Lang
@ 2026-05-09  8:31 ` Chao Yu
  1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2026-05-09  8:31 UTC (permalink / raw)
  To: Joanne Chang, Zorro Lang, fstests; +Cc: chao, Jaegeuk Kim, linux-f2fs-devel

On 4/28/26 10:24, Joanne Chang wrote:
> Currently, f2fs/022 and f2fs/023 only clears MKFS_OPTIONS. This causes
> the tests to fail when leftover MOUNT_OPTIONS depend on unapplied
> MKFS_OPTIONS. So MOUNT_OPTIONS should also be cleared to ensure reliable
> mounting.
> 
> Signed-off-by: Joanne Chang <joannechien@google.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,

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

end of thread, other threads:[~2026-05-09  8:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28  2:24 [PATCH v1] f2fs/{022,023}: clear MOUNT_OPTIONS alongside MKFS_OPTIONS Joanne Chang
2026-05-02  2:11 ` Zorro Lang
2026-05-09  8:31 ` Chao Yu

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