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 F0FB410435 for ; Wed, 21 Jan 2015 20:06:40 +0000 (UTC) Received: (qmail 45499 invoked by uid 500); 21 Jan 2015 20:06:40 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 45471 invoked by uid 500); 21 Jan 2015 20:06:40 -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 45462 invoked by uid 99); 21 Jan 2015 20:06:40 -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; Wed, 21 Jan 2015 20:06:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C2786E03AB; Wed, 21 Jan 2015 20:06:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mtutkowski@apache.org To: commits@cloudstack.apache.org Message-Id: <90ac862cd9b14e51b6bbc627160b11c1@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/master to 2094286 Date: Wed, 21 Jan 2015 20:06:40 +0000 (UTC) Repository: cloudstack Updated Branches: refs/heads/master 664186f48 -> 2094286c8 Adding support for creating a volume from a snapshot when the snapshot is on managed storage Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2094286c Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2094286c Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2094286c Branch: refs/heads/master Commit: 2094286c8ad0e540641e4c619d101cbeabe9751c Parents: 664186f Author: Mike Tutkowski Authored: Wed Jan 21 13:05:21 2015 -0700 Committer: Mike Tutkowski Committed: Wed Jan 21 13:06:05 2015 -0700 ---------------------------------------------------------------------- .../storage/motion/StorageSystemDataMotionStrategy.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2094286c/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java ---------------------------------------------------------------------- diff --git a/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java b/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java index 525aa70..de98f55 100644 --- a/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java +++ b/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java @@ -152,11 +152,13 @@ public class StorageSystemDataMotionStrategy implements DataMotionStrategy { } if (canHandleSrc) { - // return handleCreateVolumeFromSnapshotOnlySourceOnStorageSystem(); + throw new UnsupportedOperationException("This operation is not supported (DataStoreCapabilities.STORAGE_SYSTEM_SNAPSHOT " + + "not supported by destination storage plug-in)."); } if (canHandleDest) { - // return handleCreateVolumeFromSnapshotOnlyDestinationOnStorageSystem(); + throw new UnsupportedOperationException("This operation is not supported (DataStoreCapabilities.STORAGE_SYSTEM_SNAPSHOT " + + "not supported by source storage plug-in)."); } } }