qemu-storage-daemon: Use qmp_block_export_add()
commit060102ad655544501b9d0d9f3fc8b8675883b463
authorKevin Wolf <kwolf@redhat.com>
Thu, 24 Sep 2020 15:26:51 +0000 (24 17:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Oct 2020 13:46:40 +0000 (2 15:46 +0200)
treec98d63c84664fb1ca4b2dd84c2f7161e7fd4232b
parent56ee86261e0ffa151e82b383d9628cf5660be355
qemu-storage-daemon: Use qmp_block_export_add()

No reason to duplicate the functionality locally, we can now just reuse
the QMP command block-export-add for --export.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200924152717.287415-6-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
storage-daemon/qemu-storage-daemon.c