diff options
author | Kevin Wolf | 2020-09-24 17:27:03 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-10-02 15:46:40 +0200 |
commit | bc4ee65b8c309ed6a726e3ea1b73f7fa31b4bb95 (patch) | |
tree | 7c938b2e893712c8740f0a7b9ac624bc4a92b65f /qapi | |
parent | block/export: Allocate BlockExport in blk_exp_add() (diff) | |
download | qemu-bc4ee65b8c309ed6a726e3ea1b73f7fa31b4bb95.tar.gz qemu-bc4ee65b8c309ed6a726e3ea1b73f7fa31b4bb95.tar.xz qemu-bc4ee65b8c309ed6a726e3ea1b73f7fa31b4bb95.zip |
block/export: Add blk_exp_close_all(_type)
This adds a function to shut down all block exports, and another one to
shut down the block exports of a single type. The latter is used for now
when stopping the NBD server. As soon as we implement support for
multiple NBD servers, we'll need a per-server list of exports and it
will be replaced by a function using that.
As a side effect, the BlockExport layer has a list tracking all existing
exports now. closed_exports loses its only user and can go away.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200924152717.287415-18-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions