]> git.proxmox.com Git - pve-storage.git/commitdiff
plugin: get_subdir_files: add comment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Apr 2021 10:46:46 +0000 (12:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Apr 2021 10:46:46 +0000 (12:46 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/Plugin.pm

index 07eb88f0145f963cacc4306293844c6e28f4b945..158e3698242143729362d6246a22b916a00f02fa 100644 (file)
@@ -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 };