bdev/uring: dump filename in driver_specific JSON
Signed-off-by: Yao Liu <yotta.liu@ucloud.cn> Change-Id: I9a3bf72175d8bf9ede7149fb6ea14dc9931ce1f6 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/474179 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
81b4f2fec2
commit
bc7b39a5f0
@ -367,12 +367,26 @@ bdev_uring_get_io_channel(void *ctx)
|
|||||||
return spdk_get_io_channel(uring);
|
return spdk_get_io_channel(uring);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
bdev_uring_dump_info_json(void *ctx, struct spdk_json_write_ctx *w)
|
||||||
|
{
|
||||||
|
struct bdev_uring *uring = ctx;
|
||||||
|
|
||||||
|
spdk_json_write_named_object_begin(w, "uring");
|
||||||
|
|
||||||
|
spdk_json_write_named_string(w, "filename", uring->filename);
|
||||||
|
|
||||||
|
spdk_json_write_object_end(w);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct spdk_bdev_fn_table uring_fn_table = {
|
static const struct spdk_bdev_fn_table uring_fn_table = {
|
||||||
.destruct = bdev_uring_destruct,
|
.destruct = bdev_uring_destruct,
|
||||||
.submit_request = bdev_uring_submit_request,
|
.submit_request = bdev_uring_submit_request,
|
||||||
.io_type_supported = bdev_uring_io_type_supported,
|
.io_type_supported = bdev_uring_io_type_supported,
|
||||||
.get_io_channel = bdev_uring_get_io_channel,
|
.get_io_channel = bdev_uring_get_io_channel,
|
||||||
|
.dump_info_json = bdev_uring_dump_info_json,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void uring_free_bdev(struct bdev_uring *uring)
|
static void uring_free_bdev(struct bdev_uring *uring)
|
||||||
|
Loading…
Reference in New Issue
Block a user