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