diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-21 15:25:10 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-21 15:25:10 +0100 |
commit | 8aca668075d380c94dac7dba9f292f8cde239b9c (patch) | |
tree | 22ac31d1145b0801cfa50f7c10b09c0ff94082b2 /tools/libxl/xl_cmdtable.c | |
parent | f83b1e617a28e06f23746314253cc29e78773f9c (diff) | |
download | xen-8aca668075d380c94dac7dba9f292f8cde239b9c.tar.gz xen-8aca668075d380c94dac7dba9f292f8cde239b9c.tar.bz2 xen-8aca668075d380c94dac7dba9f292f8cde239b9c.zip |
xl: fix block-attach command parsing
Fix two command-line parsing problems:
- the argc check is wrong: it must be provided with the frontend
device
- the ro/rw mode is optional, so default to rw if it is absent
Also, update the usage message accordingly.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'tools/libxl/xl_cmdtable.c')
-rw-r--r-- | tools/libxl/xl_cmdtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c index d34e569888..e1caca9db0 100644 --- a/tools/libxl/xl_cmdtable.c +++ b/tools/libxl/xl_cmdtable.c @@ -216,7 +216,7 @@ struct cmd_spec cmd_table[] = { { "block-attach", &main_blockattach, "Create a new virtual block device", - "<Domain> <BackDev> <FrontDev> <Mode> [BackDomain]", + "<Domain> <BackDev> <FrontDev> [<Mode>] [BackDomain]", }, { "block-list", &main_blocklist, |