[pve-devel] [PATCH manager 3/3] change ceph diskselector field to devpath

Dominik Csapak d.csapak at proxmox.com
Mon Oct 31 12:10:11 CET 2016


in the field 'devpath' we get the correct path of the device from
udevadm, so use it here

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/OSD.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index e2ea36d..c9210fa 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -4,8 +4,8 @@ Ext.define('PVE.form.CephDiskSelector', {
 
     diskType: 'journal_disks',
 
-    valueField: 'dev',
-    displayField: 'dev',
+    valueField: 'devpath',
+    displayField: 'devpath',
     emptyText: gettext('No Disks unused'),
     listConfig: {
 	columns: [
@@ -13,7 +13,7 @@ Ext.define('PVE.form.CephDiskSelector', {
 		header: gettext('Device'),
 		width: 80,
 		sortable: true,
-		dataIndex: 'dev'
+		dataIndex: 'devpath'
 	    },
 	    {
 		header: gettext('Size'),
@@ -48,7 +48,7 @@ Ext.define('PVE.form.CephDiskSelector', {
 	    },
 	    sorters: [
 		{
-		    property : 'dev',
+		    property : 'devpath',
 		    direction: 'ASC'
 		}
 	    ]
@@ -66,10 +66,10 @@ Ext.define('PVE.form.CephDiskSelector', {
 
     Ext.define('ceph-disk-list', {
 	extend: 'Ext.data.Model',
-	fields: [ 'dev', 'used', { name: 'size', type: 'number'},
+	fields: [ 'devpath', 'used', { name: 'size', type: 'number'},
 		  {name: 'osdid', type: 'number'},
 		  'vendor', 'model', 'serial'],
-	idProperty: 'dev'
+	idProperty: 'devpath'
     });
 });
 
-- 
2.1.4





More information about the pve-devel mailing list