mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
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:
committed by
Milan Broz
parent
294e4cbcb7
commit
37e0150f70
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user