vmm: Give deprecation warning for "--vhost-user-blk" syntax

This will be removed in a future release.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-01-27 16:18:00 +00:00
parent 969b5ee4e8
commit 75e6762897

View File

@ -1061,6 +1061,7 @@ fn default_vublkconfig_wce() -> bool {
impl VhostUserBlkConfig {
pub fn parse(vhost_user_blk: &str) -> Result<Self> {
error!("Using deprecated --vhost-user-blk syntax. Use --disk with vhost_user=true,socket=<socket path>");
// Split the parameters based on the comma delimiter
let params_list: Vec<&str> = vhost_user_blk.split(',').collect();