Revision 6872ae79 snf-pithos-backend/pithos/backends/lib/hashfiler/radosblocker.py
b/snf-pithos-backend/pithos/backends/lib/hashfiler/radosblocker.py | ||
---|---|---|
78 | 78 |
def _pad(self, block): |
79 | 79 |
return block + ('\x00' * (self.blocksize - len(block))) |
80 | 80 |
|
81 |
def _get_rear_block(self, blkhash, create=0):
|
|
81 |
def _get_rear_block(self, blkhash): |
|
82 | 82 |
name = hexlify(blkhash) |
83 |
return RadosObject(name, self.ioctx, create)
|
|
83 |
return RadosObject(name, self.ioctx) |
|
84 | 84 |
|
85 | 85 |
def _check_rear_block(self, blkhash): |
86 | 86 |
filename = hexlify(blkhash) |
Also available in: Unified diff