Unverified Commit ed7e42e8 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Add full preallocation (writing zeroes)

parent a64ed657
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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