Skip to content

Commit 7dbafba

Browse files
jvanlieshoutyadvr
authored andcommitted
CLOUDSTACK-7319: dd with direct io is less impacting on Dom0 kernel resources
Signed-off-by: Daan Hoogland <daan@onecht.net> (cherry picked from commit c4b78c3) (cherry picked from commit 37baddd) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 898b2e7 commit 7dbafba

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)