From: "nansen.su" <nansen.su@sianit.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-storage v1 1/2] fix #4929: iscsi: add hidden option to hide storage from UI
Date: Wed, 30 Jul 2025 13:40:35 +0800 [thread overview]
Message-ID: <20250730054034.2277818-2-nansen.su@sianit.com> (raw)
This patch adds a 'hidden' boolean option to the iSCSI storage plugin.
When enabled, it allows hiding the storage from the resource tree in
the web interface while keeping it functional for actual storage operations.
This is part 1 of 2 patches that together implement hidden storage
support for iSCSI. The corresponding UI changes are submitted
separately to pve-manager.
Related: [PATCH pve-manager v1 2/2] ui: add hidden storage support for iSCSI
Signed-off-by: Nansen Su
---
src/PVE/Storage/ISCSIPlugin.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/PVE/Storage/ISCSIPlugin.pm b/src/PVE/Storage/ISCSIPlugin.pm
index 7691ec6..c6ccc07 100644
--- a/src/PVE/Storage/ISCSIPlugin.pm
+++ b/src/PVE/Storage/ISCSIPlugin.pm
@@ -351,6 +351,12 @@ sub properties {
type => 'string',
format => 'pve-storage-portal-dns',
},
+ hidden => {
+ description => "Hide this storage from the resource tree.",
+ type => 'boolean',
+ optional => 1,
+ default => 0,
+ },
};
}
@@ -362,6 +368,7 @@ sub options {
disable => { optional => 1 },
content => { optional => 1 },
bwlimit => { optional => 1 },
+ hidden => { optional => 1 },
};
}
--
2.50.1
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next reply other threads:[~2025-07-30 5:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 5:40 nansen.su [this message]
2025-07-30 9:48 ` Thomas Lamprecht
2025-07-30 10:10 ` Fabian Grünbichler
2025-07-31 1:20 ` 蘇國瑋
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=20250730054034.2277818-2-nansen.su@sianit.com \
--to=nansen.su@sianit.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.