From: Thomas Weißschuh Date: Sun, 16 Apr 2023 08:16:53 +0000 (+0200) Subject: fadvise: (tests) sync data to disk before dropping pages X-Git-Tag: v2.39-rc3~25^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1c68750d9d05b7879eb4da772239a542d454d39;p=thirdparty%2Futil-linux.git fadvise: (tests) sync data to disk before dropping pages 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 --- 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 } {