Version 2.02.83 -
===================================
+ Increase hash table size to 1024 lv names and 64 pv uuids.
Remove fs_unlock() from lv_resume path.
Fix wipe size when setting up mda.
Remove unneeded checks for open_count in lv_info().
void init_lvhash()
{
/* Create hash table for keeping LV locks & status */
- lv_hash = dm_hash_create(100);
+ lv_hash = dm_hash_create(1024);
pthread_mutex_init(&lv_hash_lock, NULL);
pthread_mutex_init(&lvm_lock, NULL);
}
* The pv hash memorises the pv section names -> pv
* structures.
*/
- if (!(pv_hash = dm_hash_create(32))) {
+ if (!(pv_hash = dm_hash_create(64))) {
log_error("Couldn't create hash table.");
goto bad;
}
* The lv hash memorises the lv section names -> lv
* structures.
*/
- if (!(lv_hash = dm_hash_create(32))) {
+ if (!(lv_hash = dm_hash_create(1024))) {
log_error("Couldn't create hash table.");
goto bad;
}