diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index c4fdbe1fc..a816eb19a 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -1311,7 +1311,7 @@ int dev_cache_init(struct cmd_context *cmd) if (!(_cache.mem = dm_pool_create("dev_cache", 10 * 1024))) return_0; - if (!(_cache.names = dm_hash_create(1020)) || + if (!(_cache.names = dm_hash_create(8190)) || !(_cache.vgid_index = dm_hash_create(30)) || !(_cache.lvid_index = dm_hash_create(29))) { dm_pool_destroy(_cache.mem); diff --git a/lib/filters/filter-persistent.c b/lib/filters/filter-persistent.c index 212a5c183..7b20ff1d1 100644 --- a/lib/filters/filter-persistent.c +++ b/lib/filters/filter-persistent.c @@ -58,7 +58,7 @@ static int _init_hash(struct pfilter *pf) if (pf->devices) dm_hash_destroy(pf->devices); - if (!(pf->devices = dm_hash_create(511))) + if (!(pf->devices = dm_hash_create(8191))) return_0; return 1;