mirror of https://github.com/apache/cloudstack.git
dd with direct io is less impacting on Dom0 kernel resources
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit c4b78c3aaa)
This commit is contained in:
parent
6568e0bb31
commit
37baddd721
|
|
@ -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