summary refs log tree commit diff stats
path: root/scripts/qapi-visit.py
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-03-05 22:41:36 +0100
committerKevin Wolf <kwolf@redhat.com>2014-03-06 16:18:01 +0100
commitcd5d031e75751838fb40f7b5a5f60fc15d543c55 (patch)
treedecbec9693865a316ead103f172b4780e14c408d /scripts/qapi-visit.py
parent50c75136beec0180171971c88bb6e3fa3aa66463 (diff)
downloadfocaccia-qemu-cd5d031e75751838fb40f7b5a5f60fc15d543c55.tar.gz
focaccia-qemu-cd5d031e75751838fb40f7b5a5f60fc15d543c55.zip
block: Keep "filename" option after parsing
Currently, bdrv_file_open() always removes the "filename" option from
the options QDict after bdrv_parse_filename() has been (successfully)
called. However, for drivers with bdrv_needs_filename, it makes more
sense for bdrv_parse_filename() to overwrite the "filename" option and
for bdrv_file_open() to fetch the filename from there.

Since there currently are no drivers that implement
bdrv_parse_filename() and have bdrv_needs_filename set, this does not
change current behavior.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi-visit.py')
0 files changed, 0 insertions, 0 deletions