From 4b702ac361eee3ae72c5136e2bc7d8d15ab3d055 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 9 Apr 2021 12:46:46 +0200 Subject: [PATCH] plugin: get_subdir_files: add comment Signed-off-by: Thomas Lamprecht --- PVE/Storage/Plugin.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index 07eb88f..158e369 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -1039,6 +1039,7 @@ my $get_subdir_files = sub { my $format = $2; $fn = $1; + # only match for VMID now, to avoid false positives (VMID in parent directory name) next if defined($vmid) && $fn !~ m/\S+-$vmid-\S+/; $info = { volid => "$sid:backup/$fn", format => $format };