[pve-devel] [PATCH pve-storage v1 1/2] fix #4929: iscsi: add hidden option to hide storage from UI

nansen.su nansen.su at sianit.com
Wed Jul 30 07:40:35 CEST 2025


  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





More information about the pve-devel mailing list