]> git.proxmox.com Git - pve-storage.git/commit
api: fix get content call response type for RBD/ZFS/iSCSI volumes
authorChristian Ebner <c.ebner@proxmox.com>
Thu, 9 Mar 2023 09:41:23 +0000 (10:41 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Mar 2023 15:35:58 +0000 (16:35 +0100)
commitd70d814ccf09968a63755e8443acb12d3132aaad
tree9a28ebe53c17174607be0e0dd42ae31b80f923ac
parent13e1af437a00089e80392b1d23a1afa61fdedf81
api: fix get content call response type for RBD/ZFS/iSCSI volumes

`pvesh get /nodes/{node}/storage/{storage}/content/{volume}` failed for
several storage types, because the respective storage plugins returned
only the volumes `size` on `volume_size_info` calls, while also the format
is required.

This patch fixes the issue by returning also `format` and where possible `used`.

The issue was reported in the forum:
https://forum.proxmox.com/threads/pvesh-get-nodes-node-storage-storage-content-volume-returns-error.123747/

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
 [ T: fixup white space error ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/ISCSIDirectPlugin.pm
PVE/Storage/RBDPlugin.pm
PVE/Storage/ZFSPoolPlugin.pm