mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7319: dd with direct io is less impacting on Dom0 kernel resources
Signed-off-by: Daan Hoogland <daan@onecht.net> (cherry picked from commitc4b78c3aaa) (cherry picked from commit37baddd721) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
898b2e700e
commit
7dbafba52f
|
|
@ -201,7 +201,7 @@ def copyfile(fromFile, toFile, isISCSI):
|
|||
logging.debug("Starting to copy " + fromFile + " to " + toFile)
|
||||
errMsg = ''
|
||||
try:
|
||||
cmd = ['dd', 'if=' + fromFile, 'of=' + toFile, 'bs=4M']
|
||||
cmd = ['dd', 'if=' + fromFile, 'iflag=direct', 'of=' + toFile, 'oflag=direct', 'bs=4M']
|
||||
txt = util.pread2(cmd)
|
||||
except:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue