Sharad Mishra has uploaded a new change for review.

Change subject: webadmin: WIP: Add support for GlusterFS
......................................................................

webadmin: WIP: Add support for GlusterFS

Added DataProvider for GLUSTER DC

DO NOT MERGE - WORK IN PROGRESS

Change-Id: Id4b0d9bec819a6eaf9acd7a20a80909a42bcb30e
Signed-off-by: Sharad Mishra <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/DataProvider.java
1 file changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/45/8845/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/DataProvider.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/DataProvider.java
index 645b9a3..bbf053c 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/DataProvider.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/DataProvider.java
@@ -920,14 +920,16 @@
             StorageType.ISCSI,
             StorageType.FCP,
             StorageType.LOCALFS,
-            StorageType.POSIXFS
+            StorageType.POSIXFS,
+            StorageType.GLUSTERFS
         }));
     }
 
     public static boolean IsVersionMatchStorageType(Version version, 
StorageType type)
     {
-        return !((type == StorageType.LOCALFS && version.compareTo(new 
Version(2, 2)) <= 0) || (type == StorageType.POSIXFS && version.compareTo(new 
Version(3,
-                0)) <= 0));
+        return !((type == StorageType.LOCALFS && version.compareTo(new 
Version(2, 2)) <= 0) 
+                || (type == StorageType.POSIXFS && version.compareTo(new 
Version(3, 0)) <= 0)
+                || (type == StorageType.GLUSTERFS && version.compareTo(new 
Version(3, 1)) <= 0));
     }
 
     public static String GetRpmVersionViaPublic()
@@ -1658,6 +1660,7 @@
             case NFS:
             case LOCALFS:
             case POSIXFS:
+            case GLUSTERFS:
                 return VolumeFormat.RAW;
 
             case ISCSI:


--
To view, visit http://gerrit.ovirt.org/8845
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id4b0d9bec819a6eaf9acd7a20a80909a42bcb30e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sharad Mishra <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to