On Tue, 06/18 10:40, Paolo Bonzini wrote: > Il 18/06/2013 08:37, Markus Armbruster ha scritto: > > > If not, can we try to detect such case on opening > > Gee, what a nice swamp you found there! > > It is a huge swamp indeed. > > Since we stop all block jobs on media change already, what about just > adding a command "block-job-attach" or something like that which exposes > the target of the job as a blockdev (presumably so that you can then add > it to the NBD server)? >
In fact block job target BDS is already created when job started, so it's rather about finding a way to "query" the target BDS name, or get it as command return value, than attach a blockdev. Once we have the device name, we can add it to the NBD server. -- Fam