[PATCH 23/24] generic/204: sync before scrub hits EIO

Darrick J. Wong
2020-09-15T01:45:36Z

From: Darrick J. Wong <darrick.wong@oracle.com>

Let's see if we can prevent fs corruption warnings by flushing dirty
data to disk before the test ends.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
tests/generic/204 | 1 +
1 file changed, 1 insertion(+)

diff --git a/tests/generic/204 b/tests/generic/204
index 7250c00a..22d6fed5 100755
--- a/tests/generic/204
+++ b/tests/generic/204
@@ -18,6 +18,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_cleanup()
{
rm -f $tmp.*
+ sync
}

# get standard environment, filters and checks