From e641f20493dc9b0c08cb07ac0c46f43d37526f26 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 04:02:02 +0200 Subject: [PATCH] Add full preallocation (writing zeroes) --- run/disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/disk.sh b/run/disk.sh index 8257eee..b4b385d 100644 --- a/run/disk.sh +++ b/run/disk.sh @@ -50,7 +50,7 @@ if [ -f "${DATA}" ]; then GB=$(( (REQ + 1073741823)/1073741824 )) echo "INFO: Writing ${GB} GB of zeroes, please wait.." - dd if=/dev/zero of="${DATA}" seek="{OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes + dd if=/dev/zero of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes else