mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +01:00
use directIO flags when dd'ing template
This makes sure dom0 in xenserver doesn't get hammered when copying templates. It doesn't make sense to use the cache of dom0 as the template does not fit in memory. The directIO flags prevent it from trying.
This commit is contained in:
parent
85bb685662
commit
4e1527e87a
@ -104,7 +104,7 @@ copyvhd()
|
||||
exit 0
|
||||
fi
|
||||
if [ "${parent##*vhd has}" = " no parent" ]; then
|
||||
dd if=$srcvhd of=$desvhd bs=2M
|
||||
dd if=$srcvhd of=$desvhd bs=2M oflag=direct iflag=direct
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "31#failed to dd $srcvhd to $desvhd"
|
||||
cleanup
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user