fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfs/097: Remove wrong broken assignment operation
@ 2019-10-07  7:15 Yang Xu
  2019-10-07 15:12 ` Darrick J. Wong
  0 siblings, 1 reply; 10+ messages in thread
From: Yang Xu @ 2019-10-07  7:15 UTC (permalink / raw)
  To: fstests; +Cc: Yang Xu

On old kernel, since commit ded188b8609 ("xfs: Fix the situation that mount 
operation rejects corrupted XFS") running this case got the mismatched output,
as below:
-----------------------------------
 + check fs
 + corrupt image
 + mount image && modify files
-broken: 1
+broken: 0
 + repair fs
 + mount image (2)
------------------------------------

It fails because the broken is always equal to 0 when _try_scratch_mount
succeed. So remove this wrong assignment operation.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
 tests/xfs/097 | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/xfs/097 b/tests/xfs/097
index 1cb7d69c..20791738 100755
--- a/tests/xfs/097
+++ b/tests/xfs/097
@@ -81,8 +81,6 @@ done
 echo "+ mount image && modify files"
 broken=1
 if _try_scratch_mount >> $seqres.full 2>&1; then
-
-	broken=0
 	for x in `seq 65 70`; do
 		touch "${TESTFILE}.${x}" 2> /dev/null && broken=0
 	done
-- 
2.18.1




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

end of thread, other threads:[~2019-10-22  2:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07  7:15 [PATCH] xfs/097: Remove wrong broken assignment operation Yang Xu
2019-10-07 15:12 ` Darrick J. Wong
2019-10-08  2:39   ` Yang Xu
2019-10-14 16:39     ` Darrick J. Wong
2019-10-15  6:27       ` Yang Xu
2019-10-21 12:09         ` Yang Xu
2019-10-21 15:50           ` Darrick J. Wong
2019-10-22  1:49             ` Yang Xu
2019-10-22  1:55               ` Darrick J. Wong
2019-10-22  2:06                 ` Yang Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).