[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 0/8] block: Integrate bdrv_file_open() into b
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH v4 0/8] block: Integrate bdrv_file_open() into bdrv_open() |
Date: |
Wed, 19 Feb 2014 10:47:33 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 18.02.2014 um 18:33 hat Max Reitz geschrieben:
> bdrv_file_open() is now nearly a subset of bdrv_open(), except for the
> fact that bdrv_file_open() is for protocols and bdrv_open() for block
> drivers. It is possible to use bdrv_file_open() with a block driver, but
> in that case that block driver must be explicitly specified.
>
> Due to these great similarities, bdrv_file_open() can be integrated and
> made a special case of bdrv_open(). If the flag BDRV_O_PROTOCOL is
> specified, bdrv_open() will now do what bdrv_file_open() used to do:
> Auto-detecting a protocol instead of a block driver.
>
> This series implements this and changes all calls to bdrv_file_open() to
> bdrv_open() calls with BDRV_O_PROTOCOL specified.
>
> Note that this flag cannot be discerned automatically since it is
> impossible for bdrv_open() to know by itself whether a given file should
> be opened with or without the format layer involved: Both are valid
> alternatives. Therefore, it still has to be specified by the user.
Thanks, applied to the block branch.
Kevin
- [Qemu-devel] [PATCH v4 0/8] block: Integrate bdrv_file_open() into bdrv_open(), Max Reitz, 2014/02/18
- [Qemu-devel] [PATCH v4 1/8] block: Change BDS parameter of bdrv_open() to **, Max Reitz, 2014/02/18
- [Qemu-devel] [PATCH v4 2/8] block: Add reference parameter to bdrv_open(), Max Reitz, 2014/02/18
- [Qemu-devel] [PATCH v4 3/8] block: Make bdrv_file_open() static, Max Reitz, 2014/02/18
- [Qemu-devel] [PATCH v4 4/8] block: Reuse reference handling from bdrv_open(), Max Reitz, 2014/02/18
- [Qemu-devel] [PATCH v4 5/8] block: Remove bdrv_new() from bdrv_file_open(), Max Reitz, 2014/02/18
- [Qemu-devel] [PATCH v4 8/8] block: Remove bdrv_open_image()'s force_raw option, Max Reitz, 2014/02/18
- [Qemu-devel] [PATCH v4 6/8] block: Handle bs->options in bdrv_open() only, Max Reitz, 2014/02/18
- [Qemu-devel] [PATCH v4 7/8] block: Reuse success path from bdrv_open(), Max Reitz, 2014/02/18
- Re: [Qemu-devel] [PATCH v4 0/8] block: Integrate bdrv_file_open() into bdrv_open(),
Kevin Wolf <=