From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Lukas Sichert <l.sichert@proxmox.com>, pdm-devel@lists.proxmox.com
Subject: applied: [PATCH datacenter-manager 4/4] fix #7135: ui: correct calculations for shared storages
Date: Mon, 9 Mar 2026 23:06:46 +0100 [thread overview]
Message-ID: <fe73d526-1f89-41a5-b702-9c270495a0e9@proxmox.com> (raw)
In-Reply-To: <20260302134537.108696-5-l.sichert@proxmox.com>
Am 02.03.26 um 14:45 schrieb Lukas Sichert:
> Currently the storage calculation for a cluster in the
> datacenter-manager is incorrect when a shared storage is involved. Each
> node reports the shared storage separately, causing it to be counted
> multiple times in the total capacity.
>
> To be able to handle shared storages correctly, introduce a `shared`
> field to PveStorageResource and parse it from the API-Resonse. After
> that use the field and the storage name to only count the shared storage
> once. This also aligns pdm storage calculation with the one in the
> pve-frontend.
>
> Signed-off-by: Lukas Sichert <l.sichert@proxmox.com>
> ---
> cli/client/src/resources.rs | 1 +
> lib/pdm-api-types/src/resource.rs | 2 ++
> server/src/api/resources.rs | 1 +
> server/src/views/tests.rs | 1 +
> ui/src/pve/remote_overview.rs | 9 +++++++--
> 5 files changed, 12 insertions(+), 2 deletions(-)
>
>
applied this one now too, thanks!
next prev parent reply other threads:[~2026-03-09 22:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 13:45 [PATCH api-types/manager/datacenter-manager 0/4] fix #7315: datacenter-manager: fix wrong calculation of total storage Lukas Sichert
2026-03-02 13:45 ` [PATCH proxmox 1/4] fix #7315: generate: add support for new certificate variant Lukas Sichert
2026-03-09 20:05 ` Thomas Lamprecht
2026-03-02 13:45 ` SPAM: [PATCH proxmox 2/4] fix #7315: run make refresh Lukas Sichert
2026-03-09 15:48 ` Thomas Lamprecht
2026-03-02 13:45 ` [PATCH manager 3/4] fix #7315: types: add missing storage flag to json schema Lukas Sichert
2026-03-02 13:51 ` Dominik Rusovac
2026-03-02 13:45 ` [PATCH datacenter-manager 4/4] fix #7135: ui: correct calculations for shared storages Lukas Sichert
2026-03-09 22:06 ` Thomas Lamprecht [this message]
2026-03-09 20:35 ` partially-applied: [PATCH api-types/manager/datacenter-manager 0/4] fix #7315: datacenter-manager: fix wrong calculation of total storage Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe73d526-1f89-41a5-b702-9c270495a0e9@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=l.sichert@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox