[pve-devel] [PATCH manager v2 2/2] api: ceph: set bytes_used's renderer to bytes

Maximiliano Sandoval m.sandoval at proxmox.com
Fri Aug 29 11:44:00 CEST 2025


This will make pveceph pool ls report the 'Used' column specifying its
units:

$ pveceph pool ls --noborder
... Used
... 2.07 MiB
... 108.61 KiB

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 PVE/API2/Ceph/Pool.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/API2/Ceph/Pool.pm b/PVE/API2/Ceph/Pool.pm
index 4df6f2ca..73166cdf 100644
--- a/PVE/API2/Ceph/Pool.pm
+++ b/PVE/API2/Ceph/Pool.pm
@@ -108,6 +108,7 @@ __PACKAGE__->register_method({
                 bytes_used => {
                     type => 'integer',
                     title => 'Used',
+                    renderer => 'bytes',
                 },
                 target_size => {
                     type => 'integer',
-- 
2.47.2





More information about the pve-devel mailing list