]> sourceware.org Git - lvm2.git/commitdiff
Increase hash table size to 1024 lv names and 64 pv uuids
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 3 Feb 2011 16:03:13 +0000 (16:03 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 3 Feb 2011 16:03:13 +0000 (16:03 +0000)
WHATS_NEW
daemons/clvmd/lvm-functions.c
lib/format_text/import_vsn1.c

index 440b6c6770f1dfd8d4023a07e3b843cbe46ce859..5a3c4b932947bd2588621ec8940c5d8926945a30 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 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().
index ad11f99c36ac14212bae404f7e091e1d6b00f985..4039bb2f42e05bf969dcd2c33be3fdd569b9d7ff 100644 (file)
@@ -197,7 +197,7 @@ static int get_current_lock(char *resource)
 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);
 }
index 5fac7c49e06a12c87938d8957de6c9dde2d668f1..0ffe3340f63348f64e341196107ef5115392473e 100644 (file)
@@ -756,7 +756,7 @@ static struct volume_group *_read_vg(struct format_instance *fid,
         * 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;
        }
@@ -784,7 +784,7 @@ static struct volume_group *_read_vg(struct format_instance *fid,
         * 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;
        }
This page took 0.046741 seconds and 5 git commands to generate.