cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [2/2] git commit: updated refs/heads/4.4 to 49cf2ac
Date Tue, 16 Dec 2014 09:51:32 GMT
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.

(cherry picked from commit 4e1527e87aaaa87d14d3c7d3a6782b80cbf36a8c)


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/49cf2ac9
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/49cf2ac9
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/49cf2ac9

Branch: refs/heads/4.4
Commit: 49cf2ac9162d043c67d23d060f01424fc480255d
Parents: 02feb01
Author: Remi Bergsma <rbergsma@schubergphilis.com>
Authored: Mon Dec 15 16:36:35 2014 +0100
Committer: Daan Hoogland <daan@onecht.net>
Committed: Tue Dec 16 10:51:18 2014 +0100

----------------------------------------------------------------------
 scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/49cf2ac9/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh
----------------------------------------------------------------------
diff --git a/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh b/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh
index 098015a..61c65ea 100755
--- a/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh
+++ b/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh
@@ -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


Mime
View raw message