Skip to content

Commit 37baddd

Browse files
jvanlieshoutDaanHoogland
authored andcommitted
dd with direct io is less impacting on Dom0 kernel resources
Signed-off-by: Daan Hoogland <daan@onecht.net> (cherry picked from commit c4b78c3)
1 parent 6568e0b commit 37baddd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/vm/hypervisor/xenserver/vmopsSnapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def copyfile(fromFile, toFile, isISCSI):
201201
logging.debug("Starting to copy " + fromFile + " to " + toFile)
202202
errMsg = ''
203203
try:
204-
cmd = ['dd', 'if=' + fromFile, 'of=' + toFile, 'bs=4M']
204+
cmd = ['dd', 'if=' + fromFile, 'iflag=direct', 'of=' + toFile, 'oflag=direct', 'bs=4M']
205205
txt = util.pread2(cmd)
206206
except:
207207
try:

0 commit comments

Comments
 (0)