]> xenbits.xensource.com Git - libvirt.git/commit
qemu: block: Split up qemuBlockStorageSourceAttachApply
authorPeter Krempa <pkrempa@redhat.com>
Mon, 27 May 2019 15:30:12 +0000 (17:30 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 15 Jul 2019 08:26:23 +0000 (10:26 +0200)
commit35e3069ce481d6d9fc54917b30a0f6ea7880608a
treece9fa74c73f2f4f1b4bb562322ea097c66daded6
parent16ca234b56fac8220f3b3361cd6f0992353b3098
qemu: block: Split up qemuBlockStorageSourceAttachApply

Split up the addition of a storage source into the following sub-steps:
1) storage access dependencies (TLS transport, persistent reservation)
2) storage acccess node (file/gluster/nbd...)
3) format driver dependencies (encryption secret)
4) format driver node (qcow2, raw, ...)

The functions split out will be later reused when implementing support
for 'blockdev-create' as we'll need the dependencies plugged in first,
then blockdev-create will be called and after that successfully finishes
blockdev-add will be added.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_block.c