Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4D381076D for ; Thu, 27 Aug 2015 12:00:07 +0000 (UTC) Received: (qmail 34708 invoked by uid 500); 27 Aug 2015 12:00:06 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 34653 invoked by uid 500); 27 Aug 2015 12:00:06 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 34641 invoked by uid 99); 27 Aug 2015 12:00:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2015 12:00:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 58997E7E32; Thu, 27 Aug 2015 12:00:06 +0000 (UTC) From: miguelaferreira To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-8762: Check to confirm disk ac... Content-Type: text/plain Message-Id: <20150827120006.58997E7E32@git1-us-west.apache.org> Date: Thu, 27 Aug 2015 12:00:06 +0000 (UTC) Github user miguelaferreira commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/754#discussion_r38087198 --- Diff: plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java --- @@ -3923,6 +3944,17 @@ public int compare(DiskTO arg0, DiskTO arg1) { volPath = physicalDisk.getPath(); } + // check for disk activity, if detected we should exit because vm is running elsewhere --- End diff -- Wouldn't this block best be refactored into a separate method? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---