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

@ -111,7 +111,7 @@ sub path {
}
sub qemu_blockdev_options {
my ($class, $scfg, $storeid, $volname, $options) = @_;
my ($class, $scfg, $storeid, $volname, $machine_version, $options) = @_;
die "volume snapshot is not possible on iscsi device\n"
if $options->{'snapshot-name'};