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 896CE1977D for ; Fri, 8 Apr 2016 19:29:25 +0000 (UTC) Received: (qmail 8817 invoked by uid 500); 8 Apr 2016 19:29:25 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 8765 invoked by uid 500); 8 Apr 2016 19:29:25 -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 8754 invoked by uid 99); 8 Apr 2016 19:29:24 -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; Fri, 08 Apr 2016 19:29:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A8EFFDFC6F; Fri, 8 Apr 2016 19:29:24 +0000 (UTC) From: rafaelweingartner To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Taking fast and efficient volume snapshot... Content-Type: text/plain Message-Id: <20160408192924.A8EFFDFC6F@git1-us-west.apache.org> Date: Fri, 8 Apr 2016 19:29:24 +0000 (UTC) Github user rafaelweingartner commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1403#discussion_r59077175 --- Diff: engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/PrimaryDataStoreDriver.java --- @@ -23,18 +23,21 @@ import com.cloud.host.Host; import com.cloud.storage.StoragePool; -import com.cloud.storage.Volume; public interface PrimaryDataStoreDriver extends DataStoreDriver { - public ChapInfo getChapInfo(VolumeInfo volumeInfo); + public ChapInfo getChapInfo(DataObject dataObject); public boolean grantAccess(DataObject dataObject, Host host, DataStore dataStore); public void revokeAccess(DataObject dataObject, Host host, DataStore dataStore); // intended for managed storage (cloud.storage_pool.managed = true) // if not managed, return volume.getSize() - public long getVolumeSizeIncludingHypervisorSnapshotReserve(Volume volume, StoragePool storagePool); + public long getDataObjectSizeIncludingHypervisorSnapshotReserve(DataObject dataObject, StoragePool storagePool); + + // intended for zone-wide primary storage that is capable of storing a template once and using it in multiple clusters + // if not this kind of storage, return 0 + public long getBytesRequiredForTemplate(TemplateInfo templateInfo, StoragePool storagePool); --- End diff -- This is not a proper documentation. I would suggest changing from Java comments style to Javadoc. --- 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. ---