Sharad Mishra has uploaded a new change for review.

Change subject: core: WIP: Adding compatibility version support for GlusterFS.
......................................................................

core: WIP: Adding compatibility version support for GlusterFS.

Add GlusterFsStorageEnabled config value.
Add comaptibility version support.

DO NOT MERGE - WORK IN PROGRESS

Change-Id: Ifbe47fcd03c8b4874c7f2ceb4d52a7da3c158d00
Signed-off-by: Sharad Mishra <[email protected]>
---
A backend/manager/dbscripts/upgrade/03_01_1470_add_gluster_fs_enabled_config.sql
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
2 files changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/35/8835/1

diff --git 
a/backend/manager/dbscripts/upgrade/03_01_1470_add_gluster_fs_enabled_config.sql
 
b/backend/manager/dbscripts/upgrade/03_01_1470_add_gluster_fs_enabled_config.sql
new file mode 100644
index 0000000..013f406
--- /dev/null
+++ 
b/backend/manager/dbscripts/upgrade/03_01_1470_add_gluster_fs_enabled_config.sql
@@ -0,0 +1,4 @@
+select fn_db_add_config_value('GlusterFsStorageEnabled', 'false', '2.2');
+select fn_db_add_config_value('GlusterFsStorageEnabled', 'false', '3.0');
+select fn_db_add_config_value('GlusterFsStorageEnabled', 'false', '3.1');
+select fn_db_add_config_value('GlusterFsStorageEnabled', 'true', '3.2');
diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
index 516355d..3aa8cce 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
@@ -1541,6 +1541,10 @@
     @DefaultValueAttribute("false")
     LiveStorageMigrationEnabled(393),
 
+    @TypeConverterAttribute(Boolean.class)
+    @DefaultValueAttribute("false")
+    GlusterFsStorageEnabled(394),
+
     Invalid(65535);
 
     private int intValue;


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifbe47fcd03c8b4874c7f2ceb4d52a7da3c158d00
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