Unverified Commit ec46f71b authored by Christian Rebischke's avatar Christian Rebischke Committed by GitHub
Browse files

Merge pull request #63 from coderobe/patch-4

write_zeroes: flush buffers before writing zeroes
parents 25aeda9f 734c592f
......@@ -3,6 +3,8 @@
set -e
set -x
# Make sure unwritten data has been flushed beforehand
sync
# Write zeros to improve virtual disk compaction.
zerofile=$(/usr/bin/mktemp /zerofile.XXXXX)
dd if=/dev/zero of="$zerofile" bs=1M || true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment