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:
committed by
Fabian Grünbichler
parent
2d874037f3
commit
6c07619abd
@ -524,7 +524,7 @@ sub path {
|
||||
}
|
||||
|
||||
sub qemu_blockdev_options {
|
||||
my ($class, $scfg, $storeid, $volname, $options) = @_;
|
||||
my ($class, $scfg, $storeid, $volname, $machine_version, $options) = @_;
|
||||
|
||||
my $cmd_option = PVE::CephConfig::ceph_connect_option($scfg, $storeid);
|
||||
my ($name) = ($class->parse_volname($volname))[1];
|
||||
|
||||
Reference in New Issue
Block a user