mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 10:28:14 +00:00
add information about bluestore in the gui disklist
this adds if an osd uses bluestore in the disklist, and shows if a disk is used for osd journal/db/wal Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
45ea97f209
commit
6dd90c403e
@ -33,9 +33,33 @@ Ext.define('PVE.node.DiskList', {
|
||||
width: 80,
|
||||
sortable: false,
|
||||
renderer: function(v, metaData, rec) {
|
||||
if (rec && (rec.data.osdid >= 0)) {
|
||||
return "osd." + rec.data.osdid.toString();
|
||||
if (rec) {
|
||||
if (rec.data.osdid >= 0) {
|
||||
var bluestore = '';
|
||||
if (rec.data.bluestore === 1) {
|
||||
bluestore = ' (Bluestore)';
|
||||
}
|
||||
return "Ceph osd." + rec.data.osdid.toString() + bluestore;
|
||||
}
|
||||
|
||||
var types = [];
|
||||
if (rec.data.journals > 0) {
|
||||
types.push('Journal');
|
||||
}
|
||||
|
||||
if (rec.data.db > 0) {
|
||||
types.push('DB');
|
||||
}
|
||||
|
||||
if (rec.data.wal > 0) {
|
||||
types.push('WAL');
|
||||
}
|
||||
|
||||
if (types.length > 0) {
|
||||
return 'Ceph (' + types.join(', ') + ')';
|
||||
}
|
||||
}
|
||||
|
||||
return v || PVE.Utils.noText;
|
||||
},
|
||||
dataIndex: 'used'
|
||||
|
Loading…
Reference in New Issue
Block a user