diff options
author | Kevin Wolf | 2020-09-24 17:27:08 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-10-02 15:46:40 +0200 |
commit | 37a4f70cea72a38fe981cbff517c222cefa46f21 (patch) | |
tree | 1551ddfb797090c1238e60b86aaed8921f73f02f /include/block | |
parent | block/export: Add BLOCK_EXPORT_DELETED event (diff) | |
download | qemu-37a4f70cea72a38fe981cbff517c222cefa46f21.tar.gz qemu-37a4f70cea72a38fe981cbff517c222cefa46f21.tar.xz qemu-37a4f70cea72a38fe981cbff517c222cefa46f21.zip |
block/export: Move blk to BlockExport
Every block export has a BlockBackend representing the disk that is
exported. It should live in BlockExport therefore.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200924152717.287415-23-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/export.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/block/export.h b/include/block/export.h index ff54d35872..7feb02e10d 100644 --- a/include/block/export.h +++ b/include/block/export.h @@ -71,6 +71,9 @@ struct BlockExport { /* The AioContext whose lock protects this BlockExport object. */ AioContext *ctx; + /* The block device to export */ + BlockBackend *blk; + /* List entry for block_exports */ QLIST_ENTRY(BlockExport) next; }; |