[pve-devel] [PATCH] Add to UI support for disk selection for new multipath direct storage.

Dmitry Petuhov mityapetuhov at gmail.com
Wed Jun 29 13:00:43 CEST 2016


Signed-off-by: Dmitry Petuhov <mityapetuhov at gmail.com>
---
 www/manager6/lxc/ResourceEdit.js | 3 ++-
 www/manager6/qemu/Clone.js       | 1 +
 www/manager6/qemu/HDEdit.js      | 3 ++-
 www/manager6/qemu/HDMove.js      | 1 +
 4 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/www/manager6/lxc/ResourceEdit.js b/www/manager6/lxc/ResourceEdit.js
index d88a0d4..70dd47b 100644
--- a/www/manager6/lxc/ResourceEdit.js
+++ b/www/manager6/lxc/ResourceEdit.js
@@ -364,7 +364,8 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
 		    if (me.unused || !me.create) {
 			return;
 		    }
-		    if (rec.data.type === 'iscsi') {
+		    if (rec.data.type === 'iscsi' ||
+			rec.data.type === 'mpdirect') {
 			me.hdfilesel.setStorage(value);
 			me.hdfilesel.setDisabled(false);
 			me.hdfilesel.setVisible(true);
diff --git a/www/manager6/qemu/Clone.js b/www/manager6/qemu/Clone.js
index 617b66e..e685c9b 100644
--- a/www/manager6/qemu/Clone.js
+++ b/www/manager6/qemu/Clone.js
@@ -69,6 +69,7 @@ Ext.define('PVE.window.Clone', {
 	    rec.data.type === 'lvmthin' ||
             rec.data.type === 'rbd' ||
             rec.data.type === 'iscsi' ||
+	    rec.data.type === 'mpdirect' ||
             rec.data.type === 'sheepdog' ||
 	    rec.data.type === 'zfs' ||
 	    rec.data.type === 'zfspool'
diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index 9da2e6b..01b0df6 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -32,7 +32,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
 		    }
 		    var me = this.getView();
 		    var rec = f.store.getById(value);
-		    if (rec.data.type === 'iscsi') {
+		    if (rec.data.type === 'iscsi' ||
+			rec.data.type === 'mpdirect') {
 			me.hdfilesel.setStorage(value);
 			me.hdfilesel.setDisabled(false);
 			me.formatsel.setValue('raw');
diff --git a/www/manager6/qemu/HDMove.js b/www/manager6/qemu/HDMove.js
index 745c791..c58c009 100644
--- a/www/manager6/qemu/HDMove.js
+++ b/www/manager6/qemu/HDMove.js
@@ -75,6 +75,7 @@ Ext.define('PVE.window.HDMove', {
 			}
                         var rec = f.store.getById(value);
 			if (rec.data.type === 'iscsi' ||
+			    rec.data.type === 'mpdirect' ||
 			    rec.data.type === 'lvm' ||
 			    rec.data.type === 'lvmthin' ||
 			    rec.data.type === 'rbd' ||
-- 
2.1.4




More information about the pve-devel mailing list