X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/d50ed8d4319b78892fc0697f4ceda9daf415e121..refs/heads/radosblocker:/snf-pithos-backend/pithos/backends/lib/hashfiler/store.py diff --git a/snf-pithos-backend/pithos/backends/lib/hashfiler/store.py b/snf-pithos-backend/pithos/backends/lib/hashfiler/store.py index 95f3e77..8e99032 100644 --- a/snf-pithos-backend/pithos/backends/lib/hashfiler/store.py +++ b/snf-pithos-backend/pithos/backends/lib/hashfiler/store.py @@ -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):