Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05A4211209 for ; Thu, 14 Aug 2014 08:00:16 +0000 (UTC) Received: (qmail 77311 invoked by uid 500); 14 Aug 2014 08:00:15 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 77282 invoked by uid 500); 14 Aug 2014 08:00:15 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 77273 invoked by uid 99); 14 Aug 2014 08:00:15 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 08:00:15 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 995B89BE382; Thu, 14 Aug 2014 08:00:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dahn@apache.org To: commits@cloudstack.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/hotfix/4.4-7345 to 8b7130f Date: Thu, 14 Aug 2014 08:00:15 +0000 (UTC) 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 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 Authored: Thu Aug 14 09:35:14 2014 +0200 Committer: Daan Hoogland 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: