Revision 8421a8c3 snf-pithos-backend/pithos/backends/lib/hashfiler/radosmapper.py
b/snf-pithos-backend/pithos/backends/lib/hashfiler/radosmapper.py | ||
---|---|---|
38 | 38 |
|
39 | 39 |
CEPH_CONF_FILE = "/etc/ceph/ceph.conf" |
40 | 40 |
|
41 |
|
|
41 | 42 |
class RadosMapper(object): |
42 | 43 |
"""Mapper. |
43 | 44 |
Required constructor parameters: mappath, namelen. |
... | ... | |
56 | 57 |
cls.rados_ctx = cls.rados.open_ioctx(pool) |
57 | 58 |
return cls.rados_ctx |
58 | 59 |
|
59 |
|
|
60 | 60 |
def __init__(self, **params): |
61 | 61 |
self.params = params |
62 | 62 |
self.namelen = params['namelen'] |
Also available in: Unified diff