Revision 47462eda snf-pithos-backend/pithos/backends/lib/hashfiler/store.py
b/snf-pithos-backend/pithos/backends/lib/hashfiler/store.py | ||
---|---|---|
38 | 38 |
|
39 | 39 |
class Store(object): |
40 | 40 |
"""Store. |
41 |
Required constructor parameters: path, block_size, hash_algorithm, umask. |
|
41 |
Required constructor parameters: path, block_size, hash_algorithm, |
|
42 |
umask, blockpool, mappool. |
|
42 | 43 |
""" |
43 | 44 |
|
44 | 45 |
def __init__(self, **params): |
... | ... | |
54 | 55 |
|
55 | 56 |
p = {'blocksize': params['block_size'], |
56 | 57 |
'blockpath': os.path.join(path + '/blocks'), |
57 |
'hashtype': params['hash_algorithm']} |
|
58 |
'hashtype': params['hash_algorithm'], |
|
59 |
'blockpool': params['blockpool']} |
|
58 | 60 |
self.blocker = Blocker(**p) |
59 | 61 |
p = {'mappath': os.path.join(path + '/maps'), |
60 |
'namelen': self.blocker.hashlen} |
|
62 |
'namelen': self.blocker.hashlen, |
|
63 |
'mappool': params['mappool']} |
|
61 | 64 |
self.mapper = Mapper(**p) |
62 | 65 |
|
63 | 66 |
def map_get(self, name): |
Also available in: Unified diff