Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Christian Rebischke
arch-boxes
Commits
ec46f71b
Unverified
Commit
ec46f71b
authored
Oct 15, 2019
by
Christian Rebischke
Committed by
GitHub
Oct 15, 2019
Browse files
Merge pull request #63 from coderobe/patch-4
write_zeroes: flush buffers before writing zeroes
parents
25aeda9f
734c592f
Changes
1
Hide whitespace changes
Inline
Side-by-side
provision/write_zeroes.sh
View file @
ec46f71b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment