qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 04/21] block: Add bdrv_close_all() handlers


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH 04/21] block: Add bdrv_close_all() handlers
Date: Mon, 26 Jan 2015 16:13:38 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 2015-01-26 at 16:10, Paolo Bonzini wrote:

On 26/01/2015 21:43, Max Reitz wrote:
If the NBD server is attached to the BDS, it should keep serving the BDS.
The problem is that it is no longer attached to the BDS, but to the BB.
That's not necessarily a problem. :)  It is the cause of the problem though.

Is it possible to attach two BBs to the same BDS?

Because part of the solution could be to introduce a new blockdev-serve
command that takes a BDS, creates a BB and exports that BB.

I think to retain compatibility we could either just do what we always
did (although I find it wrong), or we could simply set up an eject
blocker when attaching an NBD server to a BB. What do you think?
An eject blocker would also break backwards-compatibility though.  What
about an eject notifier?  Would that concept make sense?

It does make sense (in that it is the way I would implement "just do what we always did"), but I just don't like it for the fact that it makes NBD a special snowflake. I can live with it, though.

Max



reply via email to

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