[pve-devel] [PATCH manager v2 03/11] add osd device class to osd tree

Dominik Csapak d.csapak at proxmox.com
Mon Jul 31 15:15:25 CEST 2017


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Ceph.pm         | 2 +-
 www/manager6/ceph/OSD.js | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index f3f313cd..f18b76cf 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -103,7 +103,7 @@ __PACKAGE__->register_method ({
 		type => $e->{type}
 	    };
 
-	    foreach my $opt (qw(status crush_weight reweight)) {
+	    foreach my $opt (qw(status crush_weight reweight device_class)) {
 		$new->{$opt} = $e->{$opt} if defined($e->{$opt});
 	    }
 
diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index fbcd7d12..a56e3070 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -180,6 +180,12 @@ Ext.define('PVE.node.CephOsdTree', {
 	    width: 60
 	},
 	{
+	    text: gettext("Class"),
+	    dataIndex: 'device_class',
+	    align: 'right',
+	    width: 40
+	},
+	{
 	    text: 'Status',
 	    dataIndex: 'status',
 	    align: 'right',
-- 
2.11.0





More information about the pve-devel mailing list