On Mon, Mar 10, 2014 at 03:31:52PM +0800, Chunyan Liu wrote: > Signed-off-by: Dong Xu Wang <[email protected]> > Signed-off-by: Chunyan Liu <[email protected]> > --- > block/raw_bsd.c | 27 +++++++++++++++------------ > 1 file changed, 15 insertions(+), 12 deletions(-) > > diff --git a/block/raw_bsd.c b/block/raw_bsd.c > index 9ae5fc2..ee797fd 100644 > --- a/block/raw_bsd.c > +++ b/block/raw_bsd.c > @@ -29,13 +29,17 @@ > #include "block/block_int.h" > #include "qemu/option.h" > > -static QEMUOptionParameter raw_create_options[] = { > - { > - .name = BLOCK_OPT_SIZE, > - .type = OPT_SIZE, > - .help = "Virtual disk size" > - }, > - { 0 } > +static QemuOptsList raw_create_opts = { > + .name = "raw-create-opts", > + .head = QTAILQ_HEAD_INITIALIZER(raw_create_opts.head), > + .desc = { > + { > + .name = BLOCK_OPT_SIZE, > + .type = QEMU_OPT_SIZE, > + .help = "Virtual disk size" > + }, > + { /* end of list */ } > + } > };
Hmm...I'm not sure how this works. The option isn't consumed so maybe we don't need to declare it at all. However, it's not your problem because it was like this before already. Reviewed-by: Stefan Hajnoczi <[email protected]>
