all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Kefu Chai <k.chai@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH v3 manager 2/2] storage: content: show inaccessible RBD images in UI
Date: Mon, 29 Jun 2026 19:48:27 +0800	[thread overview]
Message-ID: <20260629114827.2385004-3-k.chai@proxmox.com> (raw)
In-Reply-To: <20260629114827.2385004-1-k.chai@proxmox.com>

When a corrupt or inaccessible RBD image is returned with size=-1
(introduced in the pve-storage rbd_ls() fix for bug #7000), render
it as 'N/A (inaccessible)' instead of the nonsensical '-1 B'.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
---
 www/manager6/storage/ContentView.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index c604cbab..7ff9d6e7 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -156,6 +156,9 @@ Ext.define(
                     width: 100,
                     dataIndex: 'size',
                     renderer: function (value, _meta, record) {
+                        if (value === -1) {
+                            return gettext('N/A (inaccessible)');
+                        }
                         if (value !== undefined) {
                             return Proxmox.Utils.format_size(value);
                         }
-- 
2.47.3





      parent reply	other threads:[~2026-06-29 11:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29 11:48 [PATCH v3 manager/storage 0/2] rbd: handle corrupt or inaccessible images gracefully Kefu Chai
2026-06-29 11:48 ` [PATCH v3 storage 1/2] fix #7000: " Kefu Chai
2026-06-29 11:48 ` Kefu Chai [this message]

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=20260629114827.2385004-3-k.chai@proxmox.com \
    --to=k.chai@proxmox.com \
    --cc=pve-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal