mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
libceph: start using oloc abstraction
Instead of relying on pool fields in ceph_file_layout (for mapping) and ceph_pg (for enconding), start using ceph_object_locator (oloc) abstraction. Note that userspace oloc currently consists of pool, key, nspace and hash fields, while this one contains only a pool. This is OK, because at this point we only send (i.e. encode) olocs and never have to receive (i.e. decode) them. This makes keeping a copy of ceph_file_layout in every osd request unnecessary, so ceph_osd_request::r_file_layout field is nuked. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
0b4af2e8c9
commit
22116525ba
4 changed files with 12 additions and 10 deletions
|
@ -40,8 +40,7 @@ struct ceph_pg_pool_info {
|
|||
};
|
||||
|
||||
struct ceph_object_locator {
|
||||
uint64_t pool;
|
||||
char *key;
|
||||
s64 pool;
|
||||
};
|
||||
|
||||
struct ceph_pg_mapping {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue