From 37e0150f700b4fd5081ad8a53204664cb014b943 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Wed, 3 Oct 2018 17:10:59 +0200 Subject: [PATCH] Do not use fallocate in blockwise tests. fs driver may skip some sanity checks if it's aware the content of file is uninitialized. Fixes warnings for xfs in kernel 4.19+ --- tests/blockwise-compat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/blockwise-compat b/tests/blockwise-compat index 88b6c1c8..97405952 100755 --- a/tests/blockwise-compat +++ b/tests/blockwise-compat @@ -71,7 +71,7 @@ add_device() { } falloc() { - fallocate -l"$1"m $2 2>/dev/null || dd if=/dev/zero of=$2 bs=1M count=$1 2> /dev/null + dd if=/dev/zero of=$2 bs=1M count=$1 2> /dev/null } run_all_in_fs() {