From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id B8B431FF13A for ; Wed, 13 May 2026 15:06:06 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 92B7DD35C; Wed, 13 May 2026 15:05:59 +0200 (CEST) From: Fiona Ebner To: pve-devel@lists.proxmox.com Subject: [PATCH-SERIES storage/manager/container/qemu-server 0/8] fix #6819: lvm plugin: list images: use approximate size for inactive qcow2 volumes Date: Wed, 13 May 2026 15:05:32 +0200 Message-ID: <20260513130548.143270-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1778677547795 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.009 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: GZQ6HUZBGXXGNGM57XDHVBTRN7YA5IXI X-Message-ID-Hash: GZQ6HUZBGXXGNGM57XDHVBTRN7YA5IXI X-MailFrom: f.ebner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: For qcow2 volumes on LVM, the exact size can only be queried when the LV is active. For a shared LVM, an LV might already be active on another node, so it must not be activated. Also, doing so for each volume would be costly. Instead, return only the approximate size when the LV is inactive. Adapt the list volumes API/CLI implementations as well as the UI and volume rescan operations for guests to handle casees where the exact size is not present, but only the new approximate size property. storage: Fiona Ebner (4): api: content: add missing imports and group/order according to style guide pvesm: add missing imports and group/order according to style guide api/cli: list content: declare size optional and add approximate-size fix #6819: lvm plugin: list images: use approximate size for inactive qcow2 volumes src/PVE/API2/Storage/Content.pm | 32 ++++++++++++++++-------- src/PVE/CLI/pvesm.pm | 44 ++++++++++++++++++++++++--------- src/PVE/Storage/LVMPlugin.pm | 33 ++++++++++++++++--------- 3 files changed, 75 insertions(+), 34 deletions(-) manager: Fiona Ebner (1): fix #6819: storage: content view: fallback to approximate size www/manager6/storage/ContentView.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) container: Fiona Ebner (2): volume rescan: also consider zero-sized volumes volume rescan: also consider volumes listed only with an approximate size src/PVE/LXC.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) qemu-server: Fiona Ebner (1): volume rescan: also consider volumes listed only with an approximate size src/PVE/QemuServer.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Summary over all repositories: 6 files changed, 95 insertions(+), 41 deletions(-) -- Generated by git-murpp 0.5.0