Re: [Qemu-devel] [PATCH]: block: get rid of the BDRV_O_FILE flag

2010-04-06 Thread Kevin Wolf
Am 05.04.2010 16:53, schrieb Christoph Hellwig: > This patch requires Kevin's "[PATCH] Replace calls of old bdrv_open" to > be applied first. Now that this is starting again, let's avoid the annoyance we had the last time when patches were held back because they depended on patches which depended

Re: [Qemu-devel] [PATCH]: block: get rid of the BDRV_O_FILE flag

2010-04-06 Thread Kevin Wolf
Am 05.04.2010 16:53, schrieb Christoph Hellwig: > BDRV_O_FILE is only used to communicate between bdrv_file_open and bdrv_open. > It affects two things: first bdrv_open only searches for protocols using > find_protocol instead of all image formats and host drivers. We can easily > move that to th

[Qemu-devel] [PATCH]: block: get rid of the BDRV_O_FILE flag

2010-04-05 Thread Christoph Hellwig
BDRV_O_FILE is only used to communicate between bdrv_file_open and bdrv_open. It affects two things: first bdrv_open only searches for protocols using find_protocol instead of all image formats and host drivers. We can easily move that to the caller and pass the found driver to bdrv_open. Second