[pve-devel] applied: [PATCH storage 2/6] api: scan cifs: port over NT_STATUS filter from pve-manager

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Dec 2 11:51:18 CET 2020


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/API2/Storage/Scan.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/API2/Storage/Scan.pm b/PVE/API2/Storage/Scan.pm
index 0e6fd9a..44d6628 100644
--- a/PVE/API2/Storage/Scan.pm
+++ b/PVE/API2/Storage/Scan.pm
@@ -127,6 +127,7 @@ __PACKAGE__->register_method({
 
 	my $data = [];
 	foreach my $k (sort keys %$res) {
+	    next if $k =~ m/NT_STATUS_/;
 	    push @$data, { share => $k, description => $res->{$k} };
 	}
 
-- 
2.20.1






More information about the pve-devel mailing list