Maor Lipchuk has uploaded a new change for review.

Change subject: core: Add helper method for snapshots in DiskImageBase
......................................................................

core: Add helper method for snapshots in DiskImageBase

Add isStorageTypeSupportsSnapshot for Cinder and Image disks.

Change-Id: I3df843c1ac778ef2fe5c64c6b4c8323a66f2001b
Bug-Url: https://bugzilla.redhat.com/1185826
Signed-off-by: Maor Lipchuk <mlipc...@redhat.com>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/DiskImageBase.java
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/11/42311/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/DiskImageBase.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/DiskImageBase.java
index 9747594..87af0e3 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/DiskImageBase.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/DiskImageBase.java
@@ -94,4 +94,8 @@
         super.setId(id);
         getImage().setDiskId(id);
     }
+
+    public boolean isStorageTypeSupportsSnapshot() {
+        return (getDiskStorageType() == DiskStorageType.CINDER || 
getDiskStorageType() == DiskStorageType.IMAGE);
+    }
 }


-- 
To view, visit https://gerrit.ovirt.org/42311
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3df843c1ac778ef2fe5c64c6b4c8323a66f2001b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to