mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-04 16:38:16 +00:00
sync_disks: fix check
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
c8239a84dd
commit
1c2174833b
@ -519,7 +519,9 @@ sub sync_disks {
|
||||
PVE::QemuConfig->foreach_volume($conf, sub {
|
||||
my ($key, $drive) = @_;
|
||||
return if $key eq 'efidisk0'; # skip efidisk, will be handled later
|
||||
return if !defined($local_volumes->{$key}); # only update sizes for local volumes
|
||||
|
||||
my $volid = $drive->{file};
|
||||
return if !defined($local_volumes->{$volid}); # only update sizes for local volumes
|
||||
|
||||
my ($updated, $old_size, $new_size) = PVE::QemuServer::Drive::update_disksize($drive, $volid_hash);
|
||||
if (defined($updated)) {
|
||||
|
Loading…
Reference in New Issue
Block a user