On Wed, Mar 31, 2010 at 03:12:56PM +0200, Kevin Wolf wrote: > > If I can have my pony, your patch is better than current behaviour :) > > Feel free to post a v2 that implements your version. :-)
No real need for that, it can also be done as a separate path on top of this one. Note that there's also another interesting aspect to this - currently vl.c, monitor.c and the xen disk code uses bdrv_find_whitelisted_format, but various other places that can be called directly from qemu and not just qemu-img/qemu-io do the "full" guess. Taking the whitelist check into the guessing helper would sort this out.