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/master to 7c92bac
Date Thu, 14 Aug 2014 08:10:33 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master a38bb389b -> 7c92bac4a


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

Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit 8b7130fa65a3ce010a54015b3350b94b56414462)


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

Branch: refs/heads/master
Commit: 7c92bac4a35dacba03883532ab6ebe638638b26c
Parents: a38bb38
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 10:10:13 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/7c92bac4/scripts/vm/hypervisor/xenserver/vmopsSnapshot
----------------------------------------------------------------------
diff --git a/scripts/vm/hypervisor/xenserver/vmopsSnapshot b/scripts/vm/hypervisor/xenserver/vmopsSnapshot
index 85444dc..6b4693c 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