]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: block: Extract code for adding NBD exports to 'qemuBlockExportAddNBD'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 14 Oct 2020 09:12:19 +0000 (11:12 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 19 Oct 2020 11:36:58 +0000 (13:36 +0200)
commit7c38a0dc9a446449e71fa599dc6716381e20fb07
treeb14afe033a1a2688d8fb844631e5f0e61f950f72
parentb1bac48b0b0e12feb83d3e8d33857f206508f526
qemu: block: Extract code for adding NBD exports to 'qemuBlockExportAddNBD'

Centralize the logic deciding which arguments to use when exporting a
block backend via NBD to a single place so that it can be centrally
fixed in upcoming commits to support the new export method via
'block-export-add'.

Additionally this allows simplification of the caller from migration as
the logic deciding which arguments to use is extracted too.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_backup.c
src/qemu/qemu_block.c
src/qemu/qemu_block.h
src/qemu/qemu_migration.c