On Tue, Jun 21, 2016 at 06:59:58PM +0200, Paolo Bonzini wrote: > On 21/06/2016 17:42, Colin Lord wrote: > > It could easily return the BlockDriver then > > using the name field. It seems to me that this would work, and would be > > a fairly minor change from how things are now (in particular I think > > that symlinks wouldn't be necessary with this). > > Yes, I agree.
I like that more than symlinks too. Regarding where names come from, in general: 1. From the format=, driver=, etc options during opening or creating images. Also from backing filenames inside image files. 2. From probing, see bdrv_find_protocol() and bdrv_find_format(). The simple approach to #2 is to load all modules, but this defeats the purpose of on-demand loading. There are solutions for #2 without loading all modules. You could move probing functions into the QEMU binary, for example, so that they don't require loading modules. Stefan
signature.asc
Description: PGP signature