FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH 1/2] xfs/016: fix test fail when head equal to near_end_min
@ 2024-07-12  6:47 Long Li
  2024-07-12  6:47 ` [PATCH 2/2] xfs/242: fix test failure due to incorrect filtering in _filter_bmap Long Li
  2024-07-12 15:38 ` [PATCH 1/2] xfs/016: fix test fail when head equal to near_end_min Darrick J. Wong
  0 siblings, 2 replies; 4+ messages in thread
From: Long Li @ 2024-07-12  6:47 UTC (permalink / raw)
  To: zlang, djwong
  Cc: linux-xfs, fstests, yi.zhang, houtao1, leo.lilong, yangerkun

xfs/016 checks for corruption in the log when it wraps. It looks for a log
head that is at or above the minimum log size. If the final position of
the log head equals near_end_min, the test will fail. Under these
conditions, we should let the test continue.

Signed-off-by: Long Li <leo.lilong@huawei.com>
---
 tests/xfs/016 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/xfs/016 b/tests/xfs/016
index 6337bb1f..335a2d61 100755
--- a/tests/xfs/016
+++ b/tests/xfs/016
@@ -239,7 +239,7 @@ while [ $head -lt $near_end_min ]; do
 	head=$(_log_head)
 done
 
-[ $head -gt $near_end_min -a $head -lt $log_size_bb ] || \
+[ $head -ge $near_end_min -a $head -lt $log_size_bb ] || \
     _fail "!!! unexpected near end log position $head"
 
 # Step 4: Try to wrap the log, checking for corruption with each advance.
-- 
2.39.2


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

end of thread, other threads:[~2024-07-12 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-12  6:47 [PATCH 1/2] xfs/016: fix test fail when head equal to near_end_min Long Li
2024-07-12  6:47 ` [PATCH 2/2] xfs/242: fix test failure due to incorrect filtering in _filter_bmap Long Li
2024-07-12 15:39   ` Darrick J. Wong
2024-07-12 15:38 ` [PATCH 1/2] xfs/016: fix test fail when head equal to near_end_min Darrick J. Wong

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