diff options
author | Kevin Wolf | 2020-09-24 17:26:57 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-10-02 15:46:40 +0200 |
commit | 00917172a688892003605836454312364864e89d (patch) | |
tree | 3fca6db1e76258e0021de8cc9406806f9c20e80f /block/export | |
parent | nbd: Remove NBDExport.close callback (diff) | |
download | qemu-00917172a688892003605836454312364864e89d.tar.gz qemu-00917172a688892003605836454312364864e89d.tar.xz qemu-00917172a688892003605836454312364864e89d.zip |
qemu-nbd: Use blk_exp_add() to create the export
With this change, NBD exports are now only created through the
BlockExport interface. This allows us finally to move things from the
NBD layer to the BlockExport layer if they make sense for other export
types, too.
blk_exp_add() returns only a weak reference, so the explicit
nbd_export_put() goes away.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200924152717.287415-12-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/export')
0 files changed, 0 insertions, 0 deletions