From dc9c076ef3e9aa2986c87b069299e41bf6e46f3c Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Wed, 6 Apr 2022 13:23:02 +0200 Subject: [PATCH] Remove space from names of internal volumes Those names are used for creating allocators. In Linux kernel environment starting from version 5.12 there is a kernel warning if allocator name contains spaces. This patch resolves this problem by replacing spaces with underscores. Signed-off-by: Robert Baldyga --- src/ocf_cache.c | 2 +- src/ocf_core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ocf_cache.c b/src/ocf_cache.c index f4b51d9..be11244 100644 --- a/src/ocf_cache.c +++ b/src/ocf_cache.c @@ -512,7 +512,7 @@ static ctx_data_t *ocf_cache_io_get_data(struct ocf_io *io) } const struct ocf_volume_properties ocf_cache_volume_properties = { - .name = "OCF Cache", + .name = "OCF_Cache", .io_priv_size = sizeof(struct ocf_cache_volume_io_priv), .volume_priv_size = sizeof(struct ocf_cache_volume), .caps = { diff --git a/src/ocf_core.c b/src/ocf_core.c index d1668f8..16fb0c0 100644 --- a/src/ocf_core.c +++ b/src/ocf_core.c @@ -479,7 +479,7 @@ static ctx_data_t *ocf_core_io_get_data(struct ocf_io *io) } const struct ocf_volume_properties ocf_core_volume_properties = { - .name = "OCF Core", + .name = "OCF_Core", .io_priv_size = 0, /* Not used - custom allocator */ .volume_priv_size = sizeof(struct ocf_core_volume), .caps = {