mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 15:25:36 +00:00
Remove unused 'sharedvm' variable
AFAICT this one hasn't been in use since commit '4530494bf9f3d45c4a405c53ef3688e641f6bd8e' Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
4df15a0377
commit
c96173968a
@ -282,8 +282,6 @@ sub sync_disks {
|
||||
my $other_errors = [];
|
||||
my $abort = 0;
|
||||
|
||||
my $sharedvm = 1;
|
||||
|
||||
my $log_error = sub {
|
||||
my ($msg, $volid) = @_;
|
||||
|
||||
@ -310,7 +308,6 @@ sub sync_disks {
|
||||
|
||||
# check if storage is available on target node
|
||||
PVE::Storage::storage_check_node($self->{storecfg}, $targetsid, $self->{node});
|
||||
$sharedvm = 0; # there is a non-shared disk
|
||||
|
||||
PVE::Storage::foreach_volid($dl, sub {
|
||||
my ($volid, $sid, $volname) = @_;
|
||||
@ -352,8 +349,6 @@ sub sync_disks {
|
||||
|
||||
return if $scfg->{shared};
|
||||
|
||||
$sharedvm = 0;
|
||||
|
||||
$local_volumes->{$volid}->{ref} = $attr->{referenced_in_config} ? 'config' : 'snapshot';
|
||||
|
||||
if ($attr->{cdrom}) {
|
||||
|
Loading…
Reference in New Issue
Block a user