From d361fc1a362b6d27aa3ebdf88ec4c6770a17ca3b Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Mon, 22 Feb 2021 12:06:49 -0800 Subject: [PATCH] vmm: config: Fix and complete the help info for the '--disk' option The help information displayed for our `--disk` option is incorrect and incomplete, e.g. missing the `direct` and `poll_queue` field. Signed-off-by: Bo Chen --- vmm/src/config.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vmm/src/config.rs b/vmm/src/config.rs index 1006e2ac2..cd2e210f5 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -693,9 +693,10 @@ impl Default for DiskConfig { impl DiskConfig { pub const SYNTAX: &'static str = "Disk parameters \ - \"path=,readonly=on|off,iommu=on|off,num_queues=,\ - queue_size=,vhost_user=,\ - socket=, default true>,id=\""; + \"path=,readonly=on|off,direct=on|off,iommu=on|off,\ + num_queues=,queue_size=,\ + vhost_user=on|off,socket=,\ + poll_queue=on|off,id=\""; pub fn parse(disk: &str) -> Result { let mut parser = OptionParser::new();