]> git.proxmox.com Git - pve-storage.git/commitdiff
PBSPlugin: list_volumes: filter by vmid if specified
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 4 Jun 2020 09:08:33 +0000 (11:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 17:38:02 +0000 (19:38 +0200)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/PBSPlugin.pm

index 3c0879c8741297617ca57e12016246f722381363..65696f40df007555d5fd7c65c44c9b9c12d3f51b 100644 (file)
@@ -291,6 +291,7 @@ sub list_volumes {
 
        next if !($btype eq 'vm' || $btype eq 'ct');
        next if $bid !~ m/^\d+$/;
+       next if defined($vmid) && $bid ne $vmid;
 
        my $btime = strftime("%FT%TZ", gmtime($epoch));
        my $volname = "backup/${btype}/${bid}/${btime}";