mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm, vhost_user_block: Make parameter names match --disk
Make the --block-backend parameters match the --disk parameters. Fixes: #898 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
2f0bc06bec
commit
d5bfa2dfc8
@@ -387,10 +387,10 @@ impl<'a> VhostUserBlkBackendConfig<'a> {
|
||||
let mut poll_queue: bool = true;
|
||||
|
||||
for param in params_list.iter() {
|
||||
if param.starts_with("image=") {
|
||||
image = ¶m[6..];
|
||||
} else if param.starts_with("sock=") {
|
||||
sock = ¶m[5..];
|
||||
if param.starts_with("path=") {
|
||||
image = ¶m[5..];
|
||||
} else if param.starts_with("socket=") {
|
||||
sock = ¶m[7..];
|
||||
} else if param.starts_with("num_queues=") {
|
||||
num_queues_str = ¶m[11..];
|
||||
} else if param.starts_with("readonly=") {
|
||||
|
||||
Reference in New Issue
Block a user