public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4/046: skip test when ext4 doesn't support bs < ps with dioread_nolock
@ 2021-01-14  3:55 Yang Xu
  2021-01-17 15:06 ` Eryu Guan
  0 siblings, 1 reply; 5+ messages in thread
From: Yang Xu @ 2021-01-14  3:55 UTC (permalink / raw)
  To: fstests; +Cc: Yang Xu

When testing arm machine, this case fails because ps > bs and kernel doesn't
introduced commit c8cc88163f40 ("ext4: Add support for blocksize < pagesize in dioread_nolock").
Only skip this case when mounting failed.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
 tests/ext4/046 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/ext4/046 b/tests/ext4/046
index 5524024e..e307cbf1 100755
--- a/tests/ext4/046
+++ b/tests/ext4/046
@@ -37,7 +37,8 @@ _require_xfs_io_command "falloc"
 _require_scratch_size $((6 * 1024 * 1024)) #kB
 
 _scratch_mkfs >> $seqres.full 2>&1
-_scratch_mount "-o dioread_nolock" >> $seqres.full 2>&1
+_try_scratch_mount "-o dioread_nolock" >>$seqres.full 2>&1 || \
+	_notrun "mount failed, ext4 doesn't support bs < ps with dioread_nolock?"
 
 # Get blksz
 blksz=$(_get_file_block_size $SCRATCH_MNT)
-- 
2.23.0




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

end of thread, other threads:[~2021-01-19  6:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-14  3:55 [PATCH] ext4/046: skip test when ext4 doesn't support bs < ps with dioread_nolock Yang Xu
2021-01-17 15:06 ` Eryu Guan
2021-01-19  3:00   ` Yang Xu
2021-01-19  3:48   ` Theodore Ts'o
2021-01-19  6:13   ` [PATCH v2] " Yang Xu

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