cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/hotfix/4.4-7345 to 8b7130f
Date Thu, 14 Aug 2014 08:00:15 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/hotfix/4.4-7345 [created] 8b7130fa6


CLOUDSTACK-7345 changed dd blocksize to 128k when using NFS.

Signed-off-by: Daan Hoogland <daan@onecht.net>


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

Branch: refs/heads/hotfix/4.4-7345
Commit: 8b7130fa65a3ce010a54015b3350b94b56414462
Parents: 47fee57
Author: Brenn Oosterbaan <boosterbaan@schubergphilis.com>
Authored: Thu Aug 14 09:35:14 2014 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Thu Aug 14 09:59:48 2014 +0200

----------------------------------------------------------------------
 scripts/vm/hypervisor/xenserver/vmopsSnapshot | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8b7130fa/scripts/vm/hypervisor/xenserver/vmopsSnapshot
----------------------------------------------------------------------
diff --git a/scripts/vm/hypervisor/xenserver/vmopsSnapshot b/scripts/vm/hypervisor/xenserver/vmopsSnapshot
index 5d5217b..fc9033d 100755
--- a/scripts/vm/hypervisor/xenserver/vmopsSnapshot
+++ b/scripts/vm/hypervisor/xenserver/vmopsSnapshot
@@ -200,8 +200,13 @@ def isfile(path, isISCSI):
 def copyfile(fromFile, toFile, isISCSI):
     logging.debug("Starting to copy " + fromFile + " to " + toFile)
     errMsg = ''
+    if isISCSI:
+        bs = "4M"
+    else:
+        bs = "128k"
+
     try:
-        cmd = ['dd', 'if=' + fromFile, 'iflag=direct', 'of=' + toFile, 'oflag=direct', 'bs=4M']
+        cmd = ['dd', 'if=' + fromFile, 'iflag=direct', 'of=' + toFile, 'oflag=direct', 'bs='
+ bs]
         txt = util.pread2(cmd)
     except:
         try:


Mime
View raw message