summary refs log tree commit diff stats
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2013-08-21 12:41:23 +0200
committerKevin Wolf <kwolf@redhat.com>2013-08-30 15:28:52 +0200
commit7a6d3fc594d1166ec78a6b74ba76753078de0de5 (patch)
tree2a01d5d7d6f48959ffaa9d9565e7301e5e0a8274 /scripts/qapi-types.py
parent775d6afd5cd66f2154a81f5de9d3dd7297a35072 (diff)
downloadfocaccia-qemu-7a6d3fc594d1166ec78a6b74ba76753078de0de5.tar.gz
focaccia-qemu-7a6d3fc594d1166ec78a6b74ba76753078de0de5.zip
switch raw block driver from "raw.o" to "raw_bsd.o"
"Incoming" function prototypes and "outgoing" function calls must match
reality. Implemented using the "struct BlockDriver" definition in
"include/block/block_int.h", and gcc errors & warnings.

v1->v2:

On 08/20/13 09:51, Kevin Wolf wrote:
> Am 18.08.2013 um 16:29 hat Paolo Bonzini geschrieben:
>> Il 16/08/2013 16:15, Laszlo Ersek ha scritto:
>>> +static int raw_reopen_prepare(BDRVReopenState *reopen_state,
>>> +                              BlockReopenQueue *queue, Error **errp)
>>>  {
>>> -    return bdrv_reopen_prepare(bs->file);
>>> +    BDRVReopenState tmp = *reopen_state;
>>> +
>>> +    tmp.bs = tmp.bs->file;
>>> +    return bdrv_reopen_prepare(&tmp, queue, errp);
>>>  }
>>
>> This should just return zero, my fault.
>
> Which is because bdrv_reopen_queue() already queues bs->file for reopen.
> The simple return 0; implementation is shared by all other format drivers
> that support reopening images.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions