mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 16:21:31 +00:00
clanup: qemu_drive_options is only used inside the one function
and it doesn't contain 'bootindex'
This commit is contained in:
parent
1917695c93
commit
918d09150e
@ -1294,7 +1294,6 @@ sub get_initiator_name {
|
|||||||
return $initiator;
|
return $initiator;
|
||||||
}
|
}
|
||||||
|
|
||||||
my @qemu_drive_options = qw(heads secs cyls trans media format cache snapshot rerror werror aio discard iops iops_rd iops_wr iops_max iops_rd_max iops_wr_max serial);
|
|
||||||
sub print_drive_full {
|
sub print_drive_full {
|
||||||
my ($storecfg, $vmid, $drive) = @_;
|
my ($storecfg, $vmid, $drive) = @_;
|
||||||
|
|
||||||
@ -1317,8 +1316,8 @@ sub print_drive_full {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $opts = '';
|
my $opts = '';
|
||||||
|
my @qemu_drive_options = qw(heads secs cyls trans media format cache snapshot rerror werror aio discard iops iops_rd iops_wr iops_max iops_rd_max iops_wr_max serial);
|
||||||
foreach my $o (@qemu_drive_options) {
|
foreach my $o (@qemu_drive_options) {
|
||||||
next if $o eq 'bootindex';
|
|
||||||
$opts .= ",$o=$drive->{$o}" if $drive->{$o};
|
$opts .= ",$o=$drive->{$o}" if $drive->{$o};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user