From 41a6a75daec7d53ef5e2dafb79c02dbb3b6d804e Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 14 Sep 2020 18:45:21 -0700 Subject: [PATCH] generic/204: sync before scrub hits EIO 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 Reviewed-by: Zorro Lang Reviewed-by: Christoph Hellwig Signed-off-by: Eryu Guan --- 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 -- 2.39.5