From 4583200af6c946201055d29dfa2ec26cfc4a9505 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 9 Oct 2024 17:13:56 +0200 Subject: [PATCH] import_vsn1: increate hash size With larger amount of LV hashing buckets within VG, until better structures for dynamic handling of LV elements will be used. --- lib/format_text/import_vsn1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/format_text/import_vsn1.c b/lib/format_text/import_vsn1.c index c713bd2e3..b8aed07cc 100644 --- a/lib/format_text/import_vsn1.c +++ b/lib/format_text/import_vsn1.c @@ -1085,7 +1085,7 @@ static struct volume_group *_read_vg(struct cmd_context *cmd, * The lv hash memorizes the lv section names -> lv * structures. */ - if (!(lv_hash = dm_hash_create(1023))) { + if (!(lv_hash = dm_hash_create(8181))) { log_error("Couldn't create lv hash table."); goto bad; }