mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-14 20:04:40 +00:00
add @param to foreach_drive
This commit is contained in:
parent
5dddefeab6
commit
b74ff0476e
@ -2645,7 +2645,7 @@ sub vmstatus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub foreach_drive {
|
sub foreach_drive {
|
||||||
my ($conf, $func) = @_;
|
my ($conf, $func, @param) = @_;
|
||||||
|
|
||||||
foreach my $ds (valid_drive_names()) {
|
foreach my $ds (valid_drive_names()) {
|
||||||
next if !defined($conf->{$ds});
|
next if !defined($conf->{$ds});
|
||||||
@ -2653,7 +2653,7 @@ sub foreach_drive {
|
|||||||
my $drive = parse_drive($ds, $conf->{$ds});
|
my $drive = parse_drive($ds, $conf->{$ds});
|
||||||
next if !$drive;
|
next if !$drive;
|
||||||
|
|
||||||
&$func($ds, $drive);
|
&$func($ds, $drive, @param);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user