bdev: Move spdk_bdev declaration higher in the bdev.h file
It is required for upcoming patches. Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Change-Id: I836a1118309cc3ef4168d834697109200cf18553 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455646 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
14f6d724ac
commit
1900c8c261
@ -60,6 +60,13 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define SPDK_BDEV_BUF_SIZE_WITH_MD(x) (((x) / 512) * (512 + 16))
|
#define SPDK_BDEV_BUF_SIZE_WITH_MD(x) (((x) / 512) * (512 + 16))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief SPDK block device.
|
||||||
|
*
|
||||||
|
* This is a virtual representation of a block device that is exported by the backend.
|
||||||
|
*/
|
||||||
|
struct spdk_bdev;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block device remove callback.
|
* Block device remove callback.
|
||||||
*
|
*
|
||||||
@ -86,13 +93,6 @@ enum spdk_bdev_status {
|
|||||||
SPDK_BDEV_STATUS_REMOVING,
|
SPDK_BDEV_STATUS_REMOVING,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief SPDK block device.
|
|
||||||
*
|
|
||||||
* This is a virtual representation of a block device that is exported by the backend.
|
|
||||||
*/
|
|
||||||
struct spdk_bdev;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Handle to an opened SPDK block device.
|
* \brief Handle to an opened SPDK block device.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user