[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v3 17/32] blockdev: Separate bochs probe from it
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH v3 17/32] blockdev: Separate bochs probe from its driver |
Date: |
Wed, 6 Jul 2016 17:59:52 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
On 05.07.2016 17:24, Colin Lord wrote:
> Modifies the bochs probe to return the format name as well as the
> score as the final step of separating the probe function from the
> driver. This keeps the probe completely independent of the driver,
> making future modularization easier to accomplish. Returning the format
> name as well as the score allows the score to be correlated to the
> driver without the probe function needing to be part of the driver.
>
> Signed-off-by: Colin Lord <address@hidden>
> ---
> block.c | 19 +++++++++++++++++++
> block/bochs.c | 1 -
> block/probe/bochs.c | 25 ++++++++++++++++---------
> include/block/probe.h | 3 ++-
> 4 files changed, 37 insertions(+), 11 deletions(-)
Oh, and another comment: I think it would be better to split this patch
into a part that modifies block.c (introducing the format_probes array
and using it in bdrv_probe_all()) and another one that actually does the
bochs-specific stuff.
Max
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH v3 09/32] blockdev: Move qcow probe to its own file, (continued)
- [Qemu-block] [PATCH v3 09/32] blockdev: Move qcow probe to its own file, Colin Lord, 2016/07/05
- [Qemu-block] [PATCH v3 10/32] blockdev: Move qcow2 probe to its own file, Colin Lord, 2016/07/05
- [Qemu-block] [PATCH v3 13/32] blockdev: Move vdi probe to its own file, Colin Lord, 2016/07/05
- [Qemu-block] [PATCH v3 12/32] blockdev: Move raw probe to its own file, Colin Lord, 2016/07/05
- [Qemu-block] [PATCH v3 17/32] blockdev: Separate bochs probe from its driver, Colin Lord, 2016/07/05
- [Qemu-block] [PATCH v3 19/32] blockdev: Separate luks probe from its driver, Colin Lord, 2016/07/05
- [Qemu-block] [PATCH v3 16/32] blockdev: Move vpc probe to its own file, Colin Lord, 2016/07/05
- [Qemu-block] [PATCH v3 11/32] blockdev: Move qed probe to its own file, Colin Lord, 2016/07/05
- [Qemu-block] [PATCH v3 14/32] blockdev: Move vhdx probe to its own file, Colin Lord, 2016/07/05