block/export: Move refcount from NBDExport to BlockExport
Having a refcount makes sense for all types of block exports. It is also a prerequisite for keeping a list of all exports at the BlockExport level. Signed-off-by:Kevin Wolf <kwolf@redhat.com> Reviewed-by:
Max Reitz <mreitz@redhat.com> Message-Id: <20200924152717.287415-14-kwolf@redhat.com> Acked-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block/export/export.c 14 additions, 0 deletionsblock/export/export.c
- blockdev-nbd.c 1 addition, 1 deletionblockdev-nbd.c
- include/block/export.h 15 additions, 0 deletionsinclude/block/export.h
- include/block/nbd.h 0 additions, 2 deletionsinclude/block/nbd.h
- nbd/server.c 33 additions, 39 deletionsnbd/server.c
Loading
Please register or sign in to comment