5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-01-11 05:18:01 +03:00
pve-storage/PVE/Storage
Christian Ebner d70d814ccf 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>
2023-03-20 16:35:58 +01:00
..
LunCmd tree-wide: fix typos with codespell 2021-06-23 08:28:48 +02:00
BTRFSPlugin.pm BTRFSPlugin: reuse DirPlugin update/get_volume_attribute 2022-07-05 11:24:58 +02:00
CephFSPlugin.pm fix #2641: allow mounting of CIFS subdirectories 2023-02-07 15:47:08 +01:00
CIFSPlugin.pm cifs: small line bloat reduction 2023-02-07 15:55:55 +01:00
DirPlugin.pm plugin: change name, separator and error message for dir overrides 2023-01-09 10:47:20 +01:00
GlusterfsPlugin.pm plugins: allow limiting the number of protected backups per guest 2022-04-06 09:47:12 +02:00
ISCSIDirectPlugin.pm api: fix get content call response type for RBD/ZFS/iSCSI volumes 2023-03-20 16:35:58 +01:00
ISCSIPlugin.pm iscsi: code cleanup 2021-05-04 12:02:47 +02:00
LVMPlugin.pm lvm thin: don't assume that a thin pool and its volumes are active 2021-11-10 14:23:54 +01:00
LvmThinPlugin.pm lvm thin: add missing newline to error message 2021-11-18 11:18:03 +01:00
Makefile add BTRFS storage plugin 2021-06-23 20:20:31 +02:00
NFSPlugin.pm nfs: check connection: support NFSv4-only servers without rpcbind 2023-01-24 17:17:35 +01:00
PBSPlugin.pm pbs: prune: avoid getting all snapshots for group assembly if fixed anyway 2022-11-07 15:55:40 +01:00
Plugin.pm content path overrides: allow single dots and enforce max-lengths 2023-03-20 15:11:44 +01:00
RBDPlugin.pm api: fix get content call response type for RBD/ZFS/iSCSI volumes 2023-03-20 16:35:58 +01:00
ZFSPlugin.pm plugin: remove volume_snapshot_list 2021-11-08 10:35:53 +01:00
ZFSPoolPlugin.pm api: fix get content call response type for RBD/ZFS/iSCSI volumes 2023-03-20 16:35:58 +01:00