]> xenbits.xensource.com Git - xen.git/commit
xl: fix block-attach command parsing
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 21 May 2010 14:25:10 +0000 (15:25 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 21 May 2010 14:25:10 +0000 (15:25 +0100)
commit8aca668075d380c94dac7dba9f292f8cde239b9c
tree22ac31d1145b0801cfa50f7c10b09c0ff94082b2
parentf83b1e617a28e06f23746314253cc29e78773f9c
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>
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c