mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: For --disk error if socket and path is specified
This is an error as the path should be specfied by the unmanaged backend. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -653,12 +653,12 @@ mod unit_tests {
|
||||
vec![
|
||||
"cloud-hypervisor",
|
||||
"--disk",
|
||||
"path=/path/to/disk/1,vhost_user=true,socket=/tmp/socket1",
|
||||
"vhost_user=true,socket=/tmp/socket1",
|
||||
"path=/path/to/disk/2",
|
||||
],
|
||||
r#"{
|
||||
"disks": [
|
||||
{"path": "/path/to/disk/1", "vhost_user":true, "vhost_socket":"/tmp/socket1"},
|
||||
{"vhost_user":true, "vhost_socket":"/tmp/socket1"},
|
||||
{"path": "/path/to/disk/2"}
|
||||
]
|
||||
}"#,
|
||||
@@ -668,12 +668,12 @@ mod unit_tests {
|
||||
vec![
|
||||
"cloud-hypervisor",
|
||||
"--disk",
|
||||
"path=/path/to/disk/1,vhost_user=true,socket=/tmp/socket1,wce=true",
|
||||
"vhost_user=true,socket=/tmp/socket1,wce=true",
|
||||
"path=/path/to/disk/2",
|
||||
],
|
||||
r#"{
|
||||
"disks": [
|
||||
{"path": "/path/to/disk/1", "vhost_user":true, "vhost_socket":"/tmp/socket1", "wce":true},
|
||||
{"vhost_user":true, "vhost_socket":"/tmp/socket1", "wce":true},
|
||||
{"path": "/path/to/disk/2"}
|
||||
]
|
||||
}"#,
|
||||
|
||||
Reference in New Issue
Block a user