]> git.proxmox.com Git - qemu-server.git/commitdiff
get_replicatable_volumes: add unused volumes
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jun 2017 09:51:14 +0000 (11:51 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jun 2017 09:51:14 +0000 (11:51 +0200)
PVE/QemuConfig.pm

index f79097a81700aabd87861a0a978aaa761459f2e7..3f59b4c69ec52b12554c3b420443f5ada50629d7 100644 (file)
@@ -96,6 +96,13 @@ sub get_replicatable_volumes {
 
     PVE::QemuServer::foreach_volid($conf, $test_volid);
 
+    # add 'unusedX' volumes to volhash
+    foreach my $key (keys %$conf) {
+       if ($key =~ m/^unused/) {
+           $test_volid->($conf->{$key}, { replicate => 1 });
+       }
+    }
+
     return $volhash;
 }