get_replicatable_volumes: add unused volumes

This commit is contained in:
Dietmar Maurer 2017-06-13 11:51:14 +02:00
parent f7e7767fed
commit 8299257eaf

View 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;
}