]> git.proxmox.com Git - pve-container.git/commitdiff
get_replicatable_volumes: add unused volumes
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jun 2017 10:18:10 +0000 (12:18 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jun 2017 10:18:10 +0000 (12:18 +0200)
src/PVE/LXC/Config.pm

index 4ac5c95f30f63e6867be85d3f76abe17cb8661f6..0f7dd0fcd23f5785df1bfbb41fe28791f6f03f7a 100644 (file)
@@ -1294,6 +1294,13 @@ sub get_replicatable_volumes {
         });
     }
 
+    # add 'unusedX' volumes to volhash
+    foreach my $key (keys %$conf) {
+       if ($key =~ m/^unused/) {
+           $test_volid->($conf->{$key}, { type => 'volume', replicate => 1 });
+       }
+    }
+
     return $volhash;
 }