[pve-devel] [PATCH manager v2] gui: node disks: show if an osd is encrypted
Dominik Csapak
d.csapak at proxmox.com
Tue Jul 16 16:16:22 CEST 2019
add a new 'encrypted' column, which is shows that info currently
only for osds
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
* add a seperate column for encryption info
does not strictly need the pve-storage patches for detecting the osd
encryption, but without them there is only a new empty column with no content ;)
www/manager6/node/Disks.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/www/manager6/node/Disks.js b/www/manager6/node/Disks.js
index 555956f6..d281530b 100644
--- a/www/manager6/node/Disks.js
+++ b/www/manager6/node/Disks.js
@@ -67,6 +67,16 @@ Ext.define('PVE.node.DiskList', {
},
dataIndex: 'used'
},
+ {
+ header: gettext('Encrypted'),
+ dataIndex: 'osdencrypted',
+ renderer: (v, metaData, rec) => {
+ if (rec && rec.data.osdid >= 0) {
+ return Proxmox.Utils.format_boolean(v);
+ }
+ return v || '';
+ },
+ },
{
header: gettext('Size'),
width: 100,
--
2.20.1
More information about the pve-devel
mailing list