qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 1/2] block: Do not prematurely remove "filena


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v2 1/2] block: Do not prematurely remove "filename"
Date: Thu, 26 Jun 2014 22:06:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 26.06.2014 22:01, Max Reitz wrote:
On 26.06.2014 21:46, Eric Blake wrote:
On 06/26/2014 01:09 PM, Max Reitz wrote:
If "filename" is removed from the options QDict before entering
bdrv_open_common(), it cannot be stored in the BDS. Therefore, wait
until it has been copied there and remove it from the options only
afterwards.

This fixes "filename" in the BDS being empty for block drivers which do
not need the filename because they have parsed it already (e.g. NBD).

Signed-off-by: Max Reitz <address@hidden>
---
  block.c | 24 +++++++++++++++++-------
  1 file changed, 17 insertions(+), 7 deletions(-)

How does this play with Kevin's bdrv_open cleanups?
https://lists.gnu.org/archive/html/qemu-devel/2014-06/msg06173.html

To be honest, I hoped to get this series merged before Kevin's, because I guessed adapting his series to this would be easier than the other way round. ;-)

I guess there will be some conflicts but nothing unfixable (and the concept will stay the same), as he still leaves bdrv_open_common() intact.

Hm, now that I'm seeing Kevin merged his series already, I'll see to fix eventual conflicts myself.

Max



reply via email to

[Prev in Thread] Current Thread [Next in Thread]