bdev/lvol: add dump config mock

Change-Id: I0e081b17071bb5d906676c1b509bf8e0fc528b8e
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/407745
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Pawel Wodkowski 2018-04-16 17:28:47 +02:00 committed by Jim Harris
parent 18f3a22b20
commit f34fae94fe

View File

@ -591,6 +591,12 @@ vbdev_lvol_dump_info_json(void *ctx, struct spdk_json_write_ctx *w)
return 0;
}
static void
vbdev_lvol_write_config_json(struct spdk_bdev *bdev, struct spdk_json_write_ctx *w)
{
/* Nothing to dump as lvol configuration is saved on physical device. */
}
static struct spdk_io_channel *
vbdev_lvol_get_io_channel(void *ctx)
{
@ -756,6 +762,7 @@ static struct spdk_bdev_fn_table vbdev_lvol_fn_table = {
.submit_request = vbdev_lvol_submit_request,
.get_io_channel = vbdev_lvol_get_io_channel,
.dump_info_json = vbdev_lvol_dump_info_json,
.write_config_json = vbdev_lvol_write_config_json,
};
static struct spdk_bdev *