mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-14 07:44:54 +00:00
get_replicatable_volumes: add unused volumes
This commit is contained in:
parent
f7e7767fed
commit
8299257eaf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user