Revision 57ccbdbf snf-pithos-backend/pithos/backends/lib/hashfiler/blocker.py
b/snf-pithos-backend/pithos/backends/lib/hashfiler/blocker.py | ||
---|---|---|
62 | 62 |
|
63 | 63 |
self.fblocker = FileBlocker(**params) |
64 | 64 |
self.hashlen = self.fblocker.hashlen |
65 |
self.blocksize = params['blocksize'] |
|
65 | 66 |
|
66 | 67 |
def block_hash(self, data): |
67 | 68 |
"""Hash a block of data""" |
... | ... | |
99 | 100 |
and a data 'patch' applied at offset. Return: |
100 | 101 |
(the hash of the new block, if the block already existed) |
101 | 102 |
""" |
103 |
blocksize = self.blocksize |
|
102 | 104 |
r_hash = None |
103 | 105 |
r_existed = True |
104 | 106 |
(f_hash, f_existed) = self.fblocker.block_delta(blkhash, offset, data) |
Also available in: Unified diff