fix pool creation
[pithos] / snf-pithos-backend / pithos / backends / lib / hashfiler / store.py
index 95f3e77..8e99032 100644 (file)
@@ -39,7 +39,8 @@ from mapper import Mapper
 
 class Store(object):
     """Store.
-       Required constructor parameters: path, block_size, hash_algorithm, umask.
+       Required constructor parameters: path, block_size, hash_algorithm,
+       umask, blockpool, mappool.
     """
 
     def __init__(self, **params):
@@ -55,10 +56,12 @@ class Store(object):
 
         p = {'blocksize': params['block_size'],
              'blockpath': os.path.join(path + '/blocks'),
-             'hashtype': params['hash_algorithm']}
+             'hashtype': params['hash_algorithm'],
+             'blockpool': params['blockpool']}
         self.blocker = Blocker(**p)
         p = {'mappath': os.path.join(path + '/maps'),
-             'namelen': self.blocker.hashlen}
+             'namelen': self.blocker.hashlen,
+             'mappool': params['mappool']}
         self.mapper = Mapper(**p)
 
     def map_get(self, name):