]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/Plugin.pm
mark PBS storages as shared
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 27 Jan 2021 12:57:36 +0000 (13:57 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Jan 2021 15:43:20 +0000 (16:43 +0100)
commit68f1fc27839519dd08e05197584d8cde825495a2
tree94c5f94523545c6bb42d8438cac611f5afd67e63
parentd854a71803deeca5b4650b6efe23f99d90f19064
mark PBS storages as shared

Like this, the property will get added when parsing the storage configuration
and PBS storages will correctly show up as shared storages in API results.

AFAICT the only affected PBS operation is free_image via vdisk_free, which will
now be protected by a cluster-wide lock, and that shouldn't hurt.

Another issue this fixes, which is the reason this patch exists, was reported
in the forum[0]. The free space from PBS storages was counted once for each node
that had access to the storage.

[0]: https://forum.proxmox.com/threads/pve-6-3-the-storage-size-was-displayed-incorrectly.83136/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/Plugin.pm