This puts the bochs probe function into its own separate file as part of
the process of modularizing block drivers. Having the probe functions
separate from the rest of the driver allows us to probe without having
to potentially unnecessarily load the driver.
Signed-off-by: Colin Lord
---
block
Isolates qcow2 probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 2 +-
block/probe/qcow2.c | 16
block/qcow2.c | 13 +
include/block/probe.h | 1 +
4 files changed, 19 insertions(+), 13 deletions
From: Marc Mari
To simplify the addition of new block modules, add a script that generates
module_block.h automatically from the modules' source code.
This script assumes that the QEMU coding style rules are followed.
Signed-off-by: Marc MarĂ
Signed-off-by: Colin Lord
---
Mak
Isolates cloop probing function as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 2 +-
block/cloop.c | 16 +---
block/probe/cloop.c | 17 +
include/block/probe.h | 1 +
4 files changed, 20 insertions(+), 16
Isolate dmg probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 2 +-
block/dmg.c | 16 +---
block/probe/dmg.c | 17 +
include/block/probe.h | 1 +
4 files changed, 20 insertions(+), 16 deletions
Completes the separation of the dmg probe from the dmg driver. The dmg
probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
odule information is located in a new structure found in
module_block.h
Signed-off-by: Marc MarĂ
Signed-off-by: Colin Lord
---
block.c | 110 ++
include/qemu/module.h | 3 ++
util/module.c | 38 +
3 files changed
Isolate raw probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 1 +
block/probe/raw.c | 10 ++
block/raw_bsd.c | 9 +
include/block/probe.h | 1 +
4 files changed, 13 insertions(+), 8 deletions(-)
create mode 100644
Completes the separation of the cloop probe from the cloop driver. The
cloop probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
This commit moves the initialization of the QemuOptsList qemu_iscsi_opts
struct out of block/iscsi.c in order to allow the iscsi module to be
dynamically loaded.
Signed-off-by: Colin Lord
---
block/iscsi.c | 36
vl.c | 38
Isolate parallels probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 1 +
block/parallels.c| 43 ++--
block/probe/parallels.c | 22
include/block/driver
ough 4.167
curl5.245
spice 5.289
gnutls 5.400
gtk 8.782
vte 9.764
rbd 44.315
Colin Lord (30):
blockdev: prepare iSCSI block driver for dynamic loading
blockdev: Move bochs probe into separate file
bloc
Isolates vpc probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 2 +-
block/probe/vpc.c | 9 +
block/vpc.c | 8 +---
include/block/probe.h | 1 +
4 files changed, 12 insertions(+), 8 deletions(-)
create mode 100644 block
Isolates vmdk probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 2 +-
block/probe/vmdk.c | 60 +
block/vmdk.c| 60 ++---
include
Completes the separation of the luks probe from the crypto driver. The
luks probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
Isolates qcow probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 2 +-
block/probe/qcow.c | 16
block/qcow.c| 31 ++-
include/block/driver/qcow.h | 21
Isolates vhdx probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 2 +-
block/probe/vhdx.c| 21 +
block/vhdx.c | 20 +---
include/block/probe.h | 1 +
4 files changed, 24 insertions(+), 20
Isolate qed probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 2 +-
block/probe/qed.c | 18 ++
block/qed.c | 15 +--
include/block/probe.h | 1 +
4 files changed, 21 insertions(+), 15 deletions
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
---
block.c | 19 +++
block/bochs.c | 1 -
block/probe/bochs.c | 25 -
include/block/probe.h | 3
Isolates vdi probe as part of the modularization process.
Signed-off-by: Colin Lord
---
block/Makefile.objs| 2 +-
block/probe/vdi.c | 26 +
block/vdi.c| 69 ++
include/block/driver/vdi.h | 49
Completes the separation of the qed probe from the qed driver. The
qed probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
Completes the separation of the vdi probe from the vdi driver. The
vdi probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
This puts the bdrv_probe_device functions into their own files to
facilitate the modularization of the block drivers.
Signed-off-by: Colin Lord
---
block/Makefile.objs | 1 +
block/probe/host_cdrom.c | 40 +
block/probe/host_device.c | 30
Completes the separation of the qcow2 probe from the qcow2 driver. The
qcow2 probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
Completes the separation of the qcow probe from the qcow driver. The
qcow probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
Completes the separation of the parallels probe from the parallels
driver. The parallels probe now returns the format in addition to the
score, allowing correlation of the score and driver without the probe
function being part of the driver itself.
Signed-off-by: Colin Lord
---
block.c
Completes the separation of the vmdk probe from the vmdk driver. The
vmdk probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
Completes the separation of the vpc probe from the vpc driver. The
vpc probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
Completes the separation of the raw probe from the raw driver. The
raw probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1 +
block
Completes the separation of the vhdx probe from the vhdx driver. The
vhdx probe now returns the format in addition to the score, allowing
correlation of the score and driver without the probe function being
part of the driver itself.
Signed-off-by: Colin Lord
---
block.c | 1
This commit finalizes the separation of the block driver and probe
function by removing the .bdrv_probe field from all BlockDrivers.
Probing is now accomplished solely by iterating over the array of probe
function pointers in the format_probes array.
Signed-off-by: Colin Lord
---
block.c
This commit finalizes the separation of the BlockDriver from its
device probing function. Now the accesses to these functions in block.c
occur through the protocol_probes array, and each function returns a
score and protocol name with which to find the corresponding driver.
Signed-off-by: Colin
101 - 132 of 132 matches
Mail list logo