From b1c68750d9d05b7879eb4da772239a542d454d39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sun, 16 Apr 2023 10:16:53 +0200 Subject: [PATCH] fadvise: (tests) sync data to disk before dropping pages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The test fails if pages are not dropped because they are not yet written back to disk. So force a writeback before continuing. Signed-off-by: Thomas Weißschuh --- tests/ts/fadvise/drop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ts/fadvise/drop b/tests/ts/fadvise/drop index 142fbf028b..877d5ab6b5 100755 --- a/tests/ts/fadvise/drop +++ b/tests/ts/fadvise/drop @@ -19,7 +19,7 @@ BS=4k COUNT=8 create_file() { - dd if=/dev/zero of="$FILE" bs=$BS count=$COUNT >& /dev/null + dd if=/dev/zero of="$FILE" bs=$BS count=$COUNT conv=fsync >& /dev/null } { -- 2.47.2