generic/670: allow _mread_range() races with reflink_range()
[xfstests-dev.git] / tests / generic / 670
index 83fbd0b9bd6ea18402f106c0e41fec63f215f2de..4a895d90670a6d90cafde6f9047640fdee39d1c2 100755 (executable)
@@ -40,7 +40,10 @@ _cp_reflink $testdir/file1 $testdir/file3
 _scratch_cycle_mount
 
 fbytes() {
-       egrep -v '(61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61|62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62)'
+       # Different with generic/164,165, mread copies data from mmapped area
+       # one-byte-at-a-time, which may cause races during reflink_range().
+       # So the result of _mread_range() may be a mix of 61 and 62.
+       egrep -v '((61|62) ){15}(61|62)'
 }
 
 reader() {