public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-storage v1 1/2] fix #4929: iscsi: add hidden option to hide storage from UI
@ 2025-07-30  5:40 nansen.su
  2025-07-30  9:48 ` Thomas Lamprecht
  0 siblings, 1 reply; 4+ messages in thread
From: nansen.su @ 2025-07-30  5:40 UTC (permalink / raw)
  To: pve-devel

  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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-31  1:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-30  5:40 [pve-devel] [PATCH pve-storage v1 1/2] fix #4929: iscsi: add hidden option to hide storage from UI nansen.su
2025-07-30  9:48 ` Thomas Lamprecht
2025-07-30 10:10   ` Fabian Grünbichler
2025-07-31  1:20     ` 蘇國瑋

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal