mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-29 12:54:10 +00:00
runtime-rs: don't emit scsi parameter for block devices
This parameter has been deprecated for a long time and QEMU 9.1.0 finally removes it. Signed-off-by: Tom Dohrmann <erbse.13@gmx.de>
This commit is contained in:
parent
c784fb6508
commit
b7999ac765
@ -820,7 +820,6 @@ impl ToQemuParams for BlockBackend {
|
||||
struct DeviceVirtioBlk {
|
||||
bus_type: VirtioBusType,
|
||||
id: String,
|
||||
scsi: bool,
|
||||
config_wce: bool,
|
||||
share_rw: bool,
|
||||
}
|
||||
@ -830,18 +829,11 @@ impl DeviceVirtioBlk {
|
||||
DeviceVirtioBlk {
|
||||
bus_type,
|
||||
id: id.to_owned(),
|
||||
scsi: false,
|
||||
config_wce: false,
|
||||
share_rw: true,
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn set_scsi(&mut self, scsi: bool) -> &mut Self {
|
||||
self.scsi = scsi;
|
||||
self
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn set_config_wce(&mut self, config_wce: bool) -> &mut Self {
|
||||
self.config_wce = config_wce;
|
||||
@ -861,11 +853,6 @@ impl ToQemuParams for DeviceVirtioBlk {
|
||||
let mut params = Vec::new();
|
||||
params.push(format!("virtio-blk-{}", self.bus_type));
|
||||
params.push(format!("drive=image-{}", self.id));
|
||||
if self.scsi {
|
||||
params.push("scsi=on".to_owned());
|
||||
} else {
|
||||
params.push("scsi=off".to_owned());
|
||||
}
|
||||
if self.config_wce {
|
||||
params.push("config-wce=on".to_owned());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user