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+
This commit is contained in:
Ondrej Kozina
2018-10-03 17:10:59 +02:00
committed by Milan Broz
parent 294e4cbcb7
commit 37e0150f70

View File

@@ -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() {