vhost_user_block: Use config::OptionParser to simplify block backend parsing

Switch to using the recently added OptionParser in the code that parses
the block backend.

Fixes: #1092

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-05-08 16:43:56 +01:00
committed by Sebastien Boeuf
parent 592de97fbd
commit 5016fcf8d5
4 changed files with 53 additions and 74 deletions

1
Cargo.lock generated
View File

@@ -1386,6 +1386,7 @@ dependencies = [
"virtio-bindings 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"vm-memory",
"vm-virtio",
"vmm",
"vmm-sys-util",
]