mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-23 06:05:21 +00:00
bin: vhost_user_blk: Rename "--backend" to "--block-backend"
This will prevent it from conflicting when it is aggregated into the cloud-hypervisor binary. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
032b8e4c1d
commit
3ede2dc53a
@ -284,10 +284,10 @@ fn main() {
|
||||
.author(crate_authors!())
|
||||
.about("Launch a vhost-user-blk backend.")
|
||||
.arg(
|
||||
Arg::with_name("backend")
|
||||
.long("backend")
|
||||
Arg::with_name("block-backend")
|
||||
.long("block-backend")
|
||||
.help(
|
||||
"Backend parameters \"image=<image_path>,\
|
||||
"vhost-user-block backend parameters \"image=<image_path>,\
|
||||
sock=<socket_path>,readonly=true|false,\
|
||||
direct=true|false\"",
|
||||
)
|
||||
@ -296,7 +296,7 @@ fn main() {
|
||||
)
|
||||
.get_matches();
|
||||
|
||||
let vhost_user_blk_backend = cmd_arguments.value_of("backend").unwrap();
|
||||
let vhost_user_blk_backend = cmd_arguments.value_of("block-backend").unwrap();
|
||||
|
||||
let backend_config = match VhostUserBlkBackendConfig::parse(vhost_user_blk_backend) {
|
||||
Ok(config) => config,
|
||||
|
@ -1822,7 +1822,7 @@ mod tests {
|
||||
// Start the daemon
|
||||
let child = Command::new("target/release/vhost_user_blk")
|
||||
.args(&[
|
||||
"--backend",
|
||||
"--block-backend",
|
||||
format!(
|
||||
"image={},sock={},readonly={},direct={}",
|
||||
blk_file_path, vubd_socket_path, rdonly, direct
|
||||
|
Loading…
Reference in New Issue
Block a user