plugin: add machine version to qemu_blockdev_options() interface

Plugins can guard based on the machine version to be able to switch
drivers or options in a safe way without the risk of breaking older
versions.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner
2025-07-02 18:27:46 +02:00
committed by Fabian Grünbichler
parent 2d874037f3
commit 6c07619abd
6 changed files with 16 additions and 8 deletions

View File

@ -163,7 +163,7 @@ sub path {
}
sub qemu_blockdev_options {
my ($class, $scfg, $storeid, $volname, $options) = @_;
my ($class, $scfg, $storeid, $volname, $machine_version, $options) = @_;
my $format = ($class->parse_volname($volname))[6];